I would imagine that the libpython2.5.so that you grabbed from the
rpm requires a different version of glibc than the one that you have.
It's normally a very bad plan to extract libraries from a package and
install them manually because you might be missing some dependencies.
Since you already compiled and installed python 2.5 you should
probably delete the libpython2.5.so files that you installed manually
and then reconfigure python with ./configure --enable-shared and then
rebuild it and reinstall it. That should create working version of
libpython. If all goes well the python binary should link against the
libpython and work just fine.
Ali
On Jul 13, 2007, at 4:54 AM, Dean Michael Ancajas wrote:
Thanks Ali,
the Python.h is located in the /usr/local/include/python2.5/
directory and then I made a softlink to the /usr/include/python2.5/
directory just in case the compiler will look into that directory.
I still got the same error.
These are the contents of the file build/scons_config.log, i really
do not know what to do with the 'undefined reference' messages at
the bottom part, does this mean I have to rebuild my glibc? If yes,
how? can you please point me to some useful websites as a starting
point. thanks again. =)
--
Dean Michael B. Ancajas
**********************START HERE***********************************
file /net/libra/home/dean/gradfiles/m5/m5-2.0b3/SConstruct,line 287:
Configure(confdir = build/.scons_config)
scons: Configure: Checking for C header file Python.h...
build/.scons_config/conftest_0.c <-
|
|#include <Python.h>
|
|
gcc -o build/.scons_config/conftest_0.o -c -pipe -fno-strict-
aliasing -Wall -Wno-sign-compare -Werror -Wundef -Iext/dnet -I/usr/
local/include/python2.5 build
/.scons_config/conftest_0.c
scons: Configure: yes
scons: Configure: Checking for C library python2.5...
build/.scons_config/conftest_1.c <-
|
|
|
|int
|main() {
|
|return 0;
|}
|
gcc -o build/.scons_config/conftest_1.o -c -pipe -fno-strict-
aliasing -Wall -Wno-sign-compare -Werror -Wundef -Iext/dnet -I/usr/
local/include/python2.5 build
/.scons_config/conftest_1.c
gcc -o build/.scons_config/conftest_1 build/.scons_config/
conftest_1.o -L/usr/local/lib - lpython2.5
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
/usr/local/lib/libpython2.5.so: undefined reference to
[EMAIL PROTECTED]'
collect2: ld returned 1 exit status
scons: Configure: no
***************************** end here **************************
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users