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

Zachary_Roadhouse@brown.edu Zachary_Roadhouse@brown.edu
Sat, 07 Dec 1996 11:49:28 -0500 (EST)


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?

gcc  -O  main.o config.o getpath.o \
              libModules.a ../Python/libPython.a
../Objects/libObjects.a ../Parser/libParser.a -L/usr/X11R6.1/lib
-L/usr/local/lib -ltk4.2 -ltcl7.6 -lX11   -L/usr/lib -lgdbm    -lm 
-lm      -lm  -o python
/usr/lib/libm.a(cabs.o): In function `hypot':
cabs.o(.text+0x268): multiple definition of `z_abs'
libModules.a(f2c_lite.o)(.text+0x46c): first defined here

I've noticed that is is only used in a few places, maybe there is a
better name for this.

f2c_lite.c:325:double z_abs(z) doublecomplex *z;
f2c_lite.c:328:double z_abs(doublecomplex *z)
zlapack_lite.c:13946:    double d_imag(), z_abs();
zlapack_lite.c:14247:   ca = z_abs(&a[ica + i__ * a_dim1]);
zlapack_lite.c:14250:   ra = z_abs(&a[i__ + (ira + k - 1) * a_dim1]);
zlapack_lite.c:20239:    double z_abs(), sqrt();
zlapack_lite.c:20349:           d__1 = value, d__2 = z_abs(&a[i__ + j
* a_dim1]);
zlapack_lite.c:20367:           sum += z_abs(&a[i__ + j * a_dim1]);
zlapack_lite.c:20388:           work[i__] += z_abs(&a[i__ + j *
a_dim1]);
zlapack_lite.c:20740:    double z_abs(), sqrt();
zlapack_lite.c:20851:           d__1 = value, d__2 = z_abs(&a[i__ + j
* a_dim1]);
zlapack_lite.c:20867:           sum += z_abs(&a[i__ + j * a_dim1]);
zlapack_lite.c:20886:           work[i__] += z_abs(&a[i__ + j *
a_dim1]);


     - Zack

E-MAIL: Zachary_Roadhouse@brown.edu  WEB: http://althor.netspace.org/~zack/
Brown University, Box 220, Providence, RI 02912
Phone: (401) 863 - 5435

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

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