Error with --enable-snmp
Paul Gildea <[email protected]> Thu, 23 Aug 2018 12:37:30 +0100
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <CAP3D3geVqfL5_z0WV1p1Tw4+ayNR3X9=+RUuv3m2v8KFsLHu+w@mail.gmail.com> |
--===============5882953294854208171== Content-Type: multipart/alternative; boundary="00000000000031443c057418afa9" --00000000000031443c057418afa9 Content-Type: text/plain; charset="UTF-8" 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)) --00000000000031443c057418afa9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">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?<div><br></div><div><br></div><div><br></div><div><font= color=3D"#000000" face=3D"monospace, monospace"><span style=3D"font-size:1= 2.8px">checking whether C compiler supports flag "-DNETSNMP_ENABLE_IPV= 6 -g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Wformat-= security -DNETSNMP_USE_INLINE -Ulinux -Dlinux=3Dlinux -D_REENTRANT -D_GNU_S= OURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/in= clude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/lib/perl/5.14/COR= E -D_FORTIFY_SOURCE=3D2 -I/usr/include -DNETSNMP_NO_INLINE -L/usr/lib -lnet= snmpagent -lnetsnmphelpers -lnetsnmpmibs -lnetsnmp -Wl,-Bsymbolic-functions= -Wl,-z,relro" from Net-SNMP... no</span></font><table cellpadding=3D"= 0" class=3D"gmail-ajC"></table><font color=3D"#000000" face=3D"monospace, m= onospace"><span style=3D"font-size:12.8px">configure: error: *** incorrect = CFLAGS from net-snmp-config</span></font><table cellpadding=3D"0" class=3D"= gmail-ajC"></table><font color=3D"#000000" face=3D"monospace, monospace"><s= pan style=3D"font-size:12.8px">make: *** [/media/vmpart/vrrp/buildroot/outp= ut/build/keepalived-2.0.5/.stamp_configured] Error 1</span></font></div><di= v><font color=3D"#000000" face=3D"monospace, monospace"><span style=3D"font= -size:12.8px"><br></span></font></div><div><font color=3D"#000000" face=3D"= monospace, monospace"><span style=3D"font-size:12.8px"><br></span></font></= div><div><font color=3D"#000000" face=3D"monospace, monospace"><span style= =3D"font-size:12.8px"><br></span></font></div><div><font color=3D"#000000" = face=3D"arial, helvetica, sans-serif"><span style=3D"font-size:12.8px">Is i= t looking for all=C2=A0of those options and libraries, or is there some min= imum CLFAGS options I can add? I have nothing like those in the netsnmp mak= e file. I'm currently experimenting but getting the same error.</span><= /font></div><div><font color=3D"#000000"><span style=3D"font-size:12.8px"><= font face=3D"monospace, monospace"><br></font></span></font></div><div><fon= t color=3D"#000000"><span style=3D"font-size:12.8px"><font face=3D"monospac= e, monospace"><br></font></span></font></div><div><font color=3D"#000000"><= span style=3D"font-size:12.8px"><font face=3D"monospace, monospace"><br></f= ont></span></font></div><div><font color=3D"#000000"><font face=3D"monospac= e, monospace"><div><span style=3D"font-size:12.8px">#######################= ######################################</span></div><div><span style=3D"font= -size:12.8px">#</span></div><div><span style=3D"font-size:12.8px"># netsnmp= </span></div><div><span style=3D"font-size:12.8px">#</span></div><div><span= style=3D"font-size:12.8px">###############################################= ##############</span></div><div><span style=3D"font-size:12.8px"><br></span= ></div><div><span style=3D"font-size:12.8px">NETSNMP_VERSION =3D 5.6.2</spa= n></div><div><span style=3D"font-size:12.8px">NETSNMP_SITE =3D http://$(BR2= _SOURCEFORGE_MIRROR).<a href=3D"http://dl.sourceforge.net/sourceforge/net-s= nmp">dl.sourceforge.net/sourceforge/net-snmp</a></span></div><div><span sty= le=3D"font-size:12.8px">NETSNMP_SOURCE =3D net-snmp-$(NETSNMP_VERSION).tar.= gz</span></div><div><span style=3D"font-size:12.8px">NETSNMP_INSTALL_STAGIN= G =3D YES</span></div><div><span style=3D"font-size:12.8px">NETSNMP_CONF_EN= V =3D ac_cv_NETSNMP_CAN_USE_SYSCTL=3Dyes</span></div><div><span style=3D"fo= nt-size:12.8px">NETSNMP_CONF_OPT =3D --with-persistent-directory=3D/var/lib= /snmp --disable-static \</span></div><div><span style=3D"font-size:12.8px">= <span style=3D"white-space:pre"> </span>--with-defaults --enable-mini-agen= t --without-rpm \</span></div><div><span style=3D"font-size:12.8px"><span s= tyle=3D"white-space:pre"> </span>--with-logfile=3Dnone --without-kmem-usag= e $(DISABLE_IPV6) \</span></div><div><span style=3D"font-size:12.8px"><span= style=3D"white-space:pre"> </span>--enable-as-needed --disable-debugging = --without-perl-modules \</span></div><div><span style=3D"font-size:12.8px">= <span style=3D"white-space:pre"> </span>--disable-embedded-perl --disable-= perl-cc-checks \</span></div><div><span style=3D"font-size:12.8px"><span st= yle=3D"white-space:pre"> </span>--disable-scripts --with-default-snmp-vers= ion=3D"1" \</span></div><div><span style=3D"font-size:12.8px"><sp= an style=3D"white-space:pre"> </span>--enable-silent-libtool --enable-mfd-= rewrites \</span></div><div><span style=3D"font-size:12.8px"><span style=3D= "white-space:pre"> </span>--with-sys-contact=3D"root@localhost" = \</span></div><div><span style=3D"font-size:12.8px"><span style=3D"white-sp= ace:pre"> </span>--with-sys-location=3D"Unknown" \</span></div><= div><span style=3D"font-size:12.8px"><span style=3D"white-space:pre"> </sp= an>--with-mib-modules=3D"default_modules agent_mibs notification targe= t utilities disman/event disman/schedule agentx util_funcs mibII/system_mib= snmpv3mibs ucd_snmp smux"</span></div><div><span style=3D"font-size:1= 2.8px">#--with-out-mib-modules=3D"default_modules mibII agent_mibs not= ification target utilities disman/event disman/schedule host" \</span>= </div><div><span style=3D"font-size:12.8px"><span style=3D"white-space:pre"= > </span>--with-mib-modules=3D"agentx util_funcs mibII/system_mib snm= pv3mibs ucd_snmp"</span></div><div><span style=3D"font-size:12.8px">#u= til_funcs/Exit util_funcs/restart</span></div><div><span style=3D"font-size= :12.8px">#<span style=3D"white-space:pre"> </span>--with-mib-modules=3D&qu= ot;host ucd-snmp/dlmod disman/event disman/schedule utilities agentx smux&q= uot;=C2=A0</span></div><div><span style=3D"font-size:12.8px">NETSNMP_BLOAT_= MIBS =3D BRIDGE EtherLike RFC-1215 RFC1155-SMI RFC1213 SCTP SMUX</span></di= v><div><span style=3D"font-size:12.8px"><br></span></div><div><span style= =3D"font-size:12.8px">ifeq ($(BR2_ENDIAN),"BIG")</span></div><div= ><span style=3D"font-size:12.8px"><span style=3D"white-space:pre"> </span>N= ETSNMP_CONF_OPT +=3D --with-endianness=3Dbig</span></div><div><span style= =3D"font-size:12.8px">else</span></div><div><span style=3D"font-size:12.8px= "><span style=3D"white-space:pre"> </span>NETSNMP_CONF_OPT +=3D --with-endi= anness=3Dlittle</span></div><div><span style=3D"font-size:12.8px">endif</sp= an></div><div><span style=3D"font-size:12.8px"><br></span></div><div><span = style=3D"font-size:12.8px"># OpenSSL</span></div><div><span style=3D"font-s= ize:12.8px">ifeq ($(BR2_PACKAGE_OPENSSL),y)</span></div><div><span style=3D= "font-size:12.8px"><span style=3D"white-space:pre"> </span>NETSNMP_DEPENDEN= CIES +=3D openssl</span></div><div><span style=3D"font-size:12.8px"><span s= tyle=3D"white-space:pre"> </span>NETSNMP_CONF_OPT +=3D \</span></div><div><= span style=3D"font-size:12.8px"><span style=3D"white-space:pre"> </span>--= with-openssl=3D$(STAGING_DIR)/usr/include/openssl</span></div><div><span st= yle=3D"font-size:12.8px">else</span></div><div><span style=3D"font-size:12.= 8px"><span style=3D"white-space:pre"> </span>NETSNMP_CONF_OPT +=3D --withou= t-openssl</span></div><div><span style=3D"font-size:12.8px">endif</span></d= iv><div><span style=3D"font-size:12.8px"><br></span></div><div><span style= =3D"font-size:12.8px"># Docs</span></div><div><span style=3D"font-size:12.8= px">ifneq ($(BR2_HAVE_DOCUMENTATION),y)</span></div><div><span style=3D"fon= t-size:12.8px"><span style=3D"white-space:pre"> </span>NETSNMP_CONF_OPT += =3D --disable-manuals</span></div><div><span style=3D"font-size:12.8px">end= if</span></div><div><span style=3D"font-size:12.8px"><br></span></div><div>= <span style=3D"font-size:12.8px"># Remove IPv6 MIBs if there's no IPv6<= /span></div><div><span style=3D"font-size:12.8px">ifneq ($(BR2_INET_IPV6),y= )</span></div><div><span style=3D"font-size:12.8px">define NETSNMP_REMOVE_M= IBS_IPV6</span></div><div><span style=3D"font-size:12.8px"><span style=3D"w= hite-space:pre"> </span>rm -f $(TARGET_DIR)/usr/share/snmp/mibs/IPV6*</span= ></div><div><span style=3D"font-size:12.8px">endef</span></div><div><span s= tyle=3D"font-size:12.8px">endif</span></div><div><span style=3D"font-size:1= 2.8px"><br></span></div><div><span style=3D"font-size:12.8px">define NETSNM= P_INSTALL_TARGET_CMDS</span></div><div><span style=3D"font-size:12.8px"><sp= an style=3D"white-space:pre"> </span>$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \<= /span></div><div><span style=3D"font-size:12.8px"><span style=3D"white-spac= e:pre"> </span>DESTDIR=3D$(TARGET_DIR) install</span></div><div><span styl= e=3D"font-size:12.8px"><span style=3D"white-space:pre"> </span>$(INSTALL) -= D -m 0755 package/netsnmp/S59snmpd \</span></div><div><span style=3D"font-s= ize:12.8px"><span style=3D"white-space:pre"> </span>$(TARGET_DIR)/etc/init= .d/S59snmpd</span></div><div><span style=3D"font-size:12.8px"><span style= =3D"white-space:pre"> </span>for mib in $(NETSNMP_BLOAT_MIBS); do \</span><= /div><div><span style=3D"font-size:12.8px"><span style=3D"white-space:pre">= </span>rm -f $(TARGET_DIR)/usr/share/snmp/mibs/$$mib-MIB.txt; \</span></d= iv><div><span style=3D"font-size:12.8px"><span style=3D"white-space:pre"> <= /span>done</span></div><div><span style=3D"font-size:12.8px"><span style=3D= "white-space:pre"> </span>$(NETSNMP_REMOVE_MIBS_IPV6)</span></div><div><spa= n style=3D"font-size:12.8px">endef</span></div><div><span style=3D"font-siz= e:12.8px"><br></span></div><div><span style=3D"font-size:12.8px">define NET= SNMP_UNINSTALL_TARGET_CMDS</span></div><div><span style=3D"font-size:12.8px= "><span style=3D"white-space:pre"> </span>$(TARGET_MAKE_ENV) $(MAKE) -C $(@= D) \</span></div><div><span style=3D"font-size:12.8px"><span style=3D"white= -space:pre"> </span>DESTDIR=3D$(TARGET_DIR) uninstall</span></div><div><sp= an style=3D"font-size:12.8px"><span style=3D"white-space:pre"> </span>rm -f= $(TARGET_DIR)/etc/init.d/S59snmpd</span></div><div><span style=3D"font-siz= e:12.8px"><span style=3D"white-space:pre"> </span>rm -f $(TARGET_DIR)/usr/l= ib/libnetsnmp*</span></div><div><span style=3D"font-size:12.8px">endef</spa= n></div><div><span style=3D"font-size:12.8px"><br></span></div><div><span s= tyle=3D"font-size:12.8px">define NETSNMP_STAGING_NETSNMP_CONFIG_FIXUP</span= ></div><div><span style=3D"font-size:12.8px"><span style=3D"white-space:pre= "> </span>$(SED) "s,^prefix=3D.*,prefix=3D\'$(STAGING_DIR)/usr\= 9;,g" \</span></div><div><span style=3D"font-size:12.8px"><span style= =3D"white-space:pre"> </span>-e "s,^exec_prefix=3D.*,exec_prefix=3D\&= #39;$(STAGING_DIR)/usr\',g" \</span></div><div><span style=3D"font= -size:12.8px"><span style=3D"white-space:pre"> </span>-e "s,^included= ir=3D.*,includedir=3D\'$(STAGING_DIR)/usr/include\',g" \</span= ></div><div><span style=3D"font-size:12.8px"><span style=3D"white-space:pre= "> </span>-e "s,^libdir=3D.*,libdir=3D\'$(STAGING_DIR)/usr/lib\&#= 39;,g" \</span></div><div><span style=3D"font-size:12.8px"><span style= =3D"white-space:pre"> </span>$(STAGING_DIR)/usr/bin/net-snmp-config</span>= </div><div><span style=3D"font-size:12.8px">endef</span></div><div><span st= yle=3D"font-size:12.8px"><br></span></div><div><span style=3D"font-size:12.= 8px">NETSNMP_POST_INSTALL_STAGING_HOOKS +=3D NETSNMP_STAGING_NETSNMP_CONFIG= _FIXUP</span></div><div><span style=3D"font-size:12.8px"><br></span></div><= div><span style=3D"font-size:12.8px">$(eval $(call AUTOTARGETS,package,nets= nmp))</span></div></font></font><table cellpadding=3D"0" class=3D"gmail-ajC= "></table></div></div> --00000000000031443c057418afa9-- --===============5882953294854208171== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============5882953294854208171== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel --===============5882953294854208171==--