libHYPRE.so is not linked to other libHYPRE* libs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hypre (Debian) |
Fix Released
|
Unknown
|
|||
hypre (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have ubuntu-13.04, 64bit
libhypre-dev package, version 2.8.0b-1
shared library /usr/lib/
$ ldd /usr/lib/
linux-vdso.so.1 => (0x00007fff55df
libc.so.6 => /lib/x86_
/lib64/
As a result a test program test_hypre.c
-------
#include <HYPRE.h>
int main(){
HYPRE_IJMatrixC
return 0
}
compiled with:
gcc test_hypre.c -lHYPRE
compilation failed with message:
/tmp/ccvHPJmL.o: In function `main':
test_hypre.
collect2: error: ld returned 1 exit status
Of course if I specify specific library -lHYPRE_IJ_mv than compilation is successful.
But -lHYPRE do not work at all as it has no symbols defined.
Changed in hypre (Debian): | |
status: | Unknown → Fix Released |
Hello. Is there ANY maintainer for this package? libHYPRE. so) libHYPRE- 2.8.08. so sstruct_ ls.so sstruct_ mv.so DistributedMatr ixPilutSolver. so DistributedMatr ix.so FEI_fgmres. so MatrixMatrix. so multivector. so ParaSails. so parcsr_ block_mv. so parcsr_ ls.so parcsr_ mv.so struct_ ls.so struct_ mv.so utilities. so
I suggest to include following linker script (with name /usr/lib/
instead of completely unusable file /usr/lib/
====== libHYPRE.so
GROUP(
libHYPRE_
libHYPRE_
libHYPRE_
libHYPRE_
libHYPRE_Euclid.so
libHYPRE_
libHYPRE_FEI.so
libHYPRE_IJ_mv.so
libHYPRE_krylov.so
libHYPRE_
libHYPRE_mli.so
libHYPRE_
libHYPRE_
libHYPRE_
libHYPRE_
libHYPRE_
libHYPRE_seq_mv.so
libHYPRE_
libHYPRE_
libHYPRE_
);
===================
Such linker script will allow to link user programs with just one option -lHYPRE and
do not link a program with unnecessary shared libraries.