help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARPACK library causing problem while compiling Octave-2.9.10


From: Daniel Oberhoff
Subject: Re: ARPACK library causing problem while compiling Octave-2.9.10
Date: Fri, 20 Apr 2007 13:45:15 +0200

Hi,

When I was preparing a 2.9.10 port for macports I ran into similar problems with arpack. The problem there was that the arpack port used different compiler directives/compilers for compiling the fortran files. The difference is in the way underscores are used. I have no overview which is used when, but I have seen __fun and _fun before, fun_ seems unusual to me.

The compiler directives should be the same for all of your fortran libraries (arpack, blas, maybe also suitesparse?). And in your case they seem not to be.

You could try to find out where those functions are usually defined (maybe lapack or blas) and then look at how the names are mangled inside that library (ldd on linux, otool on osx) and then compare to how they are mangled in arpack.

It is a little weird in your case also though, because the undefined references seem to be inside arpack, so I wonder how you ever got arpack compiled. Or was it a binary install using rpms or debian packages? In that case the corresponding dependency manager is broken.

Octave is usually happey when all fortran libs mangle names the same, detects the mangling and applies it everywhere, it just has to be consistent.

Daniel

Am 20.04.2007 um 13:23 schrieb R S Ananda Murthy:

Hello,

I am trying to compile octave-2.9.10 on Zenwalk-4.4.1. I have already
arpack library installed. This is detected by configure. But compiling
proceeds for some time and then stops with the following error message:

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slartg_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slahqr_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slarfg_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `cunm2r_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slapy2_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `zlanhs_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `claset_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `clahqr_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `strevc_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slarnv_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slanhs_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `ssteqr_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slanst_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slasrt_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `clacpy_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `strsen_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `sorm2r_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `ctrsen_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `sgeqr2_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slacpy_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `clascl_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `zlarnv_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slamch_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `clartg_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `dlanhs_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `clanhs_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slae2_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slascl_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `dlarnv_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slarf_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `cgeqr2_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slasr_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slabad_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slaev2_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slanv2_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `ctrevc_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `clarnv_'
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libarpack.so: undefined
reference to `slaset_'
collect2: ld returned 1 exit status
make[2]: *** [octave] Error 1
make[2]: Leaving directory `/root/octave_new/octave-2.9.10/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/root/octave_new/octave-2.9.10'
make: *** [all] Error 2

What may be the problem?

Thanks for your help,

Anand
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]