[mod_python] OSx compile problem

harm harm-modpython at tty.nl
Fri Jul 4 19:00:39 EST 2003


Moi,

somehow compiling on OSX does not work for me (OSX 10.2) with python 2.2.3,
mod_python 2.7.8 and apache 1.3.27


trying a static build gives:

gcc  -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` -u __dummy -u _PyMac_Error -framework System -framework
CoreServices -framework Foundation        \
      -o httpd buildmark.o modules.o modules/python/libpython.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a lib/expat-lite/libexpat.a  -lm
/usr/local/lib/python2.2/config/libpython2.2.a   -ldl                 
ld: table of contents for archive: modules/python/libpython.a is out of
date; rerun ranlib(1) (can't load from it)
make[2]: *** [target_static] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2
[Harmens-Computer:/tmp/apache_1.3.27] harmen%



A DSO gives:
Compiling for DSO. For static, do "make static"

/usr/local/apache/sbin/apxs -I/tmp/mod_python-2.7.8/src/include
-I/usr/local/apache/include -I/usr/local/include/python2.2 -c mod_python.o
_apachemodule.o requestobject.o tableobject.o util.o serverobject.o
connobject.o  -lm  /usr/local/lib/python2.2/config/libpython2.2.a   -ldl                 
  -o mod_python.so mod_python.o _apachemodule.o requestobject.o
tableobject.o util.o serverobject.o connobject.o -lm
/usr/local/lib/python2.2/config/libpython2.2.a -ldl 
apxs:Break: Command failed with rc=16777215
make[1]: *** [mod_python.so] Error 1
make: *** [do_dso] Error 2
[Harmens-Computer:/tmp/mod_python-2.7.8] harmen% 




The ./configure output indicates it does take the right freshly recompiled nonthreaded python libs.  Any hints?

Thanks,
Harmen



(Hope this email does get through, my excuse for any doubles)

-- 
                               The Moon is Waxing Crescent (13% of Full)


More information about the Mod_python mailing list