compilation error on SuSE 9.2

Help
pinky_ro
2005-08-05
2013-05-28
  • pinky_ro
    pinky_ro
    2005-08-05

    /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[2]: *** [docsis] Error 1
    make[2]: Leaving directory `/tmp/docsis-0.9.4/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/docsis-0.9.4'
    make: *** [all] Error 2

     
    • pinky_ro
      pinky_ro
      2005-08-05

      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?

       
    • Evvolve SRL
      Evvolve SRL
      2005-08-08

      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.