Hi. I have pythonmac python 2.4.4 installed on my PPC on Mac OSX 10.3.9 and having trouble building mod_python for Apache 2.0.59. I have built apache just fine. Config for mod_python 3.3.1 looks good and output is below. Failing on make due to arch flags and getting a number of warnings on pointer type, use of long doubles. Hope someone can help. Many thanks.
Regards, David configuration: [Mac-PG:~/Desktop/mod_python-3.3.1] davidpra% ./configure --with-apxs=/usr/local/apache2/bin/apxs checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ar... ar checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking for main in -lm... yes checking for an ANSI C-conforming const... yes checking your blood pressure... a bit high, but we can proceed configure: checking whether apxs is available... checking for --with-apxs... /usr/local/apache2/bin/apxs executable, good checking Apache version... 2.0.59 checking for Apache libexec directory... /usr/local/apache2/modules checking for Apache include directory... -I/usr/local/apache2/include checking for --with-python... no checking for python... /Library/Frameworks/Python.framework/Versions/Current/bin/python checking Python version... 2.4 checking Python install prefix... /Library/Frameworks/Python.framework/Versions/2.4 checking checking where python libraries are installed... /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4 checking what libraries Python was linked with... -framework Python -ldl checking linker flags used to link Python... checking where Python include files are... -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 checking for --with-python-src... no checking for --with-mutex-dir... no Using MUTEX_DIR /tmp checking for --with-max-locks... no Using 8 MAX_LOCKS. checking for --with-flex... no checking for flex... /opt/local/bin/flex found /opt/local/bin/flex, we'll use this. Use --with-flex to specify another. checking flex version... 2.5.33. Good configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating Doc/Makefile config.status: creating src/include/mod_python.h config.status: creating test/Makefile config.status: creating test/testconf.py config.status: creating dist/setup.py config.status: creating dist/Makefile Here are my tracebacks: I am seeing things like: mod_python.c: In function `python_init': mod_python.c:826: warning: initialization from incompatible pointer type also a pile of warnings on long double usage. Here is the final part of the compile with the failures: from /Users/davidpratt/Desktop/mod_python-3.3.1/src/include/mod_python.h:80, from finfoobject.c:25: /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/objimpl.h:255: warning: use of `long double' type; its size may change in a future release /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/objimpl.h:255: warning: (Long double usage is reported only once for each file. /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 _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig