[package - 131powerpc-quarterly][net-mgmt/ndoutils] Failed for ndoutils-2.1.3 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Fri, 09 Jun 2023 03:21:08 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     bofh@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/foul1/data/131powerpc-quarterly/56083eef528f/logs/ndoutils-2.1.3.log
Build URL:      https://pkg-status.freebsd.org/foul1/build.html?mastername=131powerpc-quarterly&build=56083eef528f
Log:

=>> Building net-mgmt/ndoutils
build started at Fri Jun  9 03:19:49 UTC 2023
port directory: /usr/ports/net-mgmt/ndoutils
package name: ndoutils-2.1.3
building for: FreeBSD 131powerpc-quarterly-job-11 13.1-RELEASE FreeBSD 13.1-RELEASE powerpc
maintained by: bofh@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-23-ga7f8d188
Host OSVERSION: 1400089
Jail OSVERSION: 1301000
Job Id: 11

---Begin Environment---
SHELL=/bin/csh
UNAME_p=powerpc
UNAME_m=powerpc
OSVERSION=1301000
UNAME_v=FreeBSD 13.1-RELEASE
UNAME_r=13.1-RELEASE
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-23-ga7f8d188
MASTERMNT=/usr/local/poudriere/data/.m/131powerpc-quarterly/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/131powerpc-quarterly/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=131powerpc-quarterly
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/131powerpc-quarterly/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for ndoutils-2.1.3:
     DOCS=on: Build and/or install documentation
     NANOSLEEP=on: Use of nanosleep in event timing
====> Options available for the single NAGIOS_BACKEND: you have to select exactly one of them
     NAGIOS3X=on: For Nagios 3.X Series
     NAGIOS4X=off: For Nagios 4.X Series
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
bofh@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--sysconfdir=/usr/local/etc/ndoutils  --localstatedir=/var/run --enable-mysql  --with-mysql=/usr/local --enable-nanosleep --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl  PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work/.cache  HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-mgmt/ndoutils/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-mgmt/ndoutils/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288
--End CONFIGURE_ENV--

--MAKE_ENV--
PERL_USE_UNSAFE_INC=1 OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work/.cache  HOME=/wrkdirs/usr/ports/net-mgmt/ndoutils/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-mgmt/ndoutils/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-mgmt/ndoutils/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -I/usr/local/include -fPIC -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS="  -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -I/usr/local/include -fPIC -fstack-protector-strong -fno-strict-aliasin
 g  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PORTDOCS="" OSREL=13.1 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.32.1  PERL_VER=5.32  PERL5_MAN1=lib/perl5/site_perl/man/man1  PERL5_MAN3=lib/perl5/site_perl/man/man3  SITE_PERL=lib/perl5/site_perl  SITE_ARCH=lib/perl5/site_perl/mach/5.32 DOCSDIR="share/doc/ndoutils"  EXAMPLESDIR="share/examples/ndoutils"  DATADIR="share/ndoutils"  WWWDIR="www/ndoutils"  ETCDIR="etc/ndoutils"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/ndoutils DOCSDIR=/usr/local/share/doc/ndoutils EXAMPLESDIR=/usr/local/share/examples/ndoutils  WWWDIR=/usr/local/www/ndoutils ETCDIR=/usr/local/etc/ndoutils
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=powerpc
MACHINE_ARCH=powerpc
ARCH=${MACHINE_ARCH}
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: powerpc-unknown-freebsd13.1 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: powerpc-unknown-freebsd13.1 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--enable-new-dtags" "-m" "elf32ppc_fbsd" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_53255a77=yes
CC_OUTPUT_921dbbb2_911cfe02=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
CC_OUTPUT_921dbbb2_af59ad06=yes
CC_OUTPUT_921dbbb2_a15f3fcf=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: powerpc-unknown-freebsd13.1 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=powerpc
OPSYS=FreeBSD
_OSRELEASE=13.1-RELEASE
OSREL=13.1
OSVERSION=1301000
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  1048576
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License GPLv2 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   ndoutils-2.1.3 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.19.1_1.pkg
[131powerpc-quarterly-job-11] Installing pkg-1.19.1_1...
[131powerpc-quarterly-job-11] Extracting pkg-1.19.1_1: .......... done
===>   ndoutils-2.1.3 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of ndoutils-2.1.3
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by ndoutils-2.1.3 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by ndoutils-2.1.3 for building
=> SHA256 Checksum OK for ndoutils-2.1.3.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by ndoutils-2.1.3 for building
===>  Extracting for ndoutils-2.1.3
=> SHA256 Checksum OK for ndoutils-2.1.3.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for ndoutils-2.1.3
===>  Applying FreeBSD patches for ndoutils-2.1.3 from /usr/ports/net-mgmt/ndoutils/files
===========================================================================
=======================<phase: build-depends  >============================
===>   ndoutils-2.1.3 depends on package: perl5>=5.32.r0<5.33 - not found
===>   Installing existing package /packages/All/perl5-5.32.1_3.pkg
[131powerpc-quarterly-job-11] Installing perl5-5.32.1_3...
<snip>
checking for strtof... (cached) yes
checking for nanosleep... yes
checking for va_copy... yes
checking for snprintf... (cached) yes
checking for asprintf... (cached) yes
checking for type of socket size... size_t
checking for linker flags for loadable modules... -shared
checking for mysql_init in -lmysqlclient... no


