• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

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

Scheduled Pinned Locked Moved SNMP
2 Posts 2 Posters 2.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bjeyamurugan
    last edited by Aug 17, 2018, 1:03 PM

    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

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz Aug 17, 2018, 1:23 PM Aug 17, 2018, 1:20 PM

      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..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received