Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635106 - net-analyzer/nagios-plugins-2.2.1-r1 : check_mysql.c:61:24: error: MYSQL_PORT undeclared here (not in a function)
Summary: net-analyzer/nagios-plugins-2.2.1-r1 : check_mysql.c:61:24: error: MYSQL_PORT...
Status: RESOLVED DUPLICATE of bug 633548
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL: https://github.com/nagios-plugins/nag...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-10-22 21:15 UTC by Toralf Förster
Modified: 2017-10-27 12:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.71 KB, text/plain)
2017-10-22 21:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,88.37 KB, text/plain)
2017-10-22 21:15 UTC, Toralf Förster
Details
environment (environment,28.67 KB, text/plain)
2017-10-22 21:15 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.97 KB, application/x-bzip)
2017-10-22 21:15 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,38.46 KB, application/x-bzip)
2017-10-22 21:15 UTC, Toralf Förster
Details
net-analyzer:nagios-plugins-2.2.1-r1:20171022-211120.log (net-analyzer:nagios-plugins-2.2.1-r1:20171022-211120.log,145.45 KB, text/plain)
2017-10-22 21:15 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.99 KB, application/x-bzip)
2017-10-22 21:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-10-22 21:15:18 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2017-10-22 21:15:21 UTC
Created attachment 499708 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-10-22 21:15:24 UTC
Created attachment 499710 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-10-22 21:15:27 UTC
Created attachment 499712 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-10-22 21:15:30 UTC
Created attachment 499714 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-10-22 21:15:33 UTC
Created attachment 499716 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-10-22 21:15:36 UTC
Created attachment 499718 [details]
net-analyzer:nagios-plugins-2.2.1-r1:20171022-211120.log
Comment 7 Toralf Förster gentoo-dev 2017-10-22 21:15:39 UTC
Created attachment 499720 [details]
temp.tbz2
Comment 8 Michael Orlitzky gentoo-dev 2017-10-22 21:24:18 UTC
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 ***
Comment 9 Juergen Rose 2017-10-23 13:14:00 UTC
I have tbe same error.
Comment 10 Michael Orlitzky gentoo-dev 2017-10-23 16:41:16 UTC
(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.
Comment 11 Michael Orlitzky gentoo-dev 2017-10-27 11:53:11 UTC
I submitted a pull request for nagios-plugins,

  https://github.com/nagios-plugins/nagios-plugins/pull/338
Comment 12 Larry the Git Cow gentoo-dev 2017-10-27 12:45:48 UTC
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(+)}