libPyROOT.so problem

Hi,

I have ROOT 4.04 with --enable-python turned on. But, I have this problem:

root [0] gSystem->Load( “libPyROOT.so”);
dlopen error: /usr/local/src/root/lib/libPyROOT.so: undefined symbol: openpty
Load Error: Failed to load Dynamic link library /usr/local/src/root/lib/libPyROOT.so
*** Interpreter error recovered ***

The pathes are set, the .so file is there.

What can be the problem?

Balint

Balint,

please provide the platform and python version that you are using. openpty is part of your standard c libraries (libutil.so on linux) that libpythonx.y.so is linked with.

Thanks,
Wim

Hi,

gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) with
Python 2.4.1 and with ROOT 4.04/02b

Although I have another pc on which everything works fine:
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
g++ (GCC) 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)
with
Python 2.4.2 and with 5.08/00b

Thanx,
Balint

Balint,

python2.4 should have a shared library build by default, so can you load that one before loading PyROOT? That will drag in libutil, or at least a dummy openpty if your system doesn’t have it:

root[0] gSystem->Load( "libpython2.4.so"); root[1] gSystem->Load( "libPyROOT.so");
Cheers,
Wim