Given that I am running RedHat 5 and Ubuntu 10.04 I am a bit surprised
to see (keep seing) this message.

It seems that this is caused by defining HAVE_LIBRPM depending on it
being required by swinst_rpm, and compiling swinst_rpm being dependent
on librpm being available. Circular dependancy.

I have tried to untangle this in the attached patch. Works for me!
but it would be nice if others could verify its general applicability

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming
Index: configure.d/config_os_functions
===================================================================
--- configure.d/config_os_functions     (revision 19243)
+++ configure.d/config_os_functions     (working copy)
@@ -85,7 +85,7 @@
 #       rpmGetPath check needs clean LIBS environment   (Linux)
 #
 if test "x$with_rpm" != "xno" && \
-        echo " $module_list " | $GREP " host/hr_swinst " > /dev/null; then
+        echo " $module_list " | $EGREP " 
host/(hr_swinst|data_access/swinst_rpm) " > /dev/null; then
     OLDLIBS=$LIBS
     LIBS=$LMIBLIBS
     AC_CHECK_FUNCS(rpmGetPath)
Index: configure.d/config_os_headers
===================================================================
--- configure.d/config_os_headers       (revision 19243)
+++ configure.d/config_os_headers       (working copy)
@@ -89,8 +89,7 @@
                  [openssl/evp.h  security/cryptoki.h])
 
 # RPM subdirectory path                   (Agent)
-if test "x$with_rpm" != "xno" && \
-        echo " $module_list " | $GREP " host/hr_swinst " > /dev/null; then
+if test "x$with_rpm" != "xno"; then
   AC_CHECK_HEADERS(rpm/rpmdb.h   rpm/rpmfileutil.h)
 fi
 
Index: agent/mibgroup/host/data_access/swinst.h
===================================================================
--- agent/mibgroup/host/data_access/swinst.h    (revision 19243)
+++ agent/mibgroup/host/data_access/swinst.h    (working copy)
@@ -22,7 +22,7 @@
  */
 #if   defined( darwin )
     config_require(host/data_access/swinst_darwin)
-#elif defined( HAVE_LIBRPM ) && defined( linux )
+#elif defined( HAVE_RPM_RPMDB_H ) && defined( linux )
     config_require(host/data_access/swinst_rpm)
 #elif defined( HAVE_PKGLOCS_H ) || defined( hpux9 ) || defined( hpux10 ) || 
defined( hpux11 ) || defined( freebsd2 )
     config_require(host/data_access/swinst_pkginfo)
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to