problem with libraries while compiling lsof

From: Michele Perucic (michele@ece.mcgill.ca)
Date: Mon May 22 2006 - 14:51:13 EDT


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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:55 EDT