libtool: link: x86_64-pc-linux-gnu-gcc -DNP_VERSION=\"2.2.1\" -O2 -pipe -march=native -Wall -Wl,-O1 -Wl,--as-needed -o check_uptime check_uptime.o -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lrt -lpthread -ldl x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/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/.. -DNP_VERSION='"2.2.1"' -I/usr/include/mysql -I/usr/include/mysql/.. -O2 -pipe -march=native -Wall -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]: *** [Makefile:1859: check_mysql-check_mysql.o] Error 1 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 13.0-desktop-gnome_20171021-104702 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.4.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby22 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.5.1 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpv net-analyzer/nagios-plugins [ebuild N ] net-analyzer/nagios-plugins-2.2.1-r1 USE="ipv6 ldap mysql ssl -libressl -nagios-dns -nagios-game -nagios-ping -postgres -radius -samba (-selinux) -snmp -ssh"
Created attachment 499708 [details] emerge-info.txt
Created attachment 499710 [details] emerge-history.txt
Created attachment 499712 [details] environment
Created attachment 499714 [details] etc.portage.tbz2
Created attachment 499716 [details] logs.tbz2
Created attachment 499718 [details] net-analyzer:nagios-plugins-2.2.1-r1:20171022-211120.log
Created attachment 499720 [details] temp.tbz2
This is essentially a duplicate of bug 633548. The upstream issue is in $url, but both nagios-plugins and monitoring-plugins will (in all likelihood) be fixed at the same time. Thanks for the report though! *** This bug has been marked as a duplicate of bug 633548 ***
I have tbe same error.
(In reply to Juergen Rose from comment #9) > I have tbe same error. We may wind up patching MYSQL_PORT to 3306 temporarily, but this is an upstream bug that affects two packages, so there's some benefit to having everyone on the same page before we go patching stuff. We are on top of the issue, though: if our upstreams take too long, we'll fix it ourselves.
I submitted a pull request for nagios-plugins, https://github.com/nagios-plugins/nagios-plugins/pull/338
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d288e5098552ca42a508f998eed6f2e5229e87 commit 20d288e5098552ca42a508f998eed6f2e5229e87 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2017-10-27 12:37:56 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2017-10-27 12:37:56 +0000 net-analyzer/nagios-plugins: new revision to fix build failure with MariaDB. The latest -r2 adds a patch (which I've sent upstream) to fix a build failure against newer versions of MariaDB. Bug: https://bugs.gentoo.org/633548 Bug: https://bugs.gentoo.org/635106 Package-Manager: Portage-2.3.8, Repoman-2.3.3 .../files/define-own-mysql-port-constant.patch | 100 +++++++++++++++++++++ ....1-r1.ebuild => nagios-plugins-2.2.1-r2.ebuild} | 2 + 2 files changed, 102 insertions(+)}