[SciPy-user] error linking to libg2c on 64-bit machine

Pearu Peterson pearu at scipy.org
Tue Nov 9 06:32:02 CST 2004

On Tue, 9 Nov 2004, Giovanni Samaey wrote:

> Pearu Peterson wrote:
>> On Tue, 9 Nov 2004, Giovanni Samaey wrote:
>>> Giovanni Samaey wrote:
>>> <snip>
>>>> So there is an incompatibility between what g77 is compiling and what is 
>>>> in this version of libg2c.
>>>> Recompiling libg2c (as suggested) is not an option. 
>>> Of course, providing a recompiled libg2c in a different place would be an 
>>> option if I can tell the install script where
>>> to look...
>> .. this would also mean compiling compiler, afaik.
>> Do you have g2c-pic library installed in your system?
>> For example, debian provides both g2c and g2c-pic. Scipy setup scripts use 
>> g2c-pic when available.
> Despite the fact that the system is debian, I do not have g2c-pic...
> As far as I can tell (I am no expert), the problem is that the library 
> libg2c.a is not position independent.

What debian version are you using?
In debian sid g2c-pic is provided by g77-3.3, for instance.

   cd /var/lib/dpkg/info
   grep libg2c *.list

>  However, there is a libg2c.so file sitting next to it, which should be 
> a shared library?

That could be an option but it would be better to use g2c-pic.


More information about the SciPy-user mailing list