5.4.13 -> 5.5.2
Posted: Tue Aug 07, 2018 11:58 am
I am getting a build error when I upgrade:
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"2.2.1"' -g -O2 -L. -o check_ide_smart check_ide_smart.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"2.2.1\" -g -O2 -o check_ide_smart check_ide_smart.o -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include -DNP_VERSION='"2.2.1"' -g -O2 -MT check_uptime.o -MD -MP -MF .deps/check_uptime.Tpo -c -o check_uptime.o check_uptime.c
mv -f .deps/check_uptime.Tpo .deps/check_uptime.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"2.2.1"' -g -O2 -L. -o check_uptime check_uptime.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lrt -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"2.2.1\" -g -O2 -o check_uptime check_uptime.o -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lrt -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include -I/usr/include/mysql -I/usr/include/mysql/mysql -DNP_VERSION='"2.2.1"' -I/usr/include/mysql -I/usr/include/mysql/mysql -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF .deps/check_mysql-check_mysql.Tpo -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c
check_mysql.c:61:24: error: ‘MYSQL_PORT’ undeclared here (not in a function)
unsigned int db_port = MYSQL_PORT;
^
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.2.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.2.1'
make: *** [all] Error 2
We are using the latest Redhat 7 Enterprise.
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"2.2.1"' -g -O2 -L. -o check_ide_smart check_ide_smart.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"2.2.1\" -g -O2 -o check_ide_smart check_ide_smart.o -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include -DNP_VERSION='"2.2.1"' -g -O2 -MT check_uptime.o -MD -MP -MF .deps/check_uptime.Tpo -c -o check_uptime.o check_uptime.c
mv -f .deps/check_uptime.Tpo .deps/check_uptime.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"2.2.1"' -g -O2 -L. -o check_uptime check_uptime.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lrt -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"2.2.1\" -g -O2 -o check_uptime check_uptime.o -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lrt -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include -I/usr/include/mysql -I/usr/include/mysql/mysql -DNP_VERSION='"2.2.1"' -I/usr/include/mysql -I/usr/include/mysql/mysql -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF .deps/check_mysql-check_mysql.Tpo -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c
check_mysql.c:61:24: error: ‘MYSQL_PORT’ undeclared here (not in a function)
unsigned int db_port = MYSQL_PORT;
^
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.2.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.2.1'
make: *** [all] Error 2
We are using the latest Redhat 7 Enterprise.