Opened 15 years ago
Closed 14 years ago
#23870 closed defect (worksforme)
python-3.1.1 fails to build with undefined symbol on Snow Leopard
Reported by: | kurtis@… | Owned by: | erickt@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | anthony_oro@… | |
Port: | python31 |
Description (last modified by mf2k (Frank Schima))
rm -f libpython3.1.a ar rc libpython3.1.a Modules/getbuildinfo.o ar rc libpython3.1.a Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o ar rc libpython3.1.a Objects/abstract.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/capsule.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/weakrefobject.o ar rc libpython3.1.a Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/dtoa.o Python/formatter_unicode.o Python/dynload_shlib.o Python/thread.o ar rc libpython3.1.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o ar rc libpython3.1.a Modules/_threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/_functoolsmodule.o Modules/_localemodule.o Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o ranlib libpython3.1.a ranlib: for architecture: x86_64 file: libpython3.1.a(pymath.o) has no symbols ranlib: for architecture: i386 file: libpython3.1.a(pymath.o) has no symbols /usr/bin/install -c -d -m 755 Python.framework/Versions/3.1 if test "/"; then \ /usr/bin/gcc-4.2 -o Python.framework/Versions/3.1/Python -arch x86_64 -arch i386 -dynamiclib \ -isysroot "/" \ -all_load libpython3.1.a -Wl,-single_module \ -install_name /opt/local/Library/Frameworks/Python.framework/Versions/3.1/Python \ -compatibility_version 3.1 \ -current_version 3.1 \ -framework CoreFoundation -ldl -arch x86_64 -arch i386 -isysroot / -L/opt/local/lib -arch x86_64 -arch i386; \ else \ /usr/bin/libtool -o Python.framework/Versions/3.1/Python -dynamic libpython3.1.a \ -lSystem -lSystemStubs -arch_only i386 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/3.1/Python -compatibility_version 3.1 -current_version 3.1 -framework CoreFoundation -ldl -arch x86_64 -arch i386 -isysroot / -L/opt/local/lib -arch x86_64 -arch i386;\ fi Undefined symbols: "_libintl_bindtextdomain", referenced from: _PyIntl_bindtextdomain in libpython3.1.a(_localemodule.o) "_libintl_textdomain", referenced from: _PyIntl_textdomain in libpython3.1.a(_localemodule.o) "_libintl_dgettext", referenced from: _PyIntl_dgettext in libpython3.1.a(_localemodule.o) "_libintl_gettext", referenced from: _PyIntl_gettext in libpython3.1.a(_localemodule.o) "_libintl_dcgettext", referenced from: _PyIntl_dcgettext in libpython3.1.a(_localemodule.o) ld: symbol(s) not found collect2: ld returned 1 exit status Undefined symbols: "_libintl_bindtextdomain", referenced from: _PyIntl_bindtextdomain in libpython3.1.a(_localemodule.o) "_libintl_dgettext", referenced from: _PyIntl_dgettext in libpython3.1.a(_localemodule.o) "_libintl_dcgettext", referenced from: _PyIntl_dcgettext in libpython3.1.a(_localemodule.o) "_libintl_gettext", referenced from: _PyIntl_gettext in libpython3.1.a(_localemodule.o) "_libintl_textdomain", referenced from: _PyIntl_textdomain in libpython3.1.a(_localemodule.o) ld: symbol(s) not found collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccu6NEvM.out (No such file or directory) make: *** [Python.framework/Versions/3.1/Python] Error 1 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python31/work/Python-3.1.1" && /usr/bin/make -j2 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python31/work/Python-3.1.1" && /usr/bin/make -j2 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" Warning: the following items did not execute (for python31): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
Change History (8)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Cc: | kurtis@… removed |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to erickt@… |
Port: | python31 added |
comment:2 Changed 14 years ago by jon.hermansen@…
comment:3 follow-up: 4 Changed 14 years ago by j.bugzilla2@…
python31 (Python 3.1.2) compiled and installed fine on my 10.6.4 machine using MacPorts 1.9.1. Is this ticket still relevant? If not, perhaps it should be closed and removed from the Snow Leopard problem page. Perhaps it was fixed by some work jmr did a few months ago?
comment:4 follow-up: 5 Changed 14 years ago by c.roger.day@…
Replying to j.bugzilla2@…:
python31 (Python 3.1.2) compiled and installed fine on my 10.6.4 machine using MacPorts 1.9.1. Is this ticket still relevant? If not, perhaps it should be closed and removed from the Snow Leopard problem page. Perhaps it was fixed by some work jmr did a few months ago?
I am not an expert. I installed the latest and greatest of everthing, and when I tried to install 3.1.2, it failed with the above error. I installed gettext and the build worked. Maybe gettext is missing as a dependancy for 3.1.2 on snow leopard ports?
comment:5 Changed 14 years ago by kurtis@…
Replying to c.roger.day@…:
Replying to j.bugzilla2@…:
python31 (Python 3.1.2) compiled and installed fine on my 10.6.4 machine using MacPorts 1.9.1. Is this ticket still relevant? If not, perhaps it should be closed and removed from the Snow Leopard problem page. Perhaps it was fixed by some work jmr did a few months ago?
I am not an expert. I installed the latest and greatest of everthing, and when I tried to install 3.1.2, it failed with the above error. I installed gettext and the build worked. Maybe gettext is missing as a dependancy for 3.1.2 on snow leopard ports?
You are indeed right. That does sole the problem and I now have a working python31. thanks!
comment:6 Changed 14 years ago by anthony_oro@…
I am running OSX 10.6 with macports 1.9.99. I tried to compile Python27 Universal Binaries (ppc i386) for target deployment to OSX 10.4. All the dependencies got built correctly, including gettext which was detected automatically. But I get the "_getgrouplist_2" reference error when Python27 tries to build.
As anyone got any clues why this reference is missing when GetText is actually installed?!?
comment:8 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Can't reproduce.
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):
And my environment/configure arguments are: