zabbix32-server and frontend fails to build on poudriere

Johan Hendriks joh.hendriks at gmail.com
Mon Aug 21 20:00:02 UTC 2017



Op 21/08/2017 om 04:45 schreef Danilo G. Baio:
> On Mon, Aug 21, 2017 at 12:12:19AM +0200, Johan Hendriks wrote:
>> Hello all,
>>
>> It seems zabbix32-server and zabbix32-frontend fails to build with
>> poudriere.
>>
>> This is the log from poudriere.
>>
>> zabbix32-frontend
>>
>> ======================<phase: check-sanity   >============================
>> Unknown extension mysql for PHP 70.
>> *** Error code 1
> That's because mysql extension does not exist in PHP 7.0+
> This should fix zabbix32-frontend:
> https://people.freebsd.org/~dbaio/svn-patch-zabbix3-frontend-mysql.patch
>
>> And this I get from zabbix32-server
>>
>> configure: error: Not found mysqlclient library
>> ===>  Script "configure" failed unexpectedly.
>> Please report the problem to pg at pakhom.spb.ru [maintainer] and attach the
>> "/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work/zabbix-3.2.7/config.log"
>> including the output of the failure of your make command. Also, it might be
>> a good idea to provide an overview of all packages installed on your system
>> (e.g. a /usr/local/sbin/pkg-static info -g -Ea).
>> *** Error code 1
> I wasn't able to reproduce this, could you send your list of port options and
> the full build log?
>
> Regards.
If I apply your patch, it will not build zabbix32_frontend with the
following message
Ignored: cannot be installed: doesn't work with lang/php70 port (doesn't
support PHP 7.0)



I do not know a easy way to get all the options from the poudriere jail.
If you need more I will get it for you

Here are my ports options for zabbix32-server.

# This file is auto-generated by 'make config'.
# Options for zabbix32-server-3.2.7
_OPTIONS_READ=zabbix32-server-3.2.7
_FILE_COMPLETE_OPTIONS_LIST=CURL FPING IPMI IPV6 JABBER JAVAGW LDAP
LIBXML2 NMAP SSH MYSQL PGSQL SQLITE ORACLE IODBC UNIXODBC OPENSSL GNUTLS
POLARSSL
OPTIONS_FILE_SET+=CURL
OPTIONS_FILE_SET+=FPING
OPTIONS_FILE_UNSET+=IPMI
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=JABBER
OPTIONS_FILE_UNSET+=JAVAGW
OPTIONS_FILE_SET+=LDAP
OPTIONS_FILE_SET+=LIBXML2
OPTIONS_FILE_UNSET+=NMAP
OPTIONS_FILE_SET+=SSH
OPTIONS_FILE_SET+=MYSQL
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SQLITE
OPTIONS_FILE_UNSET+=ORACLE
OPTIONS_FILE_UNSET+=IODBC
OPTIONS_FILE_SET+=UNIXODBC
OPTIONS_FILE_SET+=OPENSSL
OPTIONS_FILE_UNSET+=GNUTLS
OPTIONS_FILE_UNSET+=POLARSSL

For php-extensions

