[Python-Dev] Linker problems on Linux

M.-A. Lemburg mal@lemburg.com
Sat, 15 Jul 2000 19:57:45 +0200


I just tried to compile the current CVS version on Linux.
The compile went fine, but when I started Python, I got:

'import site' failed; use -v for traceback
Python 2.0b1 (#1, Jul 15 2000, 19:22:33)  [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)
Traceback (most recent call last):
  File "/home/lemburg/bin/pyinteractive.py", line 7, in ?
    import mx.Tools
  File "/home/lemburg/projects/mx/Tools/__init__.py", line 24, in ?
    from Tools import *
  File "/home/lemburg/projects/mx/Tools/Tools.py", line 10, in ?
    from mxTools import *
  File "/home/lemburg/projects/mx/Tools/mxTools/__init__.py", line 1, in ?
    from mxTools import *
ImportError: /home/lemburg/projects/mx/Tools/mxTools/mxTools.so: undefined symbol: PyObject_Length
>>> 

Why isn't PyObject_Length being exported anymore ??? 

I hve the funny feeling that the API name cosmetics applied to
xxx_Length() got someone carried away a bit ;-) 

We shouldn't drop binary compatibility on *all* platforms just
for the sake of style... I remember very well how Guido opposed
to any binary incompatible changes in earlier versions of Python
and can't really believe that this strategy has suddenly changed
for 2.0.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/