bin/ppython
Python 2.3.3 (#2, Feb 17 2004, 11:45:40)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libdtoolconfig
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: libdtool.so: cannot open shared object file: No such file or directory
>>> dir(libdtoolconfig)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'libdtoolconfig' is not defined
>>>
Also, I did a “find” looking for “Py_InitModule” to see if it showed up in the compile and it didn’t. I believe that should have shown up if initlibdtoolconfig() was called, correct?
Py_InitModule is a function that’s part of the Python API. It wouldn’t be mentioned in the compilation output, and there’s no particular file by that name–it’s the name of a function.
Did you set LD_LIBRARY_PATH this time? Try setting that again. It looks like it wasn’t able to find your shared libraries.
$ cd built
$ bin/ppython
Python 2.3.3 (#2, Feb 17 2004, 11:45:40)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libdtoolconfig
Segmentation fault
$ bin/ppython
Python 2.3.3 (#2, Feb 17 2004, 11:45:40)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> dir(libdtoolconfig)
Hmm, this is stranger than I thought. It appears that it is in fact crashing before it calls initlibdtoolconfig, which means it must be crashing at static init time.
Since it does not crash when static init is run in pview, it might be some subtle problem with order of static init execution, or a name conflict on a system dynamic library, or something that is otherwise related to the fact that you are running within Python.
Maybe it is time to ask Josh to try to install Mandrake Linux so he can attempt to duplicate this problem. Josh, what do you think?