On Thu, 04 Mar 2010 09:54:47 -0500 Jeff wrote: JJ> On Mar 4, 2010, at 9:16 AM, Jan Safranek wrote: JJ> > in all supported branches there should be check in ./configure script, JJ> > which enables legacy RPM API when the user has newer RPM (4.6 and later). JJ> > JJ> > Today I wanted to port the new host/hrSWInstalled table to the new RPM JJ> > API in SVN trunk, but I was surprised it's already done. Thanks to Dave JJ> > Shield's reimplementation of the table, both old and new RPM API is JJ> > detected and used since 2008-07-25. JJ> > JJ> > So, no matter what version of RPM the user has, compilation should work JJ> > in all branches.
hmm.... does that include trunk? make[2]: Leaving directory `/usr/local/site/build/snmp/dtls/agent/mibgroup' /bin/sh ../libtool --silent --mode=link gcc -g -O0 -Winline -DDEBUG -DNETSNMP_USE_ASSERT -Ulinux -Dlinux=linux -I/usr/include/rpm -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -o snmpd snmpd.lo -L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers libnetsnmpagent.la helpers/libnetsnmphelpers.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la ./.libs/libnetsnmpmibs.a(swinst_rpm.o): In function `netsnmp_swinst_arch_load': /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:110: undefined reference to `rpmdbOpen' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:113: undefined reference to `rpmdbInitIterator' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:128: undefined reference to `headerLink' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:132: undefined reference to `headerGetEntry' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:133: undefined reference to `headerGetEntry' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:134: undefined reference to `headerGetEntry' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:135: undefined reference to `headerGetEntry' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:136: undefined reference to `headerGetEntry' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:148: undefined reference to `headerFree' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:114: undefined reference to `rpmdbNextIterator' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:151: undefined reference to `rpmdbFreeIterator' /home/rstory/snmp/src/dtls/agent/mibgroup/host/data_access/swinst_rpm.c:153: undefined reference to `rpmdbClose' collect2: ld returned 1 exit status $ grep -i -C 1 rpm config.log configure:29573: result: yes configure:30211: checking for rpm/rpmlib.h configure:30218: result: yes configure:30211: checking for rpm/header.h configure:30218: result: yes configure:30359: checking for rpm/rpmlib.h configure:30364: result: yes configure:30498: checking for rpm/header.h configure:30503: result: yes -- configure:31634: checking for library containing Fopen configure:31758: result: -lrpmio configure:31771: checking for library containing rpmdbOpen configure:31895: result: no configure:31907: checking for library containing rpmGetFilesystemList configure:32031: result: -lrpm configure:32051: checking whether headerGetEntry is declared -- configure:36408: checking whether static inline functions are broken (Unixware) configure:36429: gcc -c -g -O0 -Winline -DDEBUG -DNETSNMP_USE_ASSERT -Ulinux -Dlinux=linux -I/usr/include/rpm conftest.c >&5 configure:36436: $? = 0 -- ac_cv_func_regcomp=yes ac_cv_func_rpmGetPath=yes ac_cv_func_select=yes -- ac_cv_header_regex_h=yes ac_cv_header_rpm_header_h=yes ac_cv_header_rpm_rpmlib_h=yes ac_cv_header_search_h=yes -- netsnmp_cv_broken_inline=no netsnmp_cv_func_Fopen__rpmlibs=-lrpmio netsnmp_cv_func_db_create__rpmlibs=no netsnmp_cv_func_dbopen__rpmlibs=no netsnmp_cv_func_dlopen_LMIBLIBS=-ldl netsnmp_cv_func_gzread__rpmlibs=-lz netsnmp_cv_func_kstat_lookup_LNETSNMPLIBS=no -- netsnmp_cv_func_nl_connect_LMIBLIBS=no netsnmp_cv_func_poptParseArgvString__rpmlibs=-lpopt netsnmp_cv_func_rpmGetFilesystemList__rpmlibs=-lrpm netsnmp_cv_func_rpmdbOpen__rpmlibs=no netsnmp_cv_size_t_type=int -- CCPATH='/usr/lib/ccache/gcc' CFLAGS='-g -O0 -Winline -DDEBUG -DNETSNMP_USE_ASSERT -Ulinux -Dlinux=linux -I/usr/include/rpm' CONFIGURE_OPTIONS='" '\''--with-cflags=-g -O0 -Winline -DDEBUG -DNETSNMP_USE_ASSERT'\'' '\''--enable-silent-libtool'\'' '\''--with-defaults'\'' '\''--enable-mib-config-checking'\'' '\''--disable-shared'\'' '\''--cache-file=/home/rstory/snmp/build/config.cache-2.6.30.10-105.2.23.fc11.i586'\'' '\''--with-mibs=ALL'\'' '\''--with-security-modules=tsm'\'' '\''--with-transports=DTLSUDP'\'' '\''--with-mib-modules=tsm-mib,tlstm-mib,udp-mib,ucd_snmp'\''"' -- #define HAVE_LIBSSL 1 #define HAVE_RPM_RPMLIB_H 1 #define HAVE_RPM_HEADER_H 1 #define HAVE_LIBRPM 1 #define _RPM_4_4_COMPAT /**/ #define NETSNMP_USE_OPENSSL 1 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
