[MacPorts] #23431: gtk2 fails to build
#23431: gtk2 fails to build ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 @2.18.2_0 ---------------------------------------+------------------------------------ On MacOSX 10.5.8 Intel[[BR]] gtk2 +no_x11+quartz+universal (i386 ppc) fails to build {{{ ---> Building gtk2 for architecture ppc /usr/bin/make all-recursive Making all in po make[2]: Nothing to be done for `all'. Making all in po-properties make[2]: Nothing to be done for `all'. Making all in gdk-pixbuf /usr/bin/make all-recursive Making all in pixops make[4]: Nothing to be done for `all'. /bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -fstrict-aliasing -arch ppc -Wall -version-info 1800:6:1800 -export-symbols-regex "^[^_].*" -L/opt/local/lib -arch ppc -o libgdk_pixbuf-2.0.la -rpath /opt/local/lib gdk-pixbuf.lo gdk-pixbuf-animation.lo gdk-pixbuf-data.lo gdk-pixbuf-io.lo gdk-pixbuf-loader.lo gdk-pixbuf-scale.lo gdk-pixbuf-simple-anim.lo gdk- pixbuf-scaled-anim.lo gdk-pixbuf-util.lo gdk-pixdata.lo gdk-pixbuf-enum- types.lo pixops/libpixops.la -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lm -lintl libtool: link: /usr/bin/nm .libs/gdk-pixbuf.o .libs/gdk-pixbuf- animation.o .libs/gdk-pixbuf-data.o .libs/gdk-pixbuf-io.o .libs/gdk- pixbuf-loader.o .libs/gdk-pixbuf-scale.o .libs/gdk-pixbuf-simple-anim.o .libs/gdk-pixbuf-scaled-anim.o .libs/gdk-pixbuf-util.o .libs/gdk-pixdata.o .libs/gdk-pixbuf-enum-types.o pixops/.libs/libpixops.a | | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libgdk_pixbuf-2.0.exp ../libtool: eval: line 961: syntax error near unexpected token `|' ../libtool: eval: line 961: `/usr/bin/nm .libs/gdk-pixbuf.o .libs/gdk- pixbuf-animation.o .libs/gdk-pixbuf-data.o .libs/gdk-pixbuf-io.o .libs /gdk-pixbuf-loader.o .libs/gdk-pixbuf-scale.o .libs/gdk-pixbuf-simple- anim.o .libs/gdk-pixbuf-scaled-anim.o .libs/gdk-pixbuf-util.o .libs/gdk- pixdata.o .libs/gdk-pixbuf-enum-types.o pixops/.libs/libpixops.a | | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libgdk_pixbuf-2.0.exp' make[4]: *** [libgdk_pixbuf-2.0.la] Error 1 }}} -- Ticket URL: <http://trac.macports.org/ticket/23431> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 fails to build ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 ---------------------------------------+------------------------------------ Changes (by jmr@…): * owner: macports-tickets@… => nox@… * port: gtk2 @2.18.2_0 => gtk2 Comment: Please remember to cc the maintainer. -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 fails to build ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 ---------------------------------------+------------------------------------ Comment(by nox@…): Does it still fail with 2.18.7? If yes, could you attach the ppc libtool file? -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 fails to build ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 ---------------------------------------+------------------------------------ Comment(by laurent.farvacque@…): Replying to [comment:2 nox@…]:
Does it still fail with 2.18.7? If yes, could you attach the ppc libtool file?
Yes, it still fails with the same message, please find the ppc libtool file attached. Thanks Laurent -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 fails to build ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 ---------------------------------------+------------------------------------ Comment(by laurent.farvacque@…): I made a "diff" between .../gtk+-2.18.7-i386/libtool and .../gtk+-2.18.7-ppc/libtool and I found: {{{ 144c144 < global_symbol_pipe="sed -n -e 's/^.*[ ]\\([BCDEGRST][BCDEGRST]*\\)[ ][ ]*_\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 _\\2 \\2/p'" ---
global_symbol_pipe="" 147c147 < global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[BCDEGRST]* .* \\(.*\\)\$/extern char \\1;/p'"
global_symbol_to_cdecl=""
}}} Patching the ppc libtool to match the i386 file allows a successful build ! -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 fails to build ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 ---------------------------------------+------------------------------------ Comment(by warrensomebody@…): I hit this too after attempting a port upgrade --enforce-variants gnome- vfs +universal Any workaround? -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 fails to build ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 ---------------------------------------+------------------------------------ Comment(by aroth21@…): Ran into this too upgrading opencv: port upgrade gtk2 --enforce-variants +universal. Thanks for the patch! MacPorts 1.9.1 OSX 10.5.8 -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 can't build universal ppc i386; can't find NM when cross-compiling ---------------------------------------+------------------------------------ Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gtk2 ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Has duplicate #25851. -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23431: gtk2 can't build universal ppc i386; can't find NM when cross-compiling ----------------------------------------+----------------------------------- Reporter: laurent.farvacque@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: muniversal Port: gtk2 | ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * status: new => closed * keywords: => muniversal * resolution: => fixed Comment: Hopefully now fixed for all ports in r70156. -- Ticket URL: <http://trac.macports.org/ticket/23431#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts