#23870: python-3.1.1 fails to build with undefined symbol on Snow Leopard ------------------------------+--------------------------------------------- Reporter: kurtis@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: python31 ------------------------------+--------------------------------------------- Comment(by jon.hermansen@…): I'm getting a very similar error trying to build a universal, Tiger- compatible Python 2.6.5 package with MacPorts 1.9.1 on Snow Leopard (10.6.4): {{{ ar cr libpython2.6.a Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o ranlib libpython2.6.a ranlib: for architecture: ppc file: libpython2.6.a(pymath.o) has no symbols ranlib: for architecture: i386 file: libpython2.6.a(pymath.o) has no symbols /usr/bin/install -c -d -m 755 Python.framework/Versions/2.6 if test "/Developer/SDKs/MacOSX10.4u.sdk"; then \ /usr/bin/gcc-4.0 -o Python.framework/Versions/2.6/Python -arch ppc -arch i386 -dynamiclib \ -isysroot "/Developer/SDKs/MacOSX10.4u.sdk" \ -all_load libpython2.6.a -Wl,-single_module \ -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python \ -compatibility_version 2.6 \ -current_version 2.6; \ else \ /usr/bin/libtool -o Python.framework/Versions/2.6/Python -dynamic libpython2.6.a \ -lSystem -lSystemStubs -arch_only i386 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python -compatibility_version 2.6 -current_version 2.6 ;\ fi Undefined symbols: "_getgrouplist_2", referenced from: _posix_getgroups in libpython2.6.a(posixmodule.o) ld: symbol(s) not found collect2: ld returned 1 exit status ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin10/4.0.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin10/4.0.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin10/4.0.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin10/4.0.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin10/4.0.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin10/4.0.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin10/4.0.1/libgcc.a(darwin-tramp.o) Undefined symbols: "_getgrouplist_2", referenced from: _posix_getgroups in libpython2.6.a(posixmodule.o) ld: symbol(s) not found collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccF0he5I.out (No such file or directory) make: *** [Python.framework/Versions/2.6/Python] Error 1 shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.5" && /usr/bin/make -j4 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.0" " returned error 2 Error: Target org.macports.build returned: shell command failed DEBUG: Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" Warning: the following items did not execute (for python26): org.macports.activate org.macports.build org.macports.destroot org.macports.archive org.macports.install Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} And my environment/configure arguments are: {{{ DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386' CPPFLAGS='-I/opt/local/include -I/opt/local/include/ncurses -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CXXFLAGS='-pipe -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.4' CXX='/usr/bin/g++-4.0' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2' LDFLAGS='-L/opt/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386' OBJC='/usr/bin/gcc-4.0' FCFLAGS='-pipe -O2' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386' FFLAGS='-pipe -O2' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.0' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.5" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable- framework=/opt/local/Library/Frameworks --enable-ipv6 --enable- universalsdk=/Developer/SDKs/MacOSX10.4u.sdk' }}} -- Ticket URL: <http://trac.macports.org/ticket/23870#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS