[Pythonmac-SIG] Pythonmac 2.4.4 (PPC) and mod_python problems

Frank Hoffsümmer frank.hoffsummer at gmail.com
Wed Apr 25 16:45:02 CEST 2007


hi,
I also have trouble building the latest mod_python using the latest UB build
of python (2.4.4 or 2.5.1) on a PowerPC OS X machine.
My OS X version is 10.4.9 (Server) and the gcc version is 4.01 (build 5367 =
latest XCode)

I am trying to compile mod_python using the apxs from the build-in apache2
installation that comes with OS X 10.4 Server (/opt/apache2)

heres what I am doing

cd mod_python-3.3.1
./configure --with-apxs=/opt/apache2/bin/apxs
--with-python=/Library/Frameworks/Python.framework/Versions/Current/bin/python
export MACOSX_DEPLOYMENT_TARGET=10.4
make

the result is always (using UB python 2.4.4 or 2.5.1 from python.org)

/usr/bin/ld: for architecture i386
/usr/bin/ld: warning fat file:
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib does not contain
an architecture that matches the specified -arch flag: i386 (file ignored)
/usr/bin/ld: warning fat file:
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libdl.dylib does not contain
an architecture that matches the specified -arch flag: i386 (file ignored)
/usr/bin/ld: warning fat file:
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib does not
contain an architecture that matches the specified -arch flag: i386 (file
ignored)
/usr/bin/ld: warning fat file: /usr/lib/libSystem.B.dylib does not contain
an architecture that matches the specified -arch flag: i386 (file ignored)
/usr/bin/ld: Undefined symbols:
___sF referenced from Python expected to be defined in
/usr/lib/libSystem.B.dylib
_exit referenced from Python expected to be defined in
/usr/lib/libSystem.B.dylib
.....
<cut>
.....
_setpwent referenced from Python expected to be defined in
/usr/lib/libSystem.B.dylib
_mktime referenced from Python expected to be defined in
/usr/lib/libSystem.B.dylib
_clock referenced from Python expected to be defined in
/usr/lib/libSystem.B.dylib
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccAkqNp0.out (No such file or
directory)
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make: *** [do_dso] Error 2

this used to work with earlier versions of XCode/python/mod_python, but
somehow I cannot compile the latest release
apologies if this is the wrong group, but I saw the topic being discussed
here earlier

thanks for any insight you might have
-frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20070425/9f59a527/attachment.html 


More information about the Pythonmac-SIG mailing list