C extensions on Reliant UNIX?
Daniel Dittmar
daniel.dittmar at sap.com
Wed Aug 30 12:27:34 EDT 2000
Has anyone been successful at writing Python extensions using shared objects
on Reliant UNIX?
When I import the module, I get the following error:
Traceback (innermost last):
File "<string>", line 1, in ?
ImportError: ld.so: python: relocation error: symbol not found: PyType_Type
nm on the executable:
bash-2.01$ nm /usr/local/bin/python | grep PyType_Type
[2020] | 5175596| 108| D |GLOB |0 |13 |PyType_Type
which means that it's obviously defined in the python executable.
nm on the shared object:
[Index] Value Size Type Bind Other Shndx Name
[952] | 0| 0| U |GLOB |0 |UNDEF |PyType_Type
[953] | 118172| 0| U |GLOB |0 |UNDEF |Py_BuildValue
The funny thing is that the Value is defined for imported functions like
Py_BuildValue, but is zero for all imported global variables.
The compiler is
CDR9992: CDS++ Version 02.0C00
CDR9993: Copyright (C) Fujitsu Siemens ComputersGmbH 2000.
CDR9994: All rights reserved.
CDR9908: cc: Fujitsu Siemens Computers GmbH: CDS++ V2.0C0003, 1.2.7.2 from
29 Jun 2000
Any ideas would be very much appreciated.
Daniel
--
Daniel Dittmar
daniel.dittmar at sap.com
SAPLabs Berlin
More information about the Python-list
mailing list