C modules with gcc 3.0.x

David M. Cooke cookedm+news at physics.mcmaster.ca
Sun Nov 11 17:11:34 EST 2001


At some point, "Robert Nikander" <nikander at mindspring.com> wrote:

> Has anyone been using gcc 3 with python C modules?  When gcc 2.95 compiles
> the module everything works fine, but if I use gcc 3 I get this....
> 
> Python 2.2b1 (#2, Nov 11 2001, 12:36:39) [GCC 2.95.3 20010315 (release -
> Linux-Mandrake 8.0 for PPC)] on linux2 Type "help", "copyright", "credits"
> or "license" for more information.
> >>> import spam
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: libgcc_s.so.1: cannot load shared object file: No such file
> or directory
> >>> 
> >>> 

Well, I think that's pretty obvious :-) The loader can't find the
'libgcc_s.so.1' library. GCC 3, instead of statically linking in a
runtime library libgcc.a, now links to a shared library instead. Check
to see if you have it somewhere (probably in /lib). Otherwise, you'll
have to install it (on Debian, it's the libgcc1 package -- I don't
know what it is for Mandrake).

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca



More information about the Python-list mailing list