[Bug 223387] net-mgmt/nagios-plugins fails with databases/mariadb102-client
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 2 22:18:55 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223387
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 at FreeBSD.org
Reporter: fbsd98816551 at avksrv.org
CC: brnrd at freebsd.org, mat at FreeBSD.org
CC: brnrd at freebsd.org, mat at 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+=MYSQL
and use MariaDB 10.2Ж
DEFAULT_VERSIONS+=mysql=102m
in <poudriere's>-make.conf
in this case build fail:
[00:10:14] ====>> [01][00:00:38] Finished build of net-mgmt/nagios-plugins:
Failed: build
...skip....
/bin/sh ../libtool --tag=CC --mode=link cc -DNP_VERSION='""' -O2 -pipe
-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=\"\" -O2 -pipe -fstack-protector
-fno-strict-aliasing -Wl,-rpath -Wl,/usr/local/lib -fstack-protector -o urlize
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=\"/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='""' -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 = 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-plugins-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-plugins-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-plugins-2.2.1'
It will compile w/o errors with MariaDB 10.1 and fail with 10.2.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list