bug-gmp
[Top][All Lists]
Advanced

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

Re: gmp-4.1.1: shared library link failure on Sun Solaris 2.7 and 2.8


From: Kevin Ryde
Subject: Re: gmp-4.1.1: shared library link failure on Sun Solaris 2.7 and 2.8
Date: Sat, 14 Dec 2002 06:57:14 +1000
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (i386-debian-linux-gnu)

"Nelson H. F. Beebe" <address@hidden> writes:
>
> ... 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

Hmm, yes that looks a bit doubtful, I guess there's supposed to be an
argument after that -Wl,-rpath (either another -Wl or a -Wl,-rpath,xyz
style).

I don't get that using gcc 3.2 with the native ld on solaris 2.8 (or I
think it's using the native ld).  For me it's just

        gcc -shared -Wl,-h -Wl,libgmp.so.3 -o .libs/libgmp.so.3.3.0 \
          .libs/assert.o ... -lc

Do you have LD_LIBRARY_PATH or LD_RUN_PATH or something set?

If you want to investigate you might be able to run libtool with a sh
-x to see what it thinks, on just one object file for brevity,

        sh -x ./libtool --mode=link gcc -o libgmp.la -rpath /usr/local/lib
          -version-info 6:1:3 assert.lo



reply via email to

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