[PYTHON MATRIX-SIG] Problems compiling 1.0a5 under MkLinux

Konrad Hinsen hinsen@ibs.ibs.fr
Mon, 9 Dec 96 13:47:46 +0100


> I've recently tried to compile NumPy on my MkLinux machine (Linux on
> PowerMac kernel 1.2.13).  When I attempt to link the python binary, I
> get the following symbol conflict.  Does f2c_lite.c need this
> function?  Can I rename it?  I'm guessing that f2c is automatically
> generated from the fortran source.  Can I hack this to get it to work?

f2c_lite.c is a stripped-down version of the Fortran support library
that comes with f2c. f2c will generate a call to z_abs if the Fortran
program asks for the absolute value of a double complex number, so it is
not a good idea to rename this function.

What you can probably do (unchecked!) is
1) rename z_abs to something else in f2c_lite.c
2) define a macro z_abs in f2c.h that translates to the new name

But you must then be careful to use exactly this version of f2c.h
for all Fortran-originated code you plan to link together.

-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-4.76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-4.76.88.54.94
41, av. des Martyrs                    | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================