On 16 Dec 2004 14:49:34 -0000 Debaprasad wrote: DC> ld: (Warning) Unsatisfied Symbol "if_nametoindex" in file DC> /tmp/net-snmp-5.1.1/lib/libsnmp.sl DC> DC> I found the answer in another post - DC> DC> The answer is as follows - DC> DC> <QUOTE> DC> On Thu, 23 Sep 2004 21:39:41 +0530 Prakash wrote: DC> P> ld: (Warning) Unsatisfied symbol "if_nametoindex" DC> DC> Hmmm... this code is protected by and ifdef which would have to be set by DC> configure. Did you run configure on one machine, and move the code to DC> another? Or build on one machine, and run the code on another? DC> DC> At any rate, if you comment out the define for HAVE_IF_NAMETOINDEX in DC> include/net-snmp/net-snmp-config.h, and 'make clean install', this should DC> go away. DC> DC> </QUOTE> DC> DC> But I couldn't find HAVE_IF_NAMETOINDEX macro in DC> include/net-snmp/net-snmp-config.h.
Well, for some reason that variable is declared in the source file! Here is a patch to get rid of it: Index: snmplib/snmpUDPIPv6Domain.c =================================================================== RCS file: /cvsroot/net-snmp/net-snmp/snmplib/snmpUDPIPv6Domain.c,v retrieving revision 5.28 diff -u -r5.28 snmpUDPIPv6Domain.c --- snmplib/snmpUDPIPv6Domain.c 15 Oct 2004 18:52:29 -0000 5.28 +++ snmplib/snmpUDPIPv6Domain.c 22 Dec 2004 20:24:58 -0000 @@ -37,7 +37,6 @@ #include <sys/socket.h> #endif -#define HAVE_IF_NAMETOINDEX #if defined(HAVE_WINSOCK_H) || defined(cygwin) /* * Windows IPv6 support is part of WinSock2 only -- Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users