Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Nov 2017 22:18:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223387] net-mgmt/nagios-plugins fails with databases/mariadb102-client
Message-ID:  <bug-223387-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223387

            Bug ID: 223387
           Summary: net-mgmt/nagios-plugins fails with
                    databases/mariadb102-client
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: fbsd98816551@avksrv.org
                CC: brnrd@freebsd.org, mat@FreeBSD.org
                CC: brnrd@freebsd.org, mat@FreeBSD.org

Hello!

FreeBSD 11.1, latest ports
use poudriere for building ports
we have enabled MySQL checkings:
<poudriere port config dir>/net-mgmt_nagios-plugins/options
OPTIONS_FILE_SET+=3DMYSQL

and use MariaDB 10.2=D0=96
DEFAULT_VERSIONS+=3Dmysql=3D102m
in <poudriere's>-make.conf

in this case build fail:

[00:10:14] =3D=3D=3D=3D>> [01][00:00:38] Finished build of net-mgmt/nagios-=
plugins:
Failed: build

...skip....
/bin/sh ../libtool --tag=3DCC   --mode=3Dlink cc -DNP_VERSION=3D'""' -O2 -p=
ipe=20
-fstack-protector -fno-strict-aliasing  -Wl,-rpath,/usr/local/lib
-fstack-protector -L. -L/usr/local/lib -o urlize urlize.o libnpcommon.a
../lib/libnagiosplug.a ../gl/libgnu.a -L/usr/local/lib -lintl -R/usr/local/=
lib
-lpthread -L/usr/local/lib
libtool: link: cc -DNP_VERSION=3D\"\" -O2 -pipe -fstack-protector
-fno-strict-aliasing -Wl,-rpath -Wl,/usr/local/lib -fstack-protector -o url=
ize
urlize.o  -L. -L/usr/local/lib libnpcommon.a ../lib/libnagiosplug.a
../gl/libgnu.a -lintl -lpthread -Wl,-rpath -Wl,/usr/local/lib
cc -DLOCALEDIR=3D\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I..  -I..
-I../lib -I../gl -I../intl -I/usr/local/include -I/usr/local/include/mysql
-I/usr/local/include/mysql/.. -I/usr/local/include -D_THREAD_SAFE
-I/usr/local/include -DNP_VERSION=3D'""' -I/usr/local/include/mysql
-I/usr/local/include/mysql/..  -O2 -pipe  -fstack-protector
-fno-strict-aliasing -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: use of undeclared identifier 'MYSQL_PORT'
unsigned int db_port =3D MYSQL_PORT;
                       ^
check_mysql.c:508:28: error: use of undeclared identifier 'MYSQL_PORT'
        xasprintf (&myport, "%d", MYSQL_PORT);
                                  ^
2 errors generated.
gmake[4]: *** [Makefile:1855: check_mysql-check_mysql.o] Error 1
gmake[4]: Leaving directory
'/usr/local/ports/work/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugin=
s-2.2.1/plugins'
gmake[3]: *** [Makefile:1431: all-recursive] Error 1
gmake[3]: Leaving directory
'/usr/local/ports/work/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugin=
s-2.2.1'
gmake[2]: *** [Makefile:1352: all] Error 2
gmake[2]: Leaving directory
'/usr/local/ports/work/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugin=
s-2.2.1'


It will compile w/o errors with MariaDB 10.1 and fail with 10.2.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223387-13>