LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ld: warning (https://www.linuxquestions.org/questions/linux-software-2/ld-warning-122018/)

drand 12-02-2003 02:22 PM

ld: warning
 
when i make some application i get next error:
/usr/bin/ld: warning: libSM.so.6, needed by /usr/X11R6/lib/libXt.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libICE.so.6, needed by /usr/X11R6/lib/libXt.so, not found (try using -rpath or -rpath-link)
but
/usr/X11R6/lib/libICE.so.6.3
/usr/X11R6/lib/libICE.so.6
exists.

grep '/usr/X11R6/lib' /etc/ld.so.conf |wc -l
1
ldconfig -p|grep -E 'libSM.so.6|libICE.so.6'
libSM.so.6 (libc6) => /usr/X11R6/lib/libSM.so.6
libICE.so.6 (libc6) => /usr/X11R6/lib/libICE.so.6

in conclusion i try:
/usr/bin/ld /usr/X11R6/lib/libICE.so.6
/usr/bin/ld: warning: cannot find entry symbol _start; not setting start address
and
/usr/bin/ld /usr/X11R6/lib/libSM.so.6
/usr/bin/ld: warning: libICE.so.6, needed by /usr/X11R6/lib/libSM.so.6, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: cannot find entry symbol _start; not setting start address
/usr/X11R6/lib/libSM.so.6: undefined reference to `IceSetShutdownNegotiation'
.....
undefined reference - looks like some kind of big problem here, no?.

10x for your answers

Tinkster 12-02-2003 02:31 PM

I'd say it does look like some sort of a
problem, indeed. My first idea would be
to re-install those two libraries from the
original install-media since the current
ones seem to be broken (no idea how
that might have happened).



Cheers,
Tink

hxcan 05-25-2010 04:03 AM

I installed a new version of binutils and got a similar problem . Anyone who know the reason ?


All times are GMT -5. The time now is 06:32 AM.