Opened 12 years ago

Closed 12 years ago

#35378 closed defect (duplicate)

w3m: sed: RE error: illegal byte sequence

Reported by: pkutzner+macports@… Owned by: mnick@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc: crazymykl@…, dcecchin@…, lawrence.ong@…, AP1010, nuclearbandaid@…, derekathomas@…, macuserguru, MaddTheSane (C.W. Betts), razzfazz (Daniel Becker), sven.wendler@…
Port: w3m

Description

w3m fails during compile at libwc.a:

ranlib libwc.a
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/work/w3m-0.5.3/libwc'
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/work/w3m-0.5.3'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/work/w3m-0.5.3" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port w3m returned: command execution failed
Warning: targets not executed for w3m: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port w3m for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port w3m failed

Attachments (4)

main.log (48.4 KB) - added by pkutzner+macports@… 12 years ago.
main.2.log (39.5 KB) - added by dcecchin@… 12 years ago.
pimp-main.log (9.2 KB) - added by macuserguru 12 years ago.
gimp-help-en-main.log (28.4 KB) - added by macuserguru 12 years ago.

Download all attachments as: .zip

Change History (35)

Changed 12 years ago by pkutzner+macports@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mountainlion added
Owner: changed from macports-tickets@… to mnick@…
Summary: w3m fails to compile in Mountain Lionw3m: sed: RE error: illegal byte sequence

Actually where it fails is:

:info:build sed: RE error: illegal byte sequence

This is a common problem we're seeing with Mountain Lion's version of sed. It happens when sed is asked to replace characters in a file which has a strange character encoding. The solution is to tell sed to assume the C locale.

comment:2 Changed 12 years ago by pkutzner+macports@…

So, I tried compiling with LC_ALL=C and it got farther, but then died with a segfault here:

cal/etc/w3m\" -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include  -c -o istream.o istream.c
/bin/sh: line 1: 38597 Segmentation fault: 11  ./mktable 100 functable.tab > functable.c
make: *** [functable.c] Error 139
make: *** Waiting for unfinished jobs....
istream.c:445:13: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                    char *sn = ASN1_STRING_data(gn->d.ia5);
                          ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
istream.c:464:13: warning: assigning to 'X509V3_EXT_METHOD *' (aka 'struct v3_ext_method *') from 'const X509V3_EXT_METHOD *' (aka 'const struct v3_ext_method *') discards qualifiers [-Wincompatible-pointer-types]
            method = X509V3_EXT_get(ex);
                   ^ ~~~~~~~~~~~~~~~~~~
2 warnings generated.
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/work/w3m-0.5.3'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/work/w3m-0.5.3" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port w3m returned: command execution failed
Warning: targets not executed for w3m: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port w3m for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port w3m failed

comment:3 Changed 12 years ago by crazymykl@…

Cc: crazymykl@… added

Cc Me!

comment:4 Changed 12 years ago by dcecchin@…

Cc: dcecchin@… added

Cc Me!

Changed 12 years ago by dcecchin@…

Attachment: main.2.log added

comment:5 Changed 12 years ago by dcecchin@…

On a fresh install of Mountain Lion I'm seeing the same error I think.

:info:build ./mktable 100 ./tagtable.tab > tagtable.c
:info:build /bin/sh: line 1: 32139 Segmentation fault: 11  ./mktable 100 ./tagtable.tab > tagtable.c
:info:build make: *** [tagtable.c] Error 139

my locale is set to UTF-8.

comment:6 Changed 12 years ago by lawrence.ong@…

Cc: lawrence.ong@… added

Cc Me!

comment:7 Changed 12 years ago by AP1010

Cc: arthur@… added

Cc Me!

comment:8 Changed 12 years ago by nuclearbandaid@…

Cc: nuclearbandaid@… added

Cc Me!

comment:9 Changed 12 years ago by elventear (Pepe Barbe)

Cc: elventear@… added

Cc Me!

comment:10 Changed 12 years ago by derekathomas@…

Cc: derekathomas@… added

Cc Me!

comment:11 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: fritzs@… added

Has duplicate #35405.

