On Thu, 28 Oct 2004 10:13:02 -0400 [EMAIL PROTECTED] wrote: CRC> I edited snmp_open() to start: CRC> CRC> struct session_list *slp; CRC> snmp_log(LOG_INFO, CRC> "%d:session->community=%s\n", CRC> __LINE__, session->community); CRC> CRC> and find that session->community is NULL *on* *entry* to snmp_open().
This smells of library conflicts to me. Make sure you don't have a mix of snmp libraries installed in /usr/lib/*snmp* and/or /usr/local/lib/*snmp*. Also, try building with static libraries (configure --enable-static --disable-shared). CRC> Then I noticed that I'm passing snmp_open() a struct snmp_session* but CRC> it's defined as: CRC> CRC> netsnmp_session * CRC> snmp_open(netsnmp_session *session) CRC> { They are equivalent. -- Robert Story; NET-SNMP Junkie <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. ------------------------------------------------------- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/ _______________________________________________ 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