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

Re: [hobbit] hobbit-snmpcollect problem



TCP Wrappers is installed and the library is there, it's in /lib:

hobbit (at) dhobbit:/lib> ll libw*
lrwxrwxrwx 1 root root 16 2008-09-24 13:29 libwrap.so.0 -> libwrap.so.0.7.6
-rwxr-xr-x 1 root root 29464 2006-06-16 08:07 libwrap.so.0.7.6

--
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467
rich.smrcina at vmassist.com
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009


Henrik Stoerner wrote:
In <48E4CD30.4020704 (at) wi.rr.com> Rich Smrcina <rsmrcina (at) wi.rr.com> writes:

I'm having a problem building when I hit this point:

gcc -o hobbit_snmpcollect hobbit_snmpcollect.o `net-snmp-config --libs` ../lib/libhobbit.a -L/usr/lib -lz -L/usr/lib -lssl -lcrypto /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lwrap
collect2: ld returned 1 exit status
make[1]: *** [hobbit_snmpcollect] Error 1
make[1]: Leaving directory `/home/hobbit/trunk/bbnet'
make: *** [bbnet-build] Error 2

net-snmp-config --libs returns:

-L/usr/lib -lnetsnmp -lcrypto -lm -L/usr/lib -lwrap

Which doesn't seem to be available in the linker on SLES10 SP1.


This is an Net-SNMP on SLES10 packaging problem. The 'net-snmp-config'
command must provide the necessary options to link applications
against the Net-SNMP libs; if it says it needs libwrap, then that
library must be installed as a prerequisite to the Net-SNMP development
package.

I think libwrap is a TCP-Wrappers library. Check if your SLES10
cd includes a "libwrap" package.


Henrik


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk