[Keepalived-devel] Error with --enable-snmp
Status: Beta
Brought to you by:
acassen
|
From: Paul G. <gi...@tc...> - 2018-08-23 11:37:39
|
I already have net-snmp built on my system. So I tried the --enable-snmp option with keepalived and got the following error, anybody else had this issue? checking whether C compiler supports flag "-DNETSNMP_ENABLE_IPV6 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.14/CORE -D_FORTIFY_SOURCE=2 -I/usr/include -DNETSNMP_NO_INLINE -L/usr/lib -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs -lnetsnmp -Wl,-Bsymbolic-functions -Wl,-z,relro" from Net-SNMP... noconfigure: error: *** incorrect CFLAGS from net-snmp-configmake: *** [/media/vmpart/vrrp/buildroot/output/build/keepalived-2.0.5/.stamp_configured] Error 1 Is it looking for all of those options and libraries, or is there some minimum CLFAGS options I can add? I have nothing like those in the netsnmp make file. I'm currently experimenting but getting the same error. ############################################################# # # netsnmp # ############################################################# NETSNMP_VERSION = 5.6.2 NETSNMP_SITE = http://$(BR2_SOURCEFORGE_MIRROR). dl.sourceforge.net/sourceforge/net-snmp NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz NETSNMP_INSTALL_STAGING = YES NETSNMP_CONF_ENV = ac_cv_NETSNMP_CAN_USE_SYSCTL=yes NETSNMP_CONF_OPT = --with-persistent-directory=/var/lib/snmp --disable-static \ --with-defaults --enable-mini-agent --without-rpm \ --with-logfile=none --without-kmem-usage $(DISABLE_IPV6) \ --enable-as-needed --disable-debugging --without-perl-modules \ --disable-embedded-perl --disable-perl-cc-checks \ --disable-scripts --with-default-snmp-version="1" \ --enable-silent-libtool --enable-mfd-rewrites \ --with-sys-contact="root@localhost" \ --with-sys-location="Unknown" \ --with-mib-modules="default_modules agent_mibs notification target utilities disman/event disman/schedule agentx util_funcs mibII/system_mib snmpv3mibs ucd_snmp smux" #--with-out-mib-modules="default_modules mibII agent_mibs notification target utilities disman/event disman/schedule host" \ --with-mib-modules="agentx util_funcs mibII/system_mib snmpv3mibs ucd_snmp" #util_funcs/Exit util_funcs/restart # --with-mib-modules="host ucd-snmp/dlmod disman/event disman/schedule utilities agentx smux" NETSNMP_BLOAT_MIBS = BRIDGE EtherLike RFC-1215 RFC1155-SMI RFC1213 SCTP SMUX ifeq ($(BR2_ENDIAN),"BIG") NETSNMP_CONF_OPT += --with-endianness=big else NETSNMP_CONF_OPT += --with-endianness=little endif # OpenSSL ifeq ($(BR2_PACKAGE_OPENSSL),y) NETSNMP_DEPENDENCIES += openssl NETSNMP_CONF_OPT += \ --with-openssl=$(STAGING_DIR)/usr/include/openssl else NETSNMP_CONF_OPT += --without-openssl endif # Docs ifneq ($(BR2_HAVE_DOCUMENTATION),y) NETSNMP_CONF_OPT += --disable-manuals endif # Remove IPv6 MIBs if there's no IPv6 ifneq ($(BR2_INET_IPV6),y) define NETSNMP_REMOVE_MIBS_IPV6 rm -f $(TARGET_DIR)/usr/share/snmp/mibs/IPV6* endef endif define NETSNMP_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ DESTDIR=$(TARGET_DIR) install $(INSTALL) -D -m 0755 package/netsnmp/S59snmpd \ $(TARGET_DIR)/etc/init.d/S59snmpd for mib in $(NETSNMP_BLOAT_MIBS); do \ rm -f $(TARGET_DIR)/usr/share/snmp/mibs/$$mib-MIB.txt; \ done $(NETSNMP_REMOVE_MIBS_IPV6) endef define NETSNMP_UNINSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ DESTDIR=$(TARGET_DIR) uninstall rm -f $(TARGET_DIR)/etc/init.d/S59snmpd rm -f $(TARGET_DIR)/usr/lib/libnetsnmp* endef define NETSNMP_STAGING_NETSNMP_CONFIG_FIXUP $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \ -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \ -e "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" \ -e "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \ $(STAGING_DIR)/usr/bin/net-snmp-config endef NETSNMP_POST_INSTALL_STAGING_HOOKS += NETSNMP_STAGING_NETSNMP_CONFIG_FIXUP $(eval $(call AUTOTARGETS,package,netsnmp)) |