Hi, I had configured net-snmp-5.1.2 as below: ./configure --with-cc=g++ --with-cflags=''-g -DNETSNMP_NO_INLINE'
Pls find below the linker errors: helpers/.libs/libnetsnmphelpers.so: undefined reference to `netsnmp_init_bulk_to_next_helper(void)' helpers/.libs/libnetsnmphelpers.so: undefined reference to `netsnmp_init_stash_cache_helper(void)' helpers/.libs/libnetsnmphelpers.so: undefined reference to `netsnmp_init_table_dataset(void)' helpers/.libs/libnetsnmphelpers.so: undefined reference to `netsnmp_init_serialize(void)' helpers/.libs/libnetsnmphelpers.so: undefined reference to `netsnmp_init_read_only_helper(void)' helpers/.libs/libnetsnmphelpers.so: undefined reference to `netsnmp_init_debug_helper(void)' ../snmplib/.libs/libnetsnmp.so: undefined reference to `netsnmp_container_null_init' collect2: ld returned 1 exit status make[1]: *** [snmpd] Error 1 Regards, Madhavi -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MADHAVI RAVANAN (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS) Sent: Wednesday, September 29, 2004 9:56 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Compiling net SNMP with the g++ compiler Hi, Yes, even I had faced such compiler errors , I had fixed them by doing explicit casting. After all compiler errors were fixed, during linking I was getting undefined reference errors. The net-snmp version is 5.1.2. Will send you the linker error log soon, Regards, Madhavi -----Original Message----- From: Robert Story (Users) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 12:37 AM To: Dave Shield Cc: MADHAVI RAVANAN (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS); [EMAIL PROTECTED] Subject: Re: Compiling net SNMP with the g++ compiler On Tue, 28 Sep 2004 10:56:39 +0100 Dave wrote: DS> > I'm compiling NetSNMP using g++ compiler instead of gcc. When I do DS> > this , i get a number of undefined reference linker errors on the DS> > base netSNMP code itself , even without any of the new code. DS> DS> Which version are you working with? DS> What are the linker errors that you are seeing? He's doing better than me! I get a bunch of 'invalid conversion' compile errors, almost immediately. I have a feeling that recent g++ compilers are defaulting to stricter interpretation of the standards. -- 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 SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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