[gcompris-devel] gcompris 3.1(libpython)
Olivier Samyn
osamyn at ulb.ac.be
Fri Jun 6 03:42:03 UTC 2003
Let me know you are using a LFS system... :)
Just like mine... So I'll quickly find the solution...
If you read the config.log you'll see it's a linking problem because the math library is not passed to the command.
It seems this is a "bug" coming with own compiled python version.
To solve it, just modify the /usr/lib/python2.2/config/Makefile
find the line containing LOCALMODLIBS= ... and add -lm
Olivier
>Hello,
>
>Thanks for the reaction. Here is some more information:
>
>* libpython2.2.a does exist and is located in /usr/lib/python2.2/config
>
>* I have a LFS system. Python is therefore manually installed, according
>to the LFS-book
>
>http://beyond.linuxfromscratch.org/view/cvs/general/Python.html
>
>* I have included the relevant part from config.log below
>
>Thanks!
>
>Rob van Dam
>
> configure:12455: checking for Python.h
>configure:12462: result: yes
>configure:12489: checking for Py_Initialize in -lpython2.2
>configure:12520: gcc -o conftest -g -O2 -Xlinker -export-dynamic
>-L/usr/lib/python2.2/config -ldl -lpthread -lutil
>conftest.c -lpython2.2 >&5
>/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o): In function
>`posix_tmpnam':
>/usr/src/blfs/Python-2.2.2/./Modules/posixmodule.c:4505: the use of
>`tmpnam_r' is dangerous, better use `mkstemp'
>/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o): In function
>`posix_tempnam':
>/usr/src/blfs/Python-2.2.2/./Modules/posixmodule.c:4455: the use of
>`tempnam' is dangerous, better use `mkstemp'
>/usr/lib/python2.2/config/libpython2.2.a(floatobject.o): In function
>`float_pow':
>/usr/src/blfs/Python-2.2.2/Objects/floatobject.c:578: undefined
>reference to `pow'
>/usr/lib/python2.2/config/libpython2.2.a(complexobject.o): In function
>`_Py_c_pow':
>/usr/src/blfs/Python-2.2.2/Objects/complexobject.c:140: undefined
>reference to `pow'
>/usr/src/blfs/Python-2.2.2/Objects/complexobject.c:144: undefined
>reference to `exp'
>/usr/src/blfs/Python-2.2.2/Objects/complexobject.c:145: undefined
>reference to `log'
>/usr/src/blfs/Python-2.2.2/Objects/complexobject.c:147: undefined
>reference to `cos'
>/usr/src/blfs/Python-2.2.2/Objects/complexobject.c:148: undefined
>reference to `sin'
>collect2: ld returned 1 exit status
>
>
>
>-----Original Message-----
>From: gcompris-devel-admin at lists.sourceforge.net
>[mailto:gcompris-devel-admin at lists.sourceforge.net] On Behalf Of Olivier
>Samyn
>Sent: donderdag 5 juni 2003 9:38
>To: gcompris-devel at lists.sourceforge.net
>Subject: re:[gcompris-devel] gcompris 3.1
>
>Hi,
>
>Since I'm the writer of the python plugin I'll just reply to this
>point...
>
>It seems that there's no static python library installed with your
>distribution (or you need to install a package ?)
>
>To help you I will ask you three things:
>- Check that a file named libpython* exists... probably this file will
>be located in the /usr/lib/python2.2/config directory and its full name
>will be something like libpython2.2.a
>- Check what's wrong in the config.log file (created after having run
>cthe configure script). If you don't know what to do with this file,
>just send it to me (not to the entire list)
>- Send us some more infos like what's your distribution, which version,
>do you installed python manually or is it a package ...
>
>Hope we'll find a solution...
>
>Olivier Samyn
>osamyn at ulb.ac.be
>
>
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Etnus, makers of TotalView, The best
>thread debugger on the planet. Designed with thread debugging features
>you've never dreamed of, try TotalView 6 free at www.etnus.com.
>_______________________________________________
>gcompris-devel mailing list
>gcompris-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gcompris-devel
>
>
More information about the Gcompris-devel
mailing list