1.5.2 compilation with *shared* on Sunos 5.7 fails tests

Frederic Gobry gobry at blanc.idiap.ch
Tue May 25 04:43:37 EDT 1999


>% python
>Python 1.5.2 (#1, May 21 1999, 09:17:08)  [GCC egcs-2.91.66 19990314
>(egcs-1.1.2  on sunos5
>Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>> import ExtensionClass
>Traceback (innermost last):
>  File "<stdin>", line 1, in ?
>ImportError: ld.so.1: python: fatal: relocation error: file
>./ExtensionClass.so: symbol PyImport_ImportModule: referenced symbol not
>found

egcs (at least this release) requires an additional flag in order to export
its symbol when using dynamic linking (well, it's what I suppose...) So
you'll have to search the makefile (probably the one in Modules) and add

	-Wl,-E 

in the flags used for linking... This should solve your problem.

Frédéric




More information about the Python-list mailing list