The reason there isn't anything in the Makefile, is that it's commented out in the file that creates the file that Makefile is created from (see my -1th posting). If you uncomment it (remove the dnl>), and then create the files, starting with ./autogen.sh -1, configure now tests for the snmp files and - if found - adds them to the Makefile and puts HAVE_SNMP in config.h.
Specifically, in configure.in dnl> OPTIONAL UCD-SNMP dnl> AC_HAVE_HEADERS(ucd-snmp/ucd-snmp-agent-includes.h) dnl> dnl> check for `UCD-SNMP' library by University of California [http://ucd-snmp.ucdavis.edu] dnl> dnl>AC_CHECK_LIB(ucdagent, register_mib, [AC_DEFINE(HAVE_SNMP) SNMPLIBS="-lsnmp -lucdagent -lucdmibs"], , -lsnmp -lucdagent -lucdmibs $LIBS $MORELIBS) Remove the dnl> from the AC_ lines... Please test this for us... Yes, putting it in CFLAGS should work, but you've could have problems if you don't have all the headers installed. That's why you want the tests in ./configure to be run... Thanks! -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of PIERRE-LOIC BAUDET Sent: Tuesday, February 26, 2002 5:24 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re : [Ntop-dev] rmonPlugin / NET-SNMP > Checking in Makefile and configure to see what conditions cause HAVE_SNMP... There is nothing about HAVE_SNMP cause in my Makefile. Anyway, what about Raul Alonso thought ? I didn't notice his following idea : He suggested to check if HAVE_SNMP directive is active. If not, add it to CFLAGS. So, the point is : "How to make HAVE_SNMP active and how to deal with CFLAGS ?" Currently, my Makefile has the following line : CFLAGS = -g -02 -pipe So, nothing about HAVE_SNMP... Do I have to turn this line to : CFLAGS = -g -02 -pipe -HAVE_SNMP or something else ? If yes, would a simple "make" be successful to make the plugin work ? If not, how to clear properly the ntop plugin installation before doing "make" ? > (Also, pls add an faq entry at http://snapshot.ntop.org when you finally get it working, detailing the steps) Oh yeah, I'd be happy to send clear explanations to prevent people from having troubles, but I still need some help, sorry ! > (I'd suggest that instead of disabling > icmpPlugin, you simply uncomment the rmon lines in the files, but that's minor) That would be nicer indeed, but I had the same problem as Diana, so..... Pierre-Loic -------------- Profitez de l'offre sp�ciale Tiscali Liberty Surf ! 50% de temps en plus pendant 3 mois sur tous les forfaits Internet. http://register.libertysurf.fr/subscribe_fr/signup.php3 _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop-dev _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop-dev