*** MySQL library could not be located... **************************

You chose to compile NDOutils with MySQL support, but I was unable to
locate the MySQL library on your system.  If the library is
installed, use the --with-mysql=DIR argument to specify the
location of the MySQL library, We assume mysql_config is in DIR/bin
NOTE: After you install the necessary libraries on your system:
      1. Make sure /etc/ld.so.conf has an entry for the directory in
         which the MySQL libraries are installed.
      2. Run 'ldconfig' to update the run-time linker options.
      3. Run 'make devclean' in the NDBXT distribution to clean out
         any old references to your previous compile.
      4. Rerun the configure script.

TIP: Try the following....
      ./configure --with-mysql=/usr/lib/mysql

********************************************************************


checking for library containing sd_listen_fds... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config/ndo2db.cfg-sample
config.status: creating config/ndomod.cfg-sample
config.status: creating config/nagios.cfg
config.status: creating config/misccommands.cfg
config.status: creating docs/docbook/en-en/Makefile
config.status: creating include/io.h
config.status: creating include/common.h
config.status: creating startup/bsd-init
config.status: creating startup/debian-init
config.status: creating startup/default-init
config.status: creating startup/default-inetd
config.status: creating startup/default-service
config.status: creating startup/default-socket
config.status: creating startup/default-socket-svc
config.status: creating startup/default-xinetd
config.status: creating startup/mac-init.plist
config.status: creating startup/mac-inetd.plist
config.status: creating startup/newbsd-init
config.status: creating startup/openbsd-init
config.status: creating startup/openrc-conf
config.status: creating startup/openrc-init
config.status: creating startup/solaris-init.xml
config.status: creating startup/solaris-inetd.xml
config.status: creating startup/tmpfile.conf
config.status: creating startup/upstart-init
config.status: creating startup/rh-upstart-init
config.status: creating include/config.h


*** Configuration summary for ndoutils 2.1.3 2017-04-13 ***:

 General Options:
 -------------------------
 NDO2DB user:      nagios
 NDO2DB group:     nagios
 NDO2DB tcp port:  5668


Review the options above for accuracy.  If they look
okay, type 'make all' to compile the NDO utilities,
or type 'make' to get a list of make options.

