Opened 13 years ago

Closed 12 years ago

#28260 closed defect (wontfix)

python27: undefined symbol "_getgrouplist_2" when building for 10.4 target on 10.6 with +universal

Reported by: anthony_oro@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: Cc:
Port: python27

Description

I am running macports 1.9.99 on OSX 10.6. I have setup macports.conf to build for universals (ppc/i386) for OSX 10.4. I can build python 26 on my machine.

But when I try to build python 27, I get a linking error.

:info:build ar rc libpython2.7.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
:info:build ar rc libpython2.7.a Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/capsule.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/intobject.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/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o
:info:build ar rc libpython2.7.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/formatter_string.o Python/dynload_shlib.o  Python/mactoolboxglue.o Python/thread.o
:info:build ar rc libpython2.7.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o 
:info:build ar rc libpython2.7.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/zipimport.o  Modules/symtablemodule.o  Modules/xxsubtype.o
:info:build ranlib libpython2.7.a
:info:build ranlib: for architecture: ppc file: libpython2.7.a(pymath.o) has no symbols
:info:build /usr/bin/install -c -d -m 755 Python.framework/Versions/2.7
:info:build if test "/Developer/SDKs/MacOSX10.4u.sdk"; then \
:info:build 		/usr/bin/gcc-4.0 -o Python.framework/Versions/2.7/Python -arch i386 -arch ppc -dynamiclib \
:info:build 			-isysroot "/Developer/SDKs/MacOSX10.4u.sdk" \
:info:build 			-all_load libpython2.7.a -Wl,-single_module \
:info:build 			-install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python \
:info:build 			-compatibility_version 2.7 \
:info:build 			-current_version 2.7; \
:info:build         else \
:info:build 		/usr/bin/libtool -o Python.framework/Versions/2.7/Python -dynamic  libpython2.7.a \
:info:build 			 -lSystem -lSystemStubs -arch_only i386 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python -compatibility_version 2.7 -current_version 2.7 ;\
:info:build 	fi
:info:build Undefined symbols:
:info:build   "_getgrouplist_2", referenced from:
:info:build       _posix_getgroups in libpython2.7.a(posixmodule.o)
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status

Attachments (2)

main.log (118.5 KB) - added by anthony_oro@… 13 years ago.
macports.conf (5.7 KB) - added by anthony_oro@… 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by anthony_oro@…

Attachment: main.log added

Changed 13 years ago by anthony_oro@…

Attachment: macports.conf added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jwa@…

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

Does it work if you do not build universal?

Do you really need to build universal?

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Changing macosx_deployment_target is not supported precisely because it causes problems like this. Feel free to close as wontfix.

comment:4 in reply to:  2 Changed 13 years ago by anthony_oro@…

Replying to ryandesign@…:

Does it work if you do not build universal?

Do you really need to build universal?

Ok, so I kept "macosx_deployment_target" to 10.4, and tried to install without the +universal flag. It worked, which means that there is no problem with "macosx_deployment_target"

However, I do need ppc/i386 universals. My application is already working on both architecture, and 10.4 (I went through a lot of pain to make sure of that). I am currently using the 10.4 Python Framework, but that's a rather old version of Python.

To have better compatibility with Python Modules, I want to use macports to build the universal 2.7 Python Framework for 10.4.

comment:5 Changed 13 years ago by anthony_oro@…

Oh, I should say that I successfully used my attached macports.conf to build 10.4 universals of the following libs:

  • png
  • jpeg
  • zlib
  • fltk
  • pcre
  • ogg
  • speex

TBH, that's great! I just want to get Python27 working now...

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed
Summary: python27: undefined symbol "_getgrouplist_2"python27: undefined symbol "_getgrouplist_2" when building for 10.4 target on 10.6 with +universal

Clearly nothing is happening here; feel free to reopen if you come up with a fix.

Note: See TracTickets for help on using tickets.