Graham Dumpleton
graham.dumpleton at gmail.com
Sat Jun 16 23:18:19 EDT 2007
On 15/06/07, Porcari Giovanni <giovanni.porcari at gmail.com> wrote: > Hi all > > I'm trying to install mod_python 3.3.1 on an OSX Server 10.3.9. > Python version is 2.4.4 and Apache 2.2. > > > this is my configure command: > > ./configure --with-python=/Library/Frameworks/Python.framework/ > Versions/Current/bin/python --with-apxs=/usr/local/apache2/bin/apxs > > and this is the error i get in the make command: > > /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ > objimpl.h:255: warning: To disable this warning, use -Wno-long-double.) > /usr/local/apache2/build/libtool --silent --mode=link gcc -o > mod_python.la -rpath /usr/local/apache2/modules -module -avoid- > version finfoobject.lo hlistobject.lo hlist.lo filterobject.lo > connobject.lo serverobject.lo util.lo tableobject.lo requestobject.lo > _apachemodule.lo mod_python.lo -Wl,-framework,Python -u _PyMac_Error / > Versions// -arch i386 -arch ppc -isysroot /Developer/SDKs/ > MacOSX10.4u.sdk -g -lm -framework Python -ldl > ld: for architecture i386 > ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/finfoobject.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/hlistobject.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/hlist.o cputype (18, architecture ppc) does not > match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/filterobject.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/connobject.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/serverobject.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/util.o cputype (18, architecture ppc) does not > match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/tableobject.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/requestobject.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/_apachemodule.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning .libs/mod_python.o cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning /usr/lib/libm.dylib cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning /usr/lib/libdl.dylib cputype (18, architecture ppc) does > not match cputype (7) for specified -arch flag: i386 (file not loaded) > ld: warning /usr/lib/gcc/darwin/3.3/libgcc.a archive's cputype (18, > architecture ppc) does not match cputype (7) for specified -arch > flag: i386 (can't load from it) > ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc) > does not match cputype (7) for specified -arch flag: i386 (file not > loaded) > ld: warning /usr/lib/libSystem.B.dylib cputype (18, architecture ppc) > does not match cputype (7) for specified -arch flag: i386 (file not > loaded) > ld: for architecture ppc > ld: Undefined symbols: > _fstatvfs referenced from Python expected to be defined in libSystem > _lchown referenced from Python expected to be defined in libSystem > _statvfs referenced from Python expected to be defined in libSystem > apxs:Error: Command failed with rc=65536 > . > make[1]: *** [mod_python.so] Error 1 > make: *** [do_dso] Error 2 > > > > Any clue to solve this issue ? Either Python configuration or Apache configuration is possibly wrong. Edit: /Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/config/Makefile and look for '-arch i386 -arch ppc' and change it to just '-arch i386' or delete both entries. If those arguments aren't coming from that file, look in and make change in: /usr/local/apache2/build/config_vars.mk instead. Graham
|