# This file is auto-generated by 'make config'.
# Options for php70-extensions-1.1
_OPTIONS_READ=php70-extensions-1.1
_FILE_COMPLETE_OPTIONS_LIST=BCMATH BZ2 CALENDAR CTYPE CURL DBA DOM
ENCHANT EXIF FILEINFO FILTER FTP GD GETTEXT GMP HASH ICONV IMAP
INTERBASE INTL JSON LDAP MBSTRING MCRYPT MYSQLI ODBC OPCACHE OPENSS
L PCNTL PDF PDO PDO_DBLIB PDO_FIREBIRD PDO_MYSQL PDO_ODBC PDO_PGSQL
PDO_SQLITE PGSQL PHAR POSIX PSPELL READLINE RECODE SESSION SHMOP
SIMPLEXML SNMP SOAP SOCKETS SQLITE3 SYBASE_CT SYSVMSG SYSVSEM SYS
VSHM TIDY TOKENIZER WDDX XML XMLREADER XMLRPC XMLWRITER XSL ZIP ZLIB
OPTIONS_FILE_SET+=BCMATH
OPTIONS_FILE_SET+=BZ2
OPTIONS_FILE_UNSET+=CALENDAR
OPTIONS_FILE_SET+=CTYPE
OPTIONS_FILE_SET+=CURL
OPTIONS_FILE_UNSET+=DBA
OPTIONS_FILE_SET+=DOM
OPTIONS_FILE_UNSET+=ENCHANT
OPTIONS_FILE_SET+=EXIF
OPTIONS_FILE_SET+=FILEINFO
OPTIONS_FILE_SET+=FILTER
OPTIONS_FILE_SET+=FTP
OPTIONS_FILE_SET+=GD
OPTIONS_FILE_SET+=GETTEXT
OPTIONS_FILE_UNSET+=GMP
OPTIONS_FILE_SET+=HASH
OPTIONS_FILE_SET+=ICONV
OPTIONS_FILE_SET+=IMAP
OPTIONS_FILE_UNSET+=INTERBASE
OPTIONS_FILE_UNSET+=INTL
OPTIONS_FILE_SET+=JSON
OPTIONS_FILE_SET+=LDAP
OPTIONS_FILE_SET+=MBSTRING
OPTIONS_FILE_SET+=MCRYPT
OPTIONS_FILE_SET+=MYSQLI
OPTIONS_FILE_UNSET+=ODBC
OPTIONS_FILE_SET+=OPCACHE
OPTIONS_FILE_UNSET+=OPENSSL
OPTIONS_FILE_SET+=PCNTL
OPTIONS_FILE_SET+=PDF
OPTIONS_FILE_SET+=PDO
OPTIONS_FILE_UNSET+=PDO_DBLIB
OPTIONS_FILE_UNSET+=PDO_FIREBIRD
OPTIONS_FILE_SET+=PDO_MYSQL
OPTIONS_FILE_UNSET+=PDO_ODBC
OPTIONS_FILE_SET+=PDO_PGSQL
OPTIONS_FILE_SET+=PDO_SQLITE
OPTIONS_FILE_SET+=PGSQL
OPTIONS_FILE_SET+=PHAR
OPTIONS_FILE_SET+=POSIX
OPTIONS_FILE_UNSET+=PSPELL
OPTIONS_FILE_SET+=READLINE
OPTIONS_FILE_UNSET+=RECODE
OPTIONS_FILE_SET+=SESSION
OPTIONS_FILE_UNSET+=SHMOP
OPTIONS_FILE_SET+=SIMPLEXML
OPTIONS_FILE_SET+=SNMP
OPTIONS_FILE_SET+=SOAP
OPTIONS_FILE_UNSET+=SOCKETS
OPTIONS_FILE_SET+=SQLITE3
OPTIONS_FILE_UNSET+=SYBASE_CT
OPTIONS_FILE_UNSET+=SYSVMSG
OPTIONS_FILE_UNSET+=SYSVSEM
OPTIONS_FILE_SET+=SYSVSHM
OPTIONS_FILE_UNSET+=TIDY
OPTIONS_FILE_SET+=TOKENIZER
OPTIONS_FILE_UNSET+=WDDX
OPTIONS_FILE_SET+=XML
OPTIONS_FILE_SET+=XMLREADER
OPTIONS_FILE_UNSET+=XMLRPC
OPTIONS_FILE_SET+=XMLWRITER
OPTIONS_FILE_UNSET+=XSL
OPTIONS_FILE_SET+=ZIP
OPTIONS_FILE_SET+=ZLIB

And the full buildlog from the poudriere webgui.

