Newbie needs help with... his blood pressure ;-)

Luis Speciale lspeciale at gmail.com
Thu Aug 21 08:57:48 EDT 2008


Hi

I'm trying to build mod_pyton on Leopard 10.5.4 on a Mac G5 with this 
cvs version
http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk

with this Python

python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin

So i did
./configure --with-apxs=/usr/sbin/apxs 
--with-python=/usr/local/bin/python ARCHFLAGS='-arch ppc'

and I get

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 Apache version... 2.2.8
checking for Apache libexec directory... /usr/libexec/apache2
checking for Apache include directory... -I/usr/include/apache2
checking for --with-python... /usr/local/bin/python
checking Python version... 2.5
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... /usr/bin/flex
found /usr/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

Seems good for my blood, but

make

gives this

Compiling for DSO.

/usr/sbin/apxs -I/Users/speciale/Desktop/dossier sans titre 
3/src/include 
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 
-DNDEBUG -Wc,'-arch ppc7400' -Wc,'-arch ppc64' -Wc,'-arch i386' 
-Wc,'-arch x86_64' -c mod_python.c _apachemodule.c requestobject.c 
tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c 
hlistobject.c finfoobject.c -arch ppc7400 -arch ppc64 -arch i386 -arch 
x86_64 -Wl,-F/Library/Frameworks -framework Python -u _PyMac_Error  -ldl
Usage: apxs -g [-S <var>=<val>] -n <modname>
        apxs -q [-S <var>=<val>] <query> ...
        apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
                [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
                [-Wl,<flags>] [-p] <files> ...
        apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
        apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
make[1]: *** [mod_python.so] Error 1
make: *** [do_dso] Error 2

Am I already dead ?

Thanks Doctors ;-)

Luis



More information about the Python-list mailing list