[Error] : Net-SNMP 5.8 : configure: error: socket(2) not found.



  • Hi All,

    I am are trying to upgrade “Net-SNMP” for one of our application from 5.4 to 5.8. While executing the configure script, i have end of with the following error.

    checking default mib files to read... :SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB
    checking whether we have to build PIC code... no
    checking for nlist in -lelf... no
    checking for library containing socket... no
    configure: error: socket(2) not found.
    gmake[5]: *** [configure] Error 1
    gmake[4]: *** [debug] Error 2

    For the application specific customization, we are using “--with-ldflags” option with the value like "-L/export/local/../solaris/Debug/lib/ -lnsl -lrt" which was working fine earlier with Net-SNMP version 5.4.

    In the current version (5.8), we are end up with this issue when we are using the same option and value [--with-ldflags ] and without this option [--with-ldflags ] the configure script execution part is successful. However, later point it leads our application specific compilation error.

    I have tried, by adding the "-lsocket" and "-lelf" path to the existing value “-L/lib/sparcv9/ -L /usr/lib/sparcv9/”. However, its not resolved the issue.

    I blgot struck herecked here. Can someone help me to resolve this issue?

    Regards,
    Jeya Murugan B


  • Rebel Alliance Global Moderator

    What does this have to do with pfsense?

    "-L/export/local/../solaris/Debug/lib/ -lnsl -lrt"

    You should not be updating anything on pfsense directly. current net-snmp package is net-snmp-5.7.3_17..

    If you need help compiling snmp on your solaris box - you should be on their forums..