I am unable to compile the latest version of 1.5.4 with net-snmp. This is the error I get:
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -I/usr/include/mysql -g -pipe -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I/usr/include/rpm -I/usr/include/rpm -I. -I/usr/include/net-snmp -I/usr/include -MT checks_snmp.o -MD -MP -MF ".deps/checks_snmp.Tpo" -c -o checks_snmp.o checks_snmp.c; \
then mv -f ".deps/checks_snmp.Tpo" ".deps/checks_snmp.Po"; else rm -f ".deps/checks_snmp.Tpo"; exit 1; fi
checks_snmp.c: In function `snmp_get_index':
checks_snmp.c:213: error: structure has no member named `localname'
checks_snmp.c: In function `get_snmp':
checks_snmp.c:556: error: structure has no member named `localname'
make[3]: *** [checks_snmp.o] Error 1
make[3]: Leaving directory `/logs/files/zabbix/zabbix-1.5.4/src/zabbix_server/poller'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/logs/files/zabbix/zabbix-1.5.4/src/zabbix_proxy'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/logs/files/zabbix/zabbix-1.5.4/src'
make: *** [install-recursive] Error 1
I compiled with:
./configure --enable-server --enable-agent --with-mysql --prefix=/opt/zabbix --enable-proxy --with-net-snmp --with-ldap --with-libcurl
if I remove --with-net-snmp it compiles and makes with no issues.
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -I/usr/include/mysql -g -pipe -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I/usr/include/rpm -I/usr/include/rpm -I. -I/usr/include/net-snmp -I/usr/include -MT checks_snmp.o -MD -MP -MF ".deps/checks_snmp.Tpo" -c -o checks_snmp.o checks_snmp.c; \
then mv -f ".deps/checks_snmp.Tpo" ".deps/checks_snmp.Po"; else rm -f ".deps/checks_snmp.Tpo"; exit 1; fi
checks_snmp.c: In function `snmp_get_index':
checks_snmp.c:213: error: structure has no member named `localname'
checks_snmp.c: In function `get_snmp':
checks_snmp.c:556: error: structure has no member named `localname'
make[3]: *** [checks_snmp.o] Error 1
make[3]: Leaving directory `/logs/files/zabbix/zabbix-1.5.4/src/zabbix_server/poller'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/logs/files/zabbix/zabbix-1.5.4/src/zabbix_proxy'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/logs/files/zabbix/zabbix-1.5.4/src'
make: *** [install-recursive] Error 1
I compiled with:
./configure --enable-server --enable-agent --with-mysql --prefix=/opt/zabbix --enable-proxy --with-net-snmp --with-ldap --with-libcurl
if I remove --with-net-snmp it compiles and makes with no issues.
Comment