===========================================================================
=======================<phase: build          >============================
===>  Building for ndoutils-2.1.3
cd ./src && /usr/bin/make
cc  -fPIC -O2 -pipe  -I/usr/local/include -fPIC -fstack-protector-strong -fno-strict-aliasing  -DHAVE_CONFIG_H -c -o io.o io.c
cc  -fPIC -O2 -pipe  -I/usr/local/include -fPIC -fstack-protector-strong -fno-strict-aliasing  -DHAVE_CONFIG_H -c -o utils.o utils.c
cc -fPIC -O2 -pipe  -I/usr/local/include -fPIC -fstack-protector-strong -fno-strict-aliasing  -DHAVE_CONFIG_H -o file2sock file2sock.c io.o utils.o -fstack-protector-strong  -lm  
cc -fPIC -O2 -pipe  -I/usr/local/include -fPIC -fstack-protector-strong -fno-strict-aliasing  -DHAVE_CONFIG_H -o log2ndo log2ndo.c io.o utils.o -fstack-protector-strong  -lm  
/usr/bin/make ndo2db-3x
cc -fPIC -O2 -pipe  -I/usr/local/include -fPIC -fstack-protector-strong -fno-strict-aliasing  -DHAVE_CONFIG_H -c -o db.o db.c
db.c:169:6: warning: implicit declaration of function 'mysql_init' is invalid in C99 [-Wimplicit-function-declaration]
        if(!mysql_init(&idi->dbinfo.mysql_conn)){
            ^
db.c:169:30: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
        if(!mysql_init(&idi->dbinfo.mysql_conn)){
                        ~~~~~~~~~~~ ^
db.c:210:7: warning: implicit declaration of function 'mysql_real_connect' is invalid in C99 [-Wimplicit-function-declaration]
        if (!mysql_real_connect(
             ^
db.c:211:17: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
                        &idi->dbinfo.mysql_conn,
                         ~~~~~~~~~~~ ^
db.c:218:4: error: use of undeclared identifier 'CLIENT_REMEMBER_OPTIONS'
                        CLIENT_REMEMBER_OPTIONS
                        ^
db.c:220:3: warning: implicit declaration of function 'mysql_close' is invalid in C99 [-Wimplicit-function-declaration]
                mysql_close(&idi->dbinfo.mysql_conn);
                ^
db.c:220:28: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
                mysql_close(&idi->dbinfo.mysql_conn);
                             ~~~~~~~~~~~ ^
db.c:221:77: warning: implicit declaration of function 'mysql_error' is invalid in C99 [-Wimplicit-function-declaration]
                syslog(LOG_USER|LOG_INFO,"Error: Could not connect to MySQL database: %s",mysql_error(&idi->dbinfo.mysql_conn));
                                                                                          ^
db.c:221:102: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
                syslog(LOG_USER|LOG_INFO,"Error: Could not connect to MySQL database: %s",mysql_error(&idi->dbinfo.mysql_conn));
                                                                                                       ~~~~~~~~~~~ ^
db.c:244:2: warning: implicit declaration of function 'mysql_close' is invalid in C99 [-Wimplicit-function-declaration]
        mysql_close(&idi->dbinfo.mysql_conn);
        ^
db.c:244:27: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
        mysql_close(&idi->dbinfo.mysql_conn);
                     ~~~~~~~~~~~ ^
db.c:268:15: error: no member named 'mysql_result' in 'struct ndo2db_dbconninfo_struct'
                idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
                ~~~~~~~~~~~ ^
db.c:268:28: warning: implicit declaration of function 'mysql_store_result' is invalid in C99 [-Wimplicit-function-declaration]
                idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
                                         ^
db.c:268:60: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
                idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
                                                             ~~~~~~~~~~~ ^
db.c:269:19: error: no member named 'mysql_row' in 'struct ndo2db_dbconninfo_struct'
                if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
                    ~~~~~~~~~~~ ^
db.c:269:29: warning: implicit declaration of function 'mysql_fetch_row' is invalid in C99 [-Wimplicit-function-declaration]
                if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
                                          ^
db.c:269:57: error: no member named 'mysql_result' in 'struct ndo2db_dbconninfo_struct'
                if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
                                                          ~~~~~~~~~~~ ^
db.c:270:54: error: no member named 'mysql_row' in 'struct ndo2db_dbconninfo_struct'
                        ndo2db_convert_string_to_unsignedlong(idi->dbinfo.mysql_row[0],&idi->dbinfo.instance_id);
                                                              ~~~~~~~~~~~ ^
db.c:273:3: warning: implicit declaration of function 'mysql_free_result' is invalid in C99 [-Wimplicit-function-declaration]
                mysql_free_result(idi->dbinfo.mysql_result);
                ^
db.c:273:33: error: no member named 'mysql_result' in 'struct ndo2db_dbconninfo_struct'
                mysql_free_result(idi->dbinfo.mysql_result);
                                  ~~~~~~~~~~~ ^
db.c:274:15: error: no member named 'mysql_result' in 'struct ndo2db_dbconninfo_struct'
                idi->dbinfo.mysql_result=NULL;
                ~~~~~~~~~~~ ^
db.c:283:28: warning: implicit declaration of function 'mysql_insert_id' is invalid in C99 [-Wimplicit-function-declaration]
                        idi->dbinfo.instance_id=mysql_insert_id(&idi->dbinfo.mysql_conn);
                                                ^
db.c:283:57: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
                        idi->dbinfo.instance_id=mysql_insert_id(&idi->dbinfo.mysql_conn);
                                                                 ~~~~~~~~~~~ ^
db.c:303:27: warning: implicit declaration of function 'mysql_insert_id' is invalid in C99 [-Wimplicit-function-declaration]
                idi->dbinfo.conninfo_id=mysql_insert_id(&idi->dbinfo.mysql_conn);
                                        ^
db.c:303:56: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
                idi->dbinfo.conninfo_id=mysql_insert_id(&idi->dbinfo.mysql_conn);
                                                         ~~~~~~~~~~~ ^
db.c:477:6: warning: implicit declaration of function 'mysql_query' is invalid in C99 [-Wimplicit-function-declaration]
        if (mysql_query(&idi->dbinfo.mysql_conn,buf)) {
            ^
db.c:477:31: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
        if (mysql_query(&idi->dbinfo.mysql_conn,buf)) {
                         ~~~~~~~~~~~ ^
db.c:479:51: warning: implicit declaration of function 'mysql_error' is invalid in C99 [-Wimplicit-function-declaration]
                syslog(LOG_USER|LOG_INFO,"mysql_error: '%s'\n", mysql_error(&idi->dbinfo.mysql_conn));
                                                                ^
db.c:479:76: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
                syslog(LOG_USER|LOG_INFO,"mysql_error: '%s'\n", mysql_error(&idi->dbinfo.mysql_conn));
                                                                             ~~~~~~~~~~~ ^
db.c:512:9: warning: implicit declaration of function 'mysql_errno' is invalid in C99 [-Wimplicit-function-declaration]
        result=mysql_errno(&idi->dbinfo.mysql_conn);
               ^
db.c:512:34: error: no member named 'mysql_conn' in 'struct ndo2db_dbconninfo_struct'
        result=mysql_errno(&idi->dbinfo.mysql_conn);
                            ~~~~~~~~~~~ ^
db.c:513:13: error: use of undeclared identifier 'CR_SERVER_LOST'
        if(result==CR_SERVER_LOST || result==CR_SERVER_GONE_ERROR){
                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
13 warnings and 20 errors generated.
*** Error code 1

Stop.
make[3]: stopped in /wrkdirs/usr/ports/net-mgmt/ndoutils/work/ndoutils-2.1.3/src
*** Error code 1

Stop.
make[2]: stopped in /wrkdirs/usr/ports/net-mgmt/ndoutils/work/ndoutils-2.1.3/src
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/net-mgmt/ndoutils/work/ndoutils-2.1.3
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/ndoutils