comment:12 Changed 12 years ago by MaddTheSane (C.W. Betts)

Cc: computers57@… added

Cc Me!

comment:13 Changed 12 years ago by elventear (Pepe Barbe)

I recompiled mktable manually (only the mktable object) with debugging information and tried to debug it. This is what I got:

Process 20072 launched: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_w3m/w3m/work/w3m-0.5.3/mktable' (x86_64)
#include "hash.h"
#include <stdio.h>
#include "funcname1.h"
Process 20072 stopped
* thread #1: tid = 0x1803, 0x00000001000136e3 libgc.1.dylib`GC_clear_stack_inner + 35, stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff5f3ffff8)
    frame #0: 0x00000001000136e3 libgc.1.dylib`GC_clear_stack_inner + 35
libgc.1.dylib`GC_clear_stack_inner + 35:
-> 0x1000136e3:  movq   %rax, -40(%rbp)
   0x1000136e7:  leaq   -1744(%rbp), %r15
   0x1000136ee:  movq   %r15, %rdi
   0x1000136f1:  movl   $1704, %esi

I ran the tests for boehmgc and got plenty of errors. Also test boehmgc-devel and it seems to have issues. Is there any confirmation that boehmgc work well under 10.8? What bout clang?

comment:14 Changed 12 years ago by macports.org@…

Cc me!

comment:15 Changed 12 years ago by razzfazz (Daniel Becker)

Cc: razzfazz@… added

Cc Me!

comment:16 Changed 12 years ago by sven.wendler@…

Cc: sven.wendler@… added

Cc Me!

comment:17 Changed 12 years ago by kimuraw (kimura wataru)

It looks boehmgc has problems with "clang -O" on 10.8. gctest and test_cpp of boehmgc crash on 10.8

  $ sudo port -s build boehmgc
  $ cd `port work boehmgc`
  $ cd gc-7.2
  $ sudo chown -R ${USER} . 
  $ make gctest 
    :
  $ ./gctest
  Switched to incremental mode
  Emulating dirty bits with mprotect/signals
  zsh: bus error  ./gctest
  $ make test_cpp
    :
  $ ./test_cpp
  usage: test_cpp number-of-iterations
  Assuming 10 iters
  Starting iteration 1
  zsh: segmentation fault  ./test_cpp

I tried boehmgc without optimization (-O0).

  $ sudo port -f uninstall boehmgc
  $ sudo port -s install boehmgc configure.optflags=-O0
  $ sudo port clean w3m 
  $ w3m http://www.macports.org/

It works!

comment:18 Changed 12 years ago by kimuraw (kimura wataru)

oops! missing intstall w3m.

  $ sudo port -f uninstall boehmgc
  $ sudo port -s install boehmgc configure.optflags=-O0
  $ sudo port clean w3m 
  $ sudo port install w3m  ###
  $ w3m http://www.macports.org/

comment:19 in reply to:  18 Changed 12 years ago by pkutzner+macports@…

Replying to kimuraw@…:

oops! missing intstall w3m.

  $ sudo port -f uninstall boehmgc
  $ sudo port -s install boehmgc configure.optflags=-O0
  $ sudo port clean w3m 
  $ sudo port install w3m  ###
  $ w3m http://www.macports.org/

I can confirm that these steps do produce a working w3m.

comment:20 Changed 12 years ago by elventear (Pepe Barbe)

Ditto; w3m works.

comment:21 in reply to:  18 Changed 12 years ago by macuserguru

Replying to kimuraw@…:

oops! missing intstall w3m.

  $ sudo port -f uninstall boehmgc
  $ sudo port -s install boehmgc configure.optflags=-O0
  $ sudo port clean w3m 
  $ sudo port install w3m  ###
  $ w3m http://www.macports.org/

it works now .... and I could continou install GIMP ;-)

--->  Staging w3m into destroot
--->  Installing w3m @0.5.3_2
--->  Activating w3m @0.5.3_2
Be sure to add the contents of /opt/local/etc/w3m/mailcap-dist
to /opt/local/etc/w3m/mailcap if not already present, for full
functionality
--->  Cleaning w3m
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

Changed 12 years ago by macuserguru

Attachment: pimp-main.log added

comment:22 Changed 12 years ago by macuserguru

the installation of gimp fails .....

please look at pimp-main.log (should be called gimp-main.log)

gimp-help-en
--->  Fetching distfiles for gimp-help-en
--->  Attempting to fetch gimp-help-2.8.0.tar.bz2 from ftp://gd.tuwien.ac.at/graphics/gimp/gimp/help
--->  Attempting to fetch gimp-help-2.8.0.tar.bz2 from http://lil.fr.distfiles.macports.org/gimp-help
--->  Verifying checksum(s) for gimp-help-en
--->  Extracting gimp-help-en
--->  Configuring gimp-help-en
Error: org.macports.configure for port gimp-help-en returned: configure failure: command execution failed
Error: Failed to install gimp-help-en
Please see the log file for port gimp-help-en for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gimp-help-en/gimp-help-en/main.log
Error: The following dependencies were not installed: gimp-app gimp2 gimp-help-en lcms libexif libgnomeui audiofile libbonoboui libgnome esound libgnomecanvas libglade2 libgnome-keyring gnome-keyring libgcrypt libgpg-error libtasn1 xorg-libsm xorg-libice libmng libwmf poppler poppler-data py27-gtk py27-cairo py27-numpy fftw-3 py27-nose nosetests_select py27-distribute py27-py py27-gobject webkit-gtk gst-plugins-base gstreamer bison flex gzip libsoup glib-networking gnutls lzo2 libproxy cmake xorg-libXt xorg-libXmu xpm gimp-jp2 gimp-lqr-plugin liblqr gtk-nodoka-engine gutenprint icns-gimp ufraw cfitsio dcraw exiv2 gtkimageview xsane sane-backends libusb-compat libusb net-snmp
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gimp failed

comment:23 Changed 12 years ago by elventear (Pepe Barbe)

Cc: elventear@… removed

Cc Me!

Changed 12 years ago by macuserguru

Attachment: gimp-help-en-main.log added

comment:24 in reply to:  22 ; Changed 12 years ago by apsu@…

Replying to fritzs@…:

the installation of gimp fails .....

GIMP installers, take a look: ticket:35283:5

comment:25 in reply to:  24 Changed 12 years ago by macuserguru

Replying to apsu@…:

Replying to fritzs@…:

the installation of gimp fails .....

GIMP installers, take a look: ticket:35283:5

The workarround from ticket:35283:5 wont work - I post the new log to this ticket ticket:35283:7

did you consider all this workarrounds in the installer sripts in future? what are happen if updates for the failure packages comes?

comment:26 in reply to:  22 ; Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to fritzs@…:

the installation of gimp fails .....

This ticket is about w3m, not gimp.

comment:27 in reply to:  26 Changed 12 years ago by macuserguru

Replying to ryandesign@…:

Replying to fritzs@…:

the installation of gimp fails .....

This ticket is about w3m, not gimp.

Sorry, mea culpa ...

I am new here ......

Under Lion I get with install gimp all needed components and gimp and gimp.app works well ... and now after upgrade to Mountain Lion it's a long story to get an version of gimp under macports ....

comment:ticket:35283:7 and ticket:35285 are now added

comment:28 Changed 12 years ago by neverpanic (Clemens Lang)

The problems with boehmgc should be fixed, see #35429.

comment:29 in reply to:  28 Changed 12 years ago by macuserguru

Replying to cal@…:

The problems with boehmgc should be fixed, see #35429.

I had read about boehmgc fix and done it.

My next problem is the Error: Processing of port gimp-help-en failed

comment:ticket:35283:12

comment:30 Changed 12 years ago by neverpanic (Clemens Lang)

Please refrain from posting comments in this ticket not concerning w3m. Use a different bug report for comments concerning other ports.

It was previously stated that the fix suggested in this ticket works, but it hasn't been applied yet, so this ticket is to track the progress of this fix. If you want support, please use the macports-users mailing list.

comment:31 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: duplicate
Status: newclosed

Duplicate of #35080.

Note: See TracTickets for help on using tickets.