[mod_python] undefined symbol "floor"

Matt Beauregard matt at designscape.com.au
Wed Jul 4 13:04:42 EST 2001


On Tue, Jul 03, 2001 at 10:53:53PM -0400, Gregory (Grisha) Trubetskoy wrote:
> 
> floor() lives in libm, make sure that when you compile it, "-lm" is one of
> the options.

Hi Gregory,

I think the relevant compile lines are 
/usr/local/sbin/apxs -I/usr/ports/www/mod_python/work/mod_python-2.7.5/src/include -I/usr/local/include/apache -I/usr/ports/www/mod_python/work/Python-2.1 -I/usr/ports/www/mod_python/work/Python-2.1/Include -c mod_python.o  _apachemodule.o  requestobject.o  tableobject.o  util.o  serverobject.o  connobject.o -lm  /usr/ports/www/mod_python/work/Python-2.1/libpython2.1.a      -lm
gcc -shared -o mod_python.so mod_python.o _apachemodule.o requestobject.o tableobject.o util.o serverobject.o connobject.o -lm /usr/ports/www/mod_python/work/Python-2.1/libpython2.1.a -lm 

Output from objdump:
!815 root at bofh:/usr/ports/www/mod_python/work/mod_python-2.7.5/src# objdump -t mod_python.so|grep floor
00000000       F *UND*  00000000 floor
!816 root at bofh:/usr/ports/www/mod_python/work/mod_python-2.7.5/src# objdump -T mod_python.so|grep floor
00000000      DF *UND*  00000000 floor

Any clues?

thanks,

-- 
Matt Beauregard
Technical Director, Designscape
Ph: +61 2 9361 4233   Fx: +61 2 9361 4633

Permission is given for unlimited distribution of this work under the
Copyright Act 1968 (2001 amended).  Unless otherwise stated, you agree
that these terms also cover works which you send in response.




More information about the Mod_python mailing list