[Trilinos-Users] [Trilinos-Help] Problem with shared installation

Bill Spotz wfspotz at sandia.gov
Wed Oct 15 13:27:59 MDT 2008


On Oct 9, 2008, at 12:32 AM, amjad ali wrote:
>>
>> You are pulling in two lapack libraries on the link line:
>>
>> /home/amjad/softwares/petsc-2.3.3-p11/externalpackages/fblaslapack/ 
>> lapack3/d
>> potrs.f:1:
>> multiple definition of `dposv_'
>>
>> /home/amjad/softwares/petsc-2.3.3-p11/externalpackages/fblaslapack/ 
>> linux-gnu
>> -openmpi/libflapack.a(dposv.o):/home/amjad/softwares/petsc-2.3.3- 
>> p11/externa
>> lpackages/fblaslapack/lapack2/dposv.f:1:
>>
>> This is what is causing the multiple definitions.
>
> OK. But when I configure with --disable-shared then make and make
> install works fine.

This is expected.  A static library can unambiguously link to the  
first version provided.  A dynamic library does not know which version  
is going to be loaded in first at run time.  So the first case is not  
an error but the second case is.

** Bill Spotz                                              **
** Sandia National Laboratories  Voice: (505)845-0170      **
** P.O. Box 5800                 Fax:   (505)284-0154      **
** Albuquerque, NM 87185-0370    Email: wfspotz at sandia.gov **







More information about the Trilinos-Users mailing list