[MacPorts] #35378: w3m fails to compile in Mountain Lion
#35378: w3m fails to compile in Mountain Lion -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: w3m -----------------------------------------+---------------------------------- 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/35378> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mnick@… * keywords: => mountainlion Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(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 }}}
-- Ticket URL: <https://trac.macports.org/ticket/35378#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(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. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * cc: fritzs@… (added) Comment: Has duplicate #35405. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by elventear@…): 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? -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by macports.org@…): Cc me! -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by kimuraw@…): 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! -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by 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/ }}} -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by pkutzner+macports@…): Replying to [comment:18 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. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by elventear@…): Ditto; w3m works. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by fritzs@…): Replying to [comment:18 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. }}} -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by fritzs@…): 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:22> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by apsu@…): Replying to [comment:22 fritzs@…]:
the installation of gimp fails .....
GIMP installers, take a look: [comment:ticket:35283:5] -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:24> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by fritzs@…): Replying to [comment:24 apsu@…]:
Replying to [comment:22 fritzs@…]:
the installation of gimp fails .....
GIMP installers, take a look: [comment:ticket:35283:5]
The workarround from [comment:ticket:35283:5] wont work - I post the new log to this ticket [comment: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? -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:25> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by ryandesign@…): Replying to [comment:22 fritzs@…]:
the installation of gimp fails .....
This ticket is about w3m, not gimp. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:26> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by fritzs@…): Replying to [comment:26 ryandesign@…]:
Replying to [comment:22 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 .... [https://trac.macports.org/ticket/35283#comment:7] and [https://trac.macports.org/ticket/35285] are now added -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:27> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by cal@…): The problems with boehmgc should be fixed, see #35429. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:28> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by fritzs@…): Replying to [comment:28 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 [https://trac.macports.org/ticket/35283#comment:12] -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:29> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence -----------------------------------------+---------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion | Port: w3m -----------------------------------------+---------------------------------- Comment(by cal@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:30> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35378: w3m: sed: RE error: illegal byte sequence ------------------------------------------+--------------------------------- Reporter: pkutzner+macports@… | Owner: mnick@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: duplicate | Keywords: mountainlion Port: w3m | ------------------------------------------+--------------------------------- Changes (by cal@…): * status: new => closed * resolution: => duplicate Comment: Duplicate of #35080. -- Ticket URL: <https://trac.macports.org/ticket/35378#comment:31> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts