[Distutils] distutils.core.setup: ImportError: undefined symbol: g_free

Thomas p_thomas at gmx.net
Sun May 27 12:22:10 CEST 2007


Hallo,

I want to call some C functions from the gnome-panel source.

setup.py:
> setup(name = "calwrap", version = "1.0", ext_modules = [ ...

Then I call:
./setup.py build

Compiling works fine, I get:
calwrap.so

Then in python I get the following error:
> Python 2.5.1 (r251:54863, May  2 2007, 16:56:35) 
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import calwrap
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: ./calwrap.so: undefined symbol: g_free

I tried:
> extra_link_args = ["-Xlinker", "-export-dynamic"]


Any ideas?

fg
Thomas



More information about the Distutils-SIG mailing list