Compiling a MIB : configure: error: socket(2) not found.
jack n <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All, I had installed net-snmp-5.6.2 on Windows and am using Cygwin to add a new MIB module and compile it. I had added the new MIB file MY-MIB.txt to /usr/share/snmp/mibs and then loaded the MIB by running $ MIBS=MY-MIB;export MIBS Then using mib2c tool , I had generated both .C and .h file Then I placed both the .h and .c files under agent/mibgroup/ directory Next, to configure the package to find them and compile them into the agent, I tried running $ ./configure--with-mib-modules="myMib" It displayed a lot of messages and then exited with a message : checking if directories need to be created... . checking default mib files to read... ;IP-MIB;IF-MIB;TCP-MIB;UDP-MIB;HOST-RESOUR CES-MIB;SNMPv2-MIB;RFC1213-MIB;NOTIFICATION-LOG-MIB;DISMAN-EVENT-MIB;DISMAN-SCHE DULE-MIB;UCD-SNMP-MIB;UCD-DEMO-MIB;SNMP-TARGET-MIB;NET-SNMP-AGENT-MIB;SNMP-MPD-M IB;SNMP-USER-BASED-SM-MIB;SNMP-FRAMEWORK-MIB;SNMP-VIEW-BASED-ACM-MIB;SNMP-COMMUN ITY-MIB;NET-SNMP-PASS-MIB;NET-SNMP-EXTEND-MIB;UCD-DLMOD-MIB;SNMP-NOTIFICATION-MI B;SNMPv2-TM;NET-SNMP-VACM-MIB checking whether we have to build PIC code... yes checking for nlist in -lelf... no *checking for library containing socket... no configure: error: socket(2) not found.* I checked the *config.log* and could find these : ** *configure:27233: gcc -o conftest.exe -g -O2 -Ucygwin -Dcygwin=cygwin conftest.c -lsocket >&5 C:\Net-SNMP_v_6_2\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lsocket collect2: ld returned 1 exit status configure:27240: $? = 1* ** *Please let me know how to proceed on these .* *Thanks in advance.* ** *Regards,* *Jack.* ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users