====>> Building net-mgmt/zabbix32-server
build started at Mon Aug 21 04:45:17 CEST 2017
port directory: /usr/ports/net-mgmt/zabbix32-server
building for: FreeBSD pkg.netaffairs.nl 11.1-RELEASE FreeBSD 11.1-RELEASE amd64
maintained by: pg at pakhom.spb.ru
Makefile ident:      $FreeBSD: head/net-mgmt/zabbix32-server/Makefile 448072 2017-08-16 23:38:57Z dbaio $
Poudriere version: 3.1.19
Host OSVERSION: 1101001
Jail OSVERSION: 1101001
Job Id: 01

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1101001
UNAME_v=FreeBSD 11.1-RELEASE
UNAME_r=11.1-RELEASE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=
MASTERMNT=/usr/local/poudriere/data/.m/11_1_amd64_base-HEAD/ref
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=zabbix32-server-3.2.7
OLDPWD=/
PWD=/usr/local/poudriere/data/.m/11_1_amd64_base-HEAD/ref/.p/pool
MASTERNAME=11_1_amd64_base-HEAD
SCRIPTPREFIX=/usr/local/share/poudriere
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.19
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for zabbix32-server-3.2.7:
     CURL=on: Support for web monitoring
     FPING=on: Build/install fping for ping checks
     IPMI=off: Support for IPMI checks
     IPV6=on: IPv6 protocol support
     JABBER=off: Support for Jabber media type
     JAVAGW=off: Support for Java gateway
     LDAP=on: Support for LDAP server checks
     LIBXML2=on: Support for libxml2 (required by monitoring VMware)
     NMAP=off: Build/install nmap for o/s detection
     SSH=on: Support for SSH-based checks
====> Options available for the single DB: you have to select exactly one of them
     MYSQL=on: MySQL database support
     PGSQL=off: PostgreSQL database support
     SQLITE=off: SQLite database support
     ORACLE=off: Oracle database support
====> Support for database checks via ODBC: you have to select exactly one of them
     IODBC=off: ODBC backend via iODBC
     UNIXODBC=on: ODBC backend via unixODBC
====> SSL protocol support: you have to select exactly one of them
     OPENSSL=on: SSL/TLS support via OpenSSL
     GNUTLS=off: SSL/TLS support via GnuTLS
     POLARSSL=off: SSL/TLS support via PolarSSL
===> Use 'make config' to modify these settings
---End OPTIONS List---

--CONFIGURE_ARGS--
--enable-server  --sysconfdir=/usr/local/etc/zabbix32  --datadir=/usr/local/etc/zabbix32  --with-iconv=/usr --with-net-snmp --with-libcurl --without-openipmi --enable-ipv6 --without-jabber --disable-java --with-ldap --with-libxml2 --with-ssh2 --with-mysql --without-postgresql --without-sqlite3 --without-oracle --without-iodbc --with-unixodbc --with-openssl --without-gnutls --without-mbedtls --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work  HOME=/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144
--End CONFIGURE_ENV--

--MAKE_ENV--
OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work  HOME=/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe  -DLIBICONV_PLUG -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing"  CPP="cpp" CPPFLAGS="-I/usr/local/include -DLIBICONV_PLUG"  LDFLAGS=" -Wl,-rpath,/usr/local/lib -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -DLIBICONV_PLUG -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing  -DLIBICONV_PLUG"  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--
PROXY="@comment
"
SERVER=""
ZABBIX_BUILD=server
PORTVERSION=3.2.7
CURL=""
NO_CURL="@comment
"
FPING=""
NO_FPING="@comment
"
IPMI="@comment
"
NO_IPMI=""
IPV6=""
NO_IPV6="@comment
"
JABBER="@comment
"
NO_JABBER=""
JAVAGW="@comment
"
NO_JAVAGW=""
LDAP=""
NO_LDAP="@comment
"
LIBXML2=""
NO_LIBXML2="@comment
"
NMAP="@comment
"
NO_NMAP=""
SSH=""
NO_SSH="@comment
"
MYSQL=""
NO_MYSQL="@comment
"
PGSQL="@comment
"
NO_PGSQL=""
SQLITE="@comment
"
NO_SQLITE=""
ORACLE="@comment
"
NO_ORACLE=""
IODBC="@comment
"
NO_IODBC=""
UNIXODBC=""
NO_UNIXODBC="@comment
"
OPENSSL=""
NO_OPENSSL="@comment
"
GNUTLS="@comment
"
NO_GNUTLS=""
POLARSSL="@comment
"
NO_POLARSSL=""
OSREL=11.1
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS="@comment
"
PORTEXAMPLES="@comment
"
LIB32DIR=lib
DOCSDIR="share/doc/zabbix32"
EXAMPLESDIR="share/examples/zabbix32"
DATADIR="share/zabbix32"
WWWDIR="www/zabbix32"
ETCDIR="etc/zabbix32"
--End PLIST_SUB--

