#15221: glib2 fails to build on x86_64 with 'Symbol not found' error ---------------------------------+------------------------------------------ Reporter: dwalthour@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: glib2 | ---------------------------------+------------------------------------------ steps to reproduce: 1. modify variants.conf to add +universal 2. modify potconfigure.tcl to add -arch x86_64 to configure.universal_cflags, configure.universal_cxxflags, and configure.universal_ldflags 3. port install glib2 fails with: $ sudo port install glib2 ---> Building glib2 with target all Error: Target org.macports.build returned: shell command " cd "/opt/local-64/var/macports/build/_opt_local- 64_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/work/glib-2.16.3" && make all " returned error 2 Command output: make[4]: Nothing to be done for `all-am'. Making all in tests make[4]: Nothing to be done for `all'. Making all in gmodule make all-am make[3]: Nothing to be done for `all-am'. Making all in gthread make[2]: Nothing to be done for `all'. Making all in gobject make glib-genmarshal make[3]: `glib-genmarshal' is up to date. echo "#ifndef __G_MARSHAL_H__" > xgen-gmh \ && echo "#define __G_MARSHAL_H__" >> xgen-gmh \ && ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal ./gmarshal.list --header >> xgen-gmh \ && echo "#endif /* __G_MARSHAL_H__ */" >> xgen-gmh \ && (cmp -s xgen-gmh gmarshal.h 2>/dev/null || cp xgen-gmh gmarshal.h) \ && rm -f xgen-gmh xgen-gmh~ \ && echo timestamp > stamp-gmarshal.h dyld: lazy symbol binding failed: Symbol not found: __g_getenv_nomalloc Referenced from: /opt/local-64/var/macports/build/_opt_local- 64_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/work/glib-2.16.3/glib/.libs/libglib-2.0.0.dylib Expected in: flat namespace dyld: Symbol not found: __g_getenv_nomalloc Referenced from: /opt/local-64/var/macports/build/_opt_local- 64_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/work/glib-2.16.3/glib/.libs/libglib-2.0.0.dylib Expected in: flat namespace /bin/sh: line 1: 73719 Trace/BPT trap ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal ./gmarshal.list --header >> xgen- gmh make[2]: *** [stamp-gmarshal.h] Error 133 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing. -- Ticket URL: <http://trac.macports.org/ticket/15221> MacPorts </> Ports system for Mac OS