SUMMARY: problem with libraries while compiling lsof

From: Michele Perucic <michele_at_ece.mcgill.ca>
Date: Mon May 29 2006 - 14:31:18 EDT
Thanks to all thoses who replied.
SPECIAL thanks to Luc Suryo!
The solution was not very hard but it was very hard to find!

=> I was missing the following symbolic links:
lrwxrwxrwx   1 root     other         11 May 29 12:05 /usr/lib/sparcv9/libelf.so -> libelf.so.1
lrwxrwxrwx   1 root     other         11 May 29 12:05 /usr/lib/sparcv9/libkvm.so -> libkvm.so.1
lrwxrwxrwx   1 root     other         11 May 29 12:05 /usr/lib/sparcv9/libnsl.so -> libnsl.so.1
lrwxrwxrwx   1 root     other         14 May 29 12:05 /usr/lib/sparcv9/libsocket.so -> libsocket.so.1

Thanks again and have a great day!
Michele


On Mon, 22 May 2006, Michele Perucic wrote:

> Hi,
>
> I have been struggling with this problem for a few days now but I cannot
> figure it out, maybe some of you can can give me some insight.
>
> I am trying to install lsof on Solaris 7. I got the source (not the
> package; I prefer not to install the package) form Sun Freeware.
> I did a configure with the right argument (solaris) and then when I run
> make I get the following error:
>
> ld: fatal: library -lkvm: not found
> ld: fatal: library -lelf: not found
> ld: fatal: library -lsocket: not found
> ld: fatal: library -lnsl: not found
> ld: fatal: File processing errors. No output written to lsof
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `lsof'
>
> I have checked and I do have the following libraries installed:
> -rwxr-xr-x   1 bin      bin        21864 Mar  4  2005 /usr/lib/64/libkvm.so.1
> -rwxr-xr-x   1 bin      bin       176760 Sep 15  2003 /usr/lib/64/libelf.so.1
> -rwxr-xr-x   1 bin      bin        72288 Sep  1  1998 /usr/lib/64/libsocket.so.1
> -rwxr-xr-x   1 bin      bin      1009384 Jun  4  2003 /usr/lib/64/libnsl.so.1
>
> I have also made sure that the following environment variables are
> pointing to the right place:
>
> LD_LIBRARY_PATH=/usr/lib/64
> GCC=/usr/local/bin/gcc -m64
> (do I need other environment variables to be set to a specific value?)
>
> I am now using the 64-bit version because it was complaining at first that
> I was using the 32-bit version of the libraries (Error: wrong ELF class:
> ELFCLASS32).
>
> Any ideas are welcome.
>
> Thanks!
> Michele
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon May 29 14:31:52 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:58 EST