--SUB_LIST--
ZABBIX_BUILD=server
ZABBIX_REQUIRE=
CURL=""
NO_CURL="@comment
"
FPING=""
NO_FPING="@comment
"
IPMI="@comment
"
NO_IPMI=""
IPV6=""
NO_IPV6="@comment
"
JABBER="@comment
"
NO_JABBER=""
JAVAGW="@comment
"
NO_JAVAGW=""
LDAP=""
NO_LDAP="@comment
"
LIBXML2=""
NO_LIBXML2="@comment
"
NMAP="@comment
"
NO_NMAP=""
SSH=""
NO_SSH="@comment
"
MYSQL=""
NO_MYSQL="@comment
"
PGSQL="@comment
"
NO_PGSQL=""
SQLITE="@comment
"
NO_SQLITE=""
ORACLE="@comment
"
NO_ORACLE=""
IODBC="@comment
"
NO_IODBC=""
UNIXODBC=""
NO_UNIXODBC="@comment
"
OPENSSL=""
NO_OPENSSL="@comment
"
GNUTLS="@comment
"
NO_GNUTLS=""
POLARSSL="@comment
"
NO_POLARSSL=""
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/zabbix32
DOCSDIR=/usr/local/share/doc/zabbix32
EXAMPLESDIR=/usr/local/share/examples/zabbix32
WWWDIR=/usr/local/www/zabbix32
ETCDIR=/usr/local/etc/zabbix32
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
#### /usr/local/etc/poudriere.d/11_1_amd64_base-make.conf ####
#CPUTYPE?=core2
# or p4, athlon-xp, p3, presscot use nocona for amd64 and prescott for i386 , or
# use core2 and freebsd will use nocona or prescoot depending the arch
## Performance
# Intel Ivy Bridge CPU
#CPUTYPE?= core-avx-i
# Intel Haswell CPU
#CPUTYPE?= core-avx2
# General

BATCH_DELETE_OLD_FILES= yes
WANT_OPENLDAP_SASL=yes
DEFAULT_VERSIONS+=   pgsql=9.6 php=7.0 mysql=10.2m ssl=openssl apache=2.4

WITH_OPENSSL_PORT=yes
OPTIONS_SET+=GSSAPI_NONE KRB_NONE OPTIMIZED_CFLAGS CPUFLAGS SASL
OPTIONS_UNSET+=GSSAPI_BASE KRB_BASE KERBEROS DOCS DEBUG NLS X11 EXAMPLES

BUILD_OPTIMIZED = YES
BUILD_STATIC = YES

