Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lwrap
collect2: ld returned 1 exit status
make: *** [docsis] Error 1
make: Leaving directory `/tmp/docsis-0.9.4/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/tmp/docsis-0.9.4'
make: *** [all] Error 2
I tried to compile the program without success. Finally, I change from make file the following line:
old: NETSNMP_LIBS = -L/usr/lib -lnetsnmp -lcrypto -lrpm -lrpmio -lpopt -lbz2 -lz -lm -ldl -L/usr/lib lwrap
new: NETSNMP_LIBS = -L/usr/lib -lnetsnmp -lcrypto -lrpm -lrpmio -lpopt -lbz2 -lz -lm -ldl
and the program works. I do not know if this way is good or I will have new problems. What is your opinion about my solution?
I'm running SuSE 9.2 and I have not had this issue. It looks like you've compiled net-snmp yourself with libwrap (tcpwrappers) support but you don't actually have tcpwrappers installed (or at least ld can't find the librwrap library).
It should work without librwrap though since docsis doesn't actually do any SNMP requests, it only uses the ASN.1 encoding/decoding code from net-snmp.