[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gmp-4.1.1: shared library link failure on Sun Solaris 2.7 and 2.8
From: |
Nelson H. F. Beebe |
Subject: |
gmp-4.1.1: shared library link failure on Sun Solaris 2.7 and 2.8 |
Date: |
Wed, 11 Dec 2002 13:02:13 -0700 (MST) |
While builds of gmp-4.1.1 were largely successful on about a dozen
local flavors of Unix, I got a shared library link failure on Sun
Solaris 2.7 and 2.8 at install time:
% make install
...
... scanf/.libs/vsscanf.o -L/usr/local/lib -lc -Wl,-rpath -Wl,-soname
-Wl,libgmp.so.3 -o
.libs/libgmp.so.3.3.1
/usr/local/sparc-sun-solaris2.7/bin/ld: cannot open libgmp.so.3: No such file
or directory
collect2: ld returned 1 exit status
make[1]: *** [libgmp.la] Error 1
make[1]: Leaving directory `/local/build/gmp-4.1.1'
make: *** [install-recursive] Error 1
The workaround proved to be the addition of library search path
entries for ./.libs with a simple extension to LDFLAGS:
% make LDFLAGS='-Wl,-rpath /usr/local/lib -L/usr/local/lib -Wl,-rpath
/local/build/gmp-4.1.1/.libs -L/local/build/gmp-4.1.1/.libs'
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- Center for Scientific Computing FAX: +1 801 581 4148 -
- University of Utah Internet e-mail: address@hidden -
- Department of Mathematics, 110 LCB address@hidden address@hidden -
- 155 S 1400 E RM 233 address@hidden -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe -
-------------------------------------------------------------------------------
- gmp-4.1.1: shared library link failure on Sun Solaris 2.7 and 2.8,
Nelson H. F. Beebe <=