DISABLE_VULNERABILITIES=yes
#### /usr/ports/Mk/Scripts/ports_env.sh ####
ARCH=amd64
CONFIGURE_MAX_CMD_LEN=262144
HAVE_COMPAT_IA32_KERN=YES
OPSYS=FreeBSD
OSREL=11.1
OSVERSION=1101001
PYTHONBASE=/usr/local
UID=0
_JAVA_OS_LIST_REGEXP=native|linux
_JAVA_VENDOR_LIST_REGEXP=openjdk|oracle|sun
_JAVA_VERSION_LIST_REGEXP=1.6|1.7|1.8|1.6\+|1.7\+|1.8\+
_OSRELEASE=11.1-RELEASE
_SMP_CPUS=4
#### Misc Poudriere ####
GID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  12128
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    >============================
===>   zabbix32-server-3.2.7 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.10.1.txz
[pkg.netaffairs.nl] Installing pkg-1.10.1...
[pkg.netaffairs.nl] Extracting pkg-1.10.1: .......... done
===>   zabbix32-server-3.2.7 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of zabbix32-server-3.2.7
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by zabbix32-server-3.2.7 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by zabbix32-server-3.2.7 for building
=> SHA256 Checksum OK for zabbix-3.2.7.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by zabbix32-server-3.2.7 for building
===>  Extracting for zabbix32-server-3.2.7
=> SHA256 Checksum OK for zabbix-3.2.7.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for zabbix32-server-3.2.7
===>  Applying FreeBSD patches for zabbix32-server-3.2.7
===========================================================================
=======================<phase: build-depends  >============================
===>   zabbix32-server-3.2.7 depends on package: pkgconf>=1.3.0_1 - not found
===>   Installing existing package /packages/All/pkgconf-1.3.7,1.txz
[pkg.netaffairs.nl] Installing pkgconf-1.3.7,1...
[pkg.netaffairs.nl] Extracting pkgconf-1.3.7,1: .......... done
===>   zabbix32-server-3.2.7 depends on package: pkgconf>=1.3.0_1 - found
===>   Returning to build of zabbix32-server-3.2.7
===>   zabbix32-server-3.2.7 depends on file: /usr/local/lib/libcrypto.so.9 - not found
===>   Installing existing package /packages/All/openssl-1.0.2l,1.txz
[pkg.netaffairs.nl] Installing openssl-1.0.2l,1...
[pkg.netaffairs.nl] Extracting openssl-1.0.2l,1: .......... done
Message from openssl-1.0.2l,1:
Edit /usr/local/openssl/openssl.cnf to fit your needs.
===>   zabbix32-server-3.2.7 depends on file: /usr/local/lib/libcrypto.so.9 - found
===>   Returning to build of zabbix32-server-3.2.7
===========================================================================
=======================<phase: lib-depends    >============================
===>   zabbix32-server-3.2.7 depends on shared library: libnetsnmp.so - not found
===>   Installing existing package /packages/All/net-snmp-5.7.3_17.txz
[pkg.netaffairs.nl] Installing net-snmp-5.7.3_17...
[pkg.netaffairs.nl] `-- Installing perl5-5.24.2...
[pkg.netaffairs.nl] `-- Extracting perl5-5.24.2: .......... done
[pkg.netaffairs.nl] Extracting net-snmp-5.7.3_17: .......... done
Message from perl5-5.24.2:
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
Message from net-snmp-5.7.3_17:
**** This port installs snmpd, header files and libraries but does not
     start snmpd by default.
     If you want to auto-start snmpd and snmptrapd:, add the following to
     /etc/rc.conf:

	snmpd_enable="YES"
	snmpd_flags="-a"
	snmpd_conffile="/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf"
	snmptrapd_enable="YES"
	snmptrapd_flags="-a -p /var/run/snmptrapd.pid"

**** You may also specify the following make variables:

	NET_SNMP_SYS_CONTACT="zi at FreeBSD.org"
	NET_SNMP_SYS_LOCATION="USA"
	DEFAULT_SNMP_VERSION=3
	NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
	NET_SNMP_LOGFILE=/var/log/snmpd.log
	NET_SNMP_PERSISTENTDIR=/var/net-snmp

     to define default values (or to override the defaults).  To avoid being
     prompted during the configuration process, you should (minimally) define
     the first two variables. (NET_SNMP_SYS_*)

     You may also define the following to avoid all interactive configuration:

	BATCH="yes"
===>   zabbix32-server-3.2.7 depends on shared library: libnetsnmp.so - found (/usr/local/lib/libnetsnmp.so)
===>   Returning to build of zabbix32-server-3.2.7
===>   zabbix32-server-3.2.7 depends on shared library: libcurl.so - not found
===>   Installing existing package /packages/All/curl-7.55.1.txz
[pkg.netaffairs.nl] Installing curl-7.55.1...
[pkg.netaffairs.nl] `-- Installing ca_root_nss-3.32...
[pkg.netaffairs.nl] `-- Extracting ca_root_nss-3.32: ........ done
[pkg.netaffairs.nl] `-- Installing libnghttp2-1.25.0...
[pkg.netaffairs.nl] `-- Extracting libnghttp2-1.25.0: .......... done
[pkg.netaffairs.nl] Extracting curl-7.55.1: .......... done
Message from ca_root_nss-3.32:
********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem

