Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#25851 closed defect (duplicate)

gtk2 can't find NM when cross-compiling

Reported by: layer@… Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), layer@…
Port: gtk2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Ryan said: Sounds like the "can't find NM when cross-compiling" problem we've seen many times before. Please file a ticket in the issue tracker. A fix like the one in the pango port might work."

More details:

I uninstalled everything according to the uninstall advice in the guide. I installed a fresh new 1.9.1, and issued this command:

  port install gtk2 +x11 +universal

got the error below.

I'm running on 10.5.8 (9L31a).

Is this a known issue?

Thanks.

--->  Fetching gtk2
--->  Attempting to fetch gtk+-2.20.1.tar.bz2 from http://distfiles.macports.org/gtk2
--->  Verifying checksum(s) for gtk2
--->  Extracting gtk2
--->  Applying patches to gtk2
--->  Configuring gtk2
--->  Building gtk2
Error: Target org.macports.build returned: shell command failed
Log for gtk2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk2/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Wed Jul 28 00:31:02 PDT 2010
bigmac# cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk2/main.log
:info:build #	source='io-qtif.c' object='io-qtif.lo' libtool=yes 
:info:build /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.20.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_PREFIX=\"/opt/local\"  -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libpng12    -DGDK_PIXBUF_ENABLE_BACKEND "-DPIXBUF_LIBDIR=\"/opt/local/lib/gtk-2.0/2.10.0/loaders\"" "-DBUILT_MODULES_DIR=\"./.libs\"" -I/opt/local/include -DX_LOCALE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include    -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall -c -o io-qtif.lo io-qtif.c
:info:build \
:info:build #	source='gdk-pixbuf-csource.c' object='gdk-pixbuf-csource.o' libtool=no 
:info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.20.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_PREFIX=\"/opt/local\"  -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libpng12    -DGDK_PIXBUF_ENABLE_BACKEND "-DPIXBUF_LIBDIR=\"/opt/local/lib/gtk-2.0/2.10.0/loaders\"" "-DBUILT_MODULES_DIR=\"./.libs\"" -I/opt/local/include -DX_LOCALE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include    -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall -c gdk-pixbuf-csource.c
:info:build libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.20.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_PREFIX=\"/opt/local\" -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libpng12 -DGDK_PIXBUF_ENABLE_BACKEND -DPIXBUF_LIBDIR=\"/opt/local/lib/gtk-2.0/2.10.0/loaders\" -DBUILT_MODULES_DIR=\"./.libs\" -I/opt/local/include -DX_LOCALE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall -c io-qtif.c  -fno-common -DPIC -o .libs/io-qtif.o
:info:build \
:info:build #	source='queryloaders.c' object='queryloaders.o' libtool=no 
:info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.20.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_PREFIX=\"/opt/local\"  -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libpng12    -DGDK_PIXBUF_ENABLE_BACKEND "-DPIXBUF_LIBDIR=\"/opt/local/lib/gtk-2.0/2.10.0/loaders\"" "-DBUILT_MODULES_DIR=\"./.libs\"" -I/opt/local/include -DX_LOCALE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include    -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall -c queryloaders.c
:info:build libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.20.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_PREFIX=\"/opt/local\" -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libpng12 -DGDK_PIXBUF_ENABLE_BACKEND -DPIXBUF_LIBDIR=\"/opt/local/lib/gtk-2.0/2.10.0/loaders\" -DBUILT_MODULES_DIR=\"./.libs\" -I/opt/local/include -DX_LOCALE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall -c io-pcx.c -o io-pcx.o >/dev/null 2>&1
:info:build \
:info:build #	source='test-gdk-pixbuf.c' object='test-gdk-pixbuf.o' libtool=no 
:info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.20.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_PREFIX=\"/opt/local\"  -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libpng12    -DGDK_PIXBUF_ENABLE_BACKEND "-DPIXBUF_LIBDIR=\"/opt/local/lib/gtk-2.0/2.10.0/loaders\"" "-DBUILT_MODULES_DIR=\"./.libs\"" -I/opt/local/include -DX_LOCALE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include    -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall -c test-gdk-pixbuf.c
:info:build libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.20.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_PREFIX=\"/opt/local\" -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libpng12 -DGDK_PIXBUF_ENABLE_BACKEND -DPIXBUF_LIBDIR=\"/opt/local/lib/gtk-2.0/2.10.0/loaders\" -DBUILT_MODULES_DIR=\"./.libs\" -I/opt/local/include -DX_LOCALE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall -c io-qtif.c -o io-qtif.o >/dev/null 2>&1
:info:build /bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.0  -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -O2 -fstrict-aliasing -arch ppc -Wall  -version-info 2000:1:2000 -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 -lz -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv    -lm   
:info:build 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
:info:build ../libtool: eval: line 961: syntax error near unexpected token `|'
:info:build ../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'
:info:build make[4]: *** [libgdk_pixbuf-2.0.la] Error 1
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[2]: *** [all] Error 2
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk2/work/gtk+-2.20.1-ppc" && /usr/bin/make -j4 all " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gtk2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for gtk2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk2/main.log
bigmac# 

Change History (6)

comment:1 Changed 14 years ago by layer@…

Cc: layer@… added

Cc Me!

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; layer@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to nox@…
Port: gtk2 added
Priority: HighNormal
Summary: error building gtk2gtk2 can't find NM when cross-compiling

comment:3 Changed 14 years ago by layer@…

Cc: layer@… added

Cc Me!

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #23431.

comment:5 Changed 14 years ago by layer@…

Fixed in what release? I'm using 1.9, and the other issue is 1.8.

comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Ports are not part of specific MacPorts releases; they are available immediately. Use "sudo port selfupdate" to receive updates to port definitions.

Note: See TracTickets for help on using tickets.