[wxPython] wxPython-users digest, Vol 1 #145 - 22 msgs

import wxc
ImportError: ld.so.1: python: fatal: relocation error: file
[python_libdir]/site-packages/wxPython/wxcmodule.so
: symbol main: referenced symbol not found

This is a little weird. wxcmodule.so should not have a need to
access main.

Almost the exact words I used ;^)~

It's been a long time since I tried building on Solaris. I'll
try to do it again soon to see if I get any of these problems.

Thanks for the commentary. I just figured it out myself (not working on
this full time). It turns out that *all* extensions were having problems
finding *some* symbol. Yours was just the first extension I tried, since
it was the one I wanted to use. When that didn't work, I tried pyGTK,
which had problems finding a *different* symbol. This told me it was
Python, and not the extension, which was having the problem.

I tried rebuilding several ways with no luck. Then I scanned Dejanews
for 'import shared module' or something like that, and lo and behold,
there were several suggestions. I hand-inserted a switch '-Wl,-E' to
Modules/Makefile, which tells the compiler to (-Wl) "pass the following
switch" on to the linker, where the switch (-E) means "export
symbols".

This was in a message discussing how to build Python to support
embedding *it* in another application, but I tried it and it
works. Thanks to Frederik Lundh for that post!

Now this may have appeared as an option in configure, but I've gone back
to look and it isn't apparent to me. In any case, things are working
now. Sorry to bother the list. Thanks.

ยทยทยท

--
Don Wakefield Mentor Graphics Corporation
(503) 685-1262 8005 S.W. Boeckman Road
don_wakefield@mentorg.com Wilsonville, OR 97070-7777