***************************************************************************
===>   zabbix32-server-3.2.7 depends on shared library: libcurl.so - found (/usr/local/lib/libcurl.so)
===>   Returning to build of zabbix32-server-3.2.7
===>   zabbix32-server-3.2.7 depends on shared library: libxml2.so - not found
===>   Installing existing package /packages/All/libxml2-2.9.4.txz
[pkg.netaffairs.nl] Installing libxml2-2.9.4...
[pkg.netaffairs.nl] Extracting libxml2-2.9.4: .......... done
===>   zabbix32-server-3.2.7 depends on shared library: libxml2.so - found (/usr/local/lib/libxml2.so)
===>   Returning to build of zabbix32-server-3.2.7
===>   zabbix32-server-3.2.7 depends on shared library: libssh2.so - not found
===>   Installing existing package /packages/All/libssh2-1.8.0,3.txz
[pkg.netaffairs.nl] Installing libssh2-1.8.0,3...
[pkg.netaffairs.nl] Extracting libssh2-1.8.0,3: .......... done
===>   zabbix32-server-3.2.7 depends on shared library: libssh2.so - found (/usr/local/lib/libssh2.so)
===>   Returning to build of zabbix32-server-3.2.7
===>   zabbix32-server-3.2.7 depends on shared library: libodbc.so - not found
===>   Installing existing package /packages/All/unixODBC-2.3.4.txz
[pkg.netaffairs.nl] Installing unixODBC-2.3.4...
[pkg.netaffairs.nl] Extracting unixODBC-2.3.4: .......... done
Message from unixODBC-2.3.4:
===>   NOTICE:

The unixODBC port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
===>   zabbix32-server-3.2.7 depends on shared library: libodbc.so - found (/usr/local/lib/libodbc.so)
===>   Returning to build of zabbix32-server-3.2.7
===>   zabbix32-server-3.2.7 depends on shared library: libmariadb.so.3 - not found
===>   Installing existing package /packages/All/mariadb102-client-10.2.7.txz
[pkg.netaffairs.nl] Installing mariadb102-client-10.2.7...
[pkg.netaffairs.nl] `-- Installing libedit-3.1.20170329_2,1...
[pkg.netaffairs.nl] `-- Extracting libedit-3.1.20170329_2,1: .......... done
[pkg.netaffairs.nl] `-- Installing libiconv-1.14_10...
[pkg.netaffairs.nl] `-- Extracting libiconv-1.14_10: .......... done
[pkg.netaffairs.nl] `-- Installing readline-7.0.3...
[pkg.netaffairs.nl] |   `-- Installing indexinfo-0.2.6...
[pkg.netaffairs.nl] |   `-- Extracting indexinfo-0.2.6: .... done
[pkg.netaffairs.nl] `-- Extracting readline-7.0.3: .......... done
[pkg.netaffairs.nl] Extracting mariadb102-client-10.2.7: .......... done
Message from mariadb102-client-10.2.7:
************************************************************************

MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc and /usr/local/etc/mysql.

************************************************************************
===>   zabbix32-server-3.2.7 depends on shared library: libmariadb.so.3 - found (/usr/local/lib/mysql/libmariadb.so.3)
===>   Returning to build of zabbix32-server-3.2.7
===>   zabbix32-server-3.2.7 depends on shared library: libldap-2.4.so.2 - not found
===>   Installing existing package /packages/All/openldap-sasl-client-2.4.45.txz
[pkg.netaffairs.nl] Installing openldap-sasl-client-2.4.45...
[pkg.netaffairs.nl] `-- Installing cyrus-sasl-2.1.26_12...
*** Added group `cyrus' (id 60)
*** Added user `cyrus' (id 60)
[pkg.netaffairs.nl] `-- Extracting cyrus-sasl-2.1.26_12: .......... done
[pkg.netaffairs.nl] Extracting openldap-sasl-client-2.4.45: .......... done
Message from cyrus-sasl-2.1.26_12:
You can use sasldb2 for authentication, to add users use:

	saslpasswd2 -c username

If you want to enable SMTP AUTH with the system Sendmail, read
Sendmail.README

NOTE: This port has been compiled with a default pwcheck_method of
      auxprop.  If you want to authenticate your user by /etc/passwd,
      PAM or LDAP, install ports/security/cyrus-sasl2-saslauthd and
      set sasl_pwcheck_method to saslauthd after installing the
      Cyrus-IMAPd 2.X port.  You should also check the
      /usr/local/lib/sasl2/*.conf files for the correct
      pwcheck_method.
      If you want to use GSSAPI mechanism, install
      ports/security/cyrus-sasl2-gssapi.
      If you want to use SRP mechanism, install
      ports/security/cyrus-sasl2-srp.
      If you want to use LDAP auxprop plugin, install
      ports/security/cyrus-sasl2-ldapdb.
Message from openldap-sasl-client-2.4.45:
************************************************************

The OpenLDAP client package has been successfully installed.

Edit
  /usr/local/etc/openldap/ldap.conf
to change the system-wide client defaults.

Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at
  http://www.OpenLDAP.org/faq/index.cgi?file=3
for more information.

************************************************************
===>   zabbix32-server-3.2.7 depends on shared library: libldap-2.4.so.2 - found (/usr/local/lib/libldap-2.4.so.2)
===>   Returning to build of zabbix32-server-3.2.7
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for zabbix32-server-3.2.7
configure: WARNING: unrecognized options: --without-iodbc
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
configure: Configuring Zabbix 3.2.7
checking whether make sets $(MAKE)... (cached) yes
checking build system type... amd64-portbld-freebsd11.1
checking host system type... amd64-portbld-freebsd11.1
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for netdb.h... (cached) yes
checking for signal.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for time.h... (cached) yes
checking for errno.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for math.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for dirent.h... (cached) yes
checking for ctype.h... (cached) yes
checking mtent.h usability... no
checking mtent.h presence... no
checking for mtent.h... no
checking for fcntl.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/sysinfo.h usability... no
checking sys/sysinfo.h presence... no
checking for sys/sysinfo.h... no
checking for sys/statvfs.h... (cached) yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking for sys/socket.h... (cached) yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking for arpa/inet.h... (cached) yes
checking sys/vmmeter.h usability... yes
checking sys/vmmeter.h presence... yes
checking for sys/vmmeter.h... yes
checking for strings.h... (cached) yes
checking vm/vm_param.h usability... yes
checking vm/vm_param.h presence... yes
checking for vm/vm_param.h... yes
checking for sys/time.h... (cached) yes
checking kstat.h usability... no
checking kstat.h presence... no
checking for kstat.h... no
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/sysmacros.h usability... no
checking sys/sysmacros.h presence... no
checking for sys/sysmacros.h... no
checking for stdint.h... (cached) yes
checking mach/host_info.h usability... no
checking mach/host_info.h presence... no
checking for mach/host_info.h... no
checking mach/mach_host.h usability... no
checking mach/mach_host.h presence... no
checking for mach/mach_host.h... no
checking knlist.h usability... no
checking knlist.h presence... no
checking for knlist.h... no
checking for pwd.h... (cached) yes
checking sys/var.h usability... no
checking sys/var.h presence... no
checking for sys/var.h... no
checking for arpa/nameser.h... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking sys/dkstat.h usability... yes
checking sys/dkstat.h presence... yes
checking for sys/dkstat.h... yes
checking sys/disk.h usability... yes
checking sys/disk.h presence... yes
checking for sys/disk.h... yes
checking sys/sched.h usability... yes
checking sys/sched.h presence... yes
checking for sys/sched.h... yes
checking zone.h usability... no
checking zone.h presence... no
checking for zone.h... no
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking kvm.h usability... yes
checking kvm.h presence... yes
checking for kvm.h... yes
checking linux/kernel.h usability... no
checking linux/kernel.h presence... no
checking for linux/kernel.h... no
checking procinfo.h usability... no
checking procinfo.h presence... no
checking for procinfo.h... no
checking sys/dk.h usability... no
checking sys/dk.h presence... no
checking for sys/dk.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking for sys/wait.h... (cached) yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for stdarg.h... (cached) yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking pdh.h usability... no
checking pdh.h presence... no
checking for pdh.h... no
checking psapi.h usability... no
checking psapi.h presence... no
checking for psapi.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking Winldap.h usability... no
checking Winldap.h presence... no
checking for Winldap.h... no
checking Winber.h usability... no
checking Winber.h presence... no
checking for Winber.h... no
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking for inttypes.h... (cached) yes
checking for sys/file.h... (cached) yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking libperfstat.h usability... no
checking libperfstat.h presence... no
checking for libperfstat.h... no
checking sys/systemcfg.h usability... no
checking sys/systemcfg.h presence... no
checking for sys/systemcfg.h... no
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking mntent.h usability... no
checking mntent.h presence... no
checking for mntent.h... no
checking for sys/times.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for resolv.h... (cached) yes
checking for net/if.h... (cached) yes
checking for net/if_mib.h... yes
checking for sys/mount.h... (cached) yes
checking for sys/proc.h... yes
checking for sys/sysctl.h... yes
checking for sys/user.h... yes
checking for sys/swap.h... no
checking for sys/ucontext.h... yes
checking for devstat.h... yes
checking for linux/netlink.h... no
checking for library containing socket... none required
checking for library containing kstat_open... no
checking for library containing gethostbyname... none required
checking for library containing clock_gettime... none required
checking for library containing dlopen... none required
checking for library containing perfstat_memory_total... no
checking for library containing devstat_getdevs... -ldevstat
checking for library containing getdevs... no
checking for library containing backtrace_symbols... -lexecinfo
checking for main in -lm... yes
checking for main in -lkvm... yes
checking for DNS lookup functions... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for an ANSI C-conforming const... yes
checking for pid_t... (cached) yes
checking for socklen_t... yes
checking for actual socklen_t parameter type in socket functions... socklen_t
checking for integer field name in union sigval of struct siginfo_t... sival_int
checking for union semun... yes
checking for struct swaptable in sys/swap.h... no
checking for struct sensordev in sys/sensors.h... no
checking for struct statvfs64 in sys/statvfs.h... no
checking for struct statfs64 in sys/statfs.h... no
checking for field ss_family in struct sockaddr_storage... yes
checking for field mem_unit in struct sysinfo... no
checking for field freeswap in struct sysinfo... no
checking for field totalswap in struct sysinfo... no
checking for field totalram in struct sysinfo... no
checking for field sharedram in struct sysinfo... no
checking for field bufferram in struct sysinfo... no
checking for field freeram in struct sysinfo... no
checking for field uptime in struct sysinfo... no
checking for field procs in struct sysinfo... no
checking for field tm_gmtoff in struct tm... yes
checking for function sysconf() in unistd.h... no
checking for function initgroups()... yes
checking for functions seteuid() and setegid()... yes
checking for function setproctitle()... yes
checking for function sysctlbyname()... yes
checking for function sysctl (KERN_BOOTTIME)... yes
checking for function sysctl (HW_NCPU)... yes
checking for function sysctl (KERN_MAXFILES)... yes
checking for function sysctl (KERN_MAXPROC)... yes
checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)... no
checking for function clock_gettime in time.h... yes
checking for macro __va_copy() in stdarg.h... yes
checking for macro __VA_ARGS__... yes
checking return type of signal handlers... void
checking for getloadavg... yes
checking for hstrerror... yes
checking for getenv... yes
checking for putenv... (cached) yes
checking for sigqueue... yes
checking for /proc filesystem... yes
checking for file /proc/stat... no
checking for file /proc/cpuinfo... no
checking for file /proc/0/psinfo... no
checking for file /proc/loadavg... no
checking for file /proc/net/dev... no
checking for long long format... yes
checking for -rdynamic linking option... yes
checking for libperfstat 5.2.0.40 fileset... no
checking for libperfstat 5.3.0.60 fileset... no
checking for architecture... freebsd (freebsd11.1)
checking size of void *... 8
checking for mysql_config... /usr/local/bin/mysql_config
checking for main in -l... no
configure: error: Not found mysqlclient library
===>  Script "configure" failed unexpectedly.
Please report the problem to pg at pakhom.spb.ru [maintainer] and attach the
"/wrkdirs/usr/ports/net-mgmt/zabbix32-server/work/zabbix-3.2.7/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/zabbix32-server
====>> Cleaning up wrkdir
===>  Cleaning for zabbix32-server-3.2.7
build of net-mgmt/zabbix32-server ended at Mon Aug 21 04:45:31 CEST 2017
build time: 00:00:14
!!! build failure encountered !!!


My /etc/make.conf

BATCH_DELETE_OLD_FILES= yes
WANT_OPENLDAP_SASL=yes
DEFAULT_VERSIONS+=   pgsql=9.6 php=7.0 mysql=10.2m ssl=openssl apache=2.4

WITH_OPENSSL_PORT=yes
OPTIONS_SET+=GSSAPI_NONE KRB_NONE OPTIMIZED_CFLAGS CPUFLAGS SASL
OPTIONS_UNSET+=GSSAPI_BASE KRB_BASE KERBEROS DOCS DEBUG NLS X11 EXAMPLES

BUILD_OPTIMIZED = YES
BUILD_STATIC = YES

DISABLE_VULNERABILITIES=yes

Thank you for your time and effort.
regards
Johan


More information about the freebsd-ports mailing list