=>> Building dns/ldapdns build started at Thu Apr 4 23:21:59 BST 2024 port directory: /usr/ports/dns/ldapdns package name: ldapdns-2.07_4 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: portmaster@bsdforge.com Makefile datestamp: -rw-r--r-- 1 root wheel 1210 Jan 18 14:02 /usr/ports/dns/ldapdns/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: e3a7ca28c8 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 17 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 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 MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/17/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for ldapdns-2.07_4: DOCS=on: Build and/or install documentation EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- portmaster@bsdforge.com --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix=/usr/local --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/dns/ldapdns/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/dns/ldapdns/work XDG_CACHE_HOME=/wrkdirs/usr/ports/dns/ldapdns/work/.cache HOME=/wrkdirs/usr/ports/dns/ldapdns/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/dns/ldapdns/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/dns/ldapdns/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local" CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/dns/ldapdns/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/dns/ldapdns/work XDG_CACHE_HOME=/wrkdirs/usr/ports/dns/ldapdns/work/.cache HOME=/wrkdirs/usr/ports/dns/ldapdns/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/dns/ldapdns/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/dns/ldapdns/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 -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 " CPP="cpp" CPPFLAGS="-isystem /usr/local/include" LDFLAGS=" -fstack-protector-strong -L/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include " CCACHE_DIR="/root/.ccache" 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="" PORTEXAMPLES="" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/ldapdns" EXAMPLESDIR="share/examples/ldapdns" DATADIR="share/ldapdns" WWWDIR="www/ldapdns" ETCDIR="etc/ldapdns" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/ldapdns DOCSDIR=/usr/local/share/doc/ldapdns EXAMPLESDIR=/usr/local/share/examples/ldapdns WWWDIR=/usr/local/www/ldapdns ETCDIR=/usr/local/etc/ldapdns --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 PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=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) 89999 open files (-n) 8192 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-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ldapdns-2.07_4 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> ldapdns-2.07_4 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of ldapdns-2.07_4 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by ldapdns-2.07_4 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by ldapdns-2.07_4 for building => SHA256 Checksum OK for ldapdns-2.07.tar.xz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by ldapdns-2.07_4 for building ===> Extracting for ldapdns-2.07_4 => SHA256 Checksum OK for ldapdns-2.07.tar.xz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for ldapdns-2.07_4 ===> Applying FreeBSD patches for ldapdns-2.07_4 from /usr/ports/dns/ldapdns/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ldapdns-2.07_4 depends on shared library: libldap.so.2 - not found ===> Installing existing package /packages/All/openldap26-client-2.6.7.pkg [pkg-builder.dan.net.uk] Installing openldap26-client-2.6.7... [pkg-builder.dan.net.uk] `-- Installing cyrus-sasl-2.1.28_4... [pkg-builder.dan.net.uk] | `-- Installing openssl-3.0.13_1,1... [pkg-builder.dan.net.uk] | `-- Extracting openssl-3.0.13_1,1: .......... done *** Added group `cyrus' (id 60) *** Added user `cyrus' (id 60) [pkg-builder.dan.net.uk] `-- Extracting cyrus-sasl-2.1.28_4: .......... done [pkg-builder.dan.net.uk] Extracting openldap26-client-2.6.7: .......... done ===== Message from cyrus-sasl-2.1.28_4: -- 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 openldap26-client-2.6.7: -- 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. ===> ldapdns-2.07_4 depends on shared library: libldap.so.2 - found (/usr/local/lib/libldap.so.2) ===> Returning to build of ldapdns-2.07_4 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for ldapdns-2.07_4 Configuring LDAPDNS Testing C compiler: cc Checking for syslog support: ok Checking for memzero: bzero Checking for memcpy: ok Checking for IPV6 support: ok Checking for setsid() support: ok Checking for poll() support: ok Checking for waitpid() support: ok Checking for POSIX threads: -lpthread Checking for non-portable pthreads extensions: none Checking OpenLDAP dependencies: ok Checking for OpenLDAP < 2.1.8: no Writing Makefile.config: done =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for ldapdns-2.07_4 make -f Makefile.defs cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c udpserver.c -o udpserver.o In file included from udpserver.c:1: In file included from ./config.h:12: In file included from ./list.h:6: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:179:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:201:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:239:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:255:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:138:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:158:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:196:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:212:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from udpserver.c:2: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ udpserver.c:28:20: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv4_scan(x, ip)) { ^~ ./ip4.h:26:60: note: passing argument to parameter 'ip' here static int inline ipv4_scan(const char *str, unsigned char ip[4]) ^ udpserver.c:30:20: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv6_scan(x, ip)) ^~ ./ip6.h:133:60: note: passing argument to parameter 'ip' here static int inline ipv6_scan(const char *str, unsigned char ip[16]) ^ udpserver.c:58:33: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (socket_bind6_reuse(udp53, ip, port) == -1) ^~ ./ip6.h:164:60: note: passing argument to parameter 'ip' here static int inline socket_bind6_reuse(int fd, unsigned char ip[16], int port) ^ udpserver.c:62:32: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (socket_bind4_reuse(udp53, ip, port) == -1) ^~ ./ip4.h:123:60: note: passing argument to parameter 'ip' here static int inline socket_bind4_reuse(int fd, unsigned char ip[4], int port) ^ 15 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c engine.c -o engine.o In file included from engine.c:1: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:179:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:201:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:239:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:255:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:138:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:158:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:196:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:212:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from engine.c:4: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ engine.c:301:9: warning: address of array 'c->response' will always evaluate to 'true' [-Wpointer-bool-conversion] if (c->response && caddr(c->response) && clen(c->response)) ~~~^~~~~~~~ ~~ engine.c:336:9: warning: address of array 'c->response' will always evaluate to 'true' [-Wpointer-bool-conversion] if (c->response && c->response->buf) { ~~~^~~~~~~~ ~~ engine.c:819:52: warning: missing sentinel in function call [-Wsentinel] execlp(ldapdns.notify, ldapdns.notify, str(d), 0); ^ , NULL /usr/include/unistd.h:334:6: note: function has been explicitly marked sentinel here int execlp(const char *, const char *, ...) __null_sentinel; ^ engine.c:1118:35: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] i = handle_generic_compare(c, q, pdata, n); ^ engine.c:1052:75: note: passing argument to parameter 'p' here static int inline handle_generic_compare(dns_ctx *c, const unsigned char *p, ^ engine.c:1118:38: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] i = handle_generic_compare(c, q, pdata, n); ^~~~~ engine.c:1053:24: note: passing argument to parameter 'pdata' here const unsigned char *pdata, unsigned int plen) { ^ engine.c:1457:16: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bin_cat(b, c->ip, 4); ^~~~~ ./bin.h:39:43: note: passing argument to parameter 's' here static void inline bin_cat(bin_t p, char *s, int len) { ^ engine.c:1514:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] response_addbytes(c, header, 12); ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:1584:23: warning: passing 'char[513]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] response_addbytes(c, c->request_buf, c->request_len); ^~~~~~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:1785:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_axstart(c, 0, q, p, DNS_C_IN, ttl)) { ^ ./ldapdns.h:204:57: note: passing argument to parameter 'qt' here int response_axstart(dns_ctx *c, int soa, char *q, char qt[2], char qc[2], unsigned int ttl); ^ engine.c:1789:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_rstart(c, q, p, ttl)) { ^ ./ldapdns.h:186:51: note: passing argument to parameter 'rr' here int response_rstart(dns_ctx *, char *dnsenc, char rr[2], unsigned int ttl); ^ engine.c:1801:31: warning: passing 'char[2]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, "\377", 1)) { ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:1807:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addname(c, p)) { ^ ./ldapdns.h:188:39: note: passing argument to parameter 'dnsenc' here int response_addname(dns_ctx *, char *dnsenc); ^ engine.c:1810:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] dlen = dns_domain_length(p); ^ ./ldapdns.h:212:44: note: passing argument to parameter 'dn' here unsigned int dns_domain_length(const char *dn); ^ engine.c:1813:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] push_subreq(c, p); ^ engine.c:1764:50: note: passing argument to parameter 'q' here static void inline push_subreq(dns_ctx *c, char *q) ^ engine.c:1943:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 4)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2013:7: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] dat, c->ttl); ^~~ engine.c:1778:62: note: passing argument to parameter 'p' here response_generic(dns_ctx *c, int ax, char *q, unsigned char *p, unsigned long ttl) ^ engine.c:2038:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 4)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2075:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 2) ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2137:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 4)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2199:30: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, "\x60\x00", 2) ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2200:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 4)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2216:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 2) ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2238:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 4)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2296:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 4)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2418:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, dns_domain_length(dat)-1)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2539:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 4)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2561:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, 2) ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2572:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] || !response_addbytes(c, dat, dns_domain_length(dat)-1)) { ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ engine.c:2591:5: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] dat, c->ttl); ^~~ engine.c:1778:62: note: passing argument to parameter 'p' here response_generic(dns_ctx *c, int ax, char *q, unsigned char *p, unsigned long ttl) ^ engine.c:2810:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv4_in_subnet(lp->str+1, c->ip)) { ^~~~~~~~~ ./ip4.h:52:48: note: passing argument to parameter 'cidr' here static int inline ipv4_in_subnet(unsigned char cidr[8], unsigned char ip[4]) ^ engine.c:2812:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv4_null(lp->str+1)) ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv4_null(unsigned char *ip) ^ engine.c:2817:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv6_in_subnet(lp->str+1, c->ip)) { ^~~~~~~~~ ./ip6.h:141:48: note: passing argument to parameter 'cidr' here static int inline ipv6_in_subnet(unsigned char cidr[32], unsigned char ip[16]) ^ engine.c:2819:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv6_null(lp->str+1)) ^~~~~~~~~ ./ip6.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv6_null(unsigned char *ip) ^ engine.c:2981:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv4_in_subnet(lp->str+1, c->ip)) { ^~~~~~~~~ ./ip4.h:52:48: note: passing argument to parameter 'cidr' here static int inline ipv4_in_subnet(unsigned char cidr[8], unsigned char ip[4]) ^ engine.c:2983:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv4_null(lp->str+1)) ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv4_null(unsigned char *ip) ^ engine.c:2988:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv6_in_subnet(lp->str+1, c->ip)) { ^~~~~~~~~ ./ip6.h:141:48: note: passing argument to parameter 'cidr' here static int inline ipv6_in_subnet(unsigned char cidr[32], unsigned char ip[16]) ^ engine.c:2990:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv6_null(lp->str+1)) ^~~~~~~~~ ./ip6.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv6_null(unsigned char *ip) ^ engine.c:3275:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for (x = str(line); *x && *x != '='; x++); ^ ~~~~~~~~~ engine.c:3280:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv6_cidr(x, cidr)) { ^ ./ip6.h:137:41: note: passing argument to parameter 'str' here static int inline ipv6_cidr(const char *str, unsigned char ip[32]) ^ engine.c:3282:20: warning: passing 'unsigned char[32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bin_cat(res, cidr, 32); ^~~~ ./bin.h:39:43: note: passing argument to parameter 's' here static void inline bin_cat(bin_t p, char *s, int len) { ^ engine.c:3289:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv4_cidr(x, cidr)) { ^ ./ip4.h:62:35: note: passing argument to parameter 'str' here static int inline ipv4_cidr(char *str, unsigned char cidr[8]) ^ engine.c:3291:20: warning: passing 'unsigned char[32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bin_cat(res, cidr, 8); ^~~~ ./bin.h:39:43: note: passing argument to parameter 's' here static void inline bin_cat(bin_t p, char *s, int len) { ^ 53 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c ldapdns.c -o ldapdns.o In file included from ldapdns.c:2: In file included from ./ldapdns.h:13: In file included from ./list.h:6: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:179:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:201:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:239:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:255:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:138:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:158:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:196:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:212:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from ldapdns.c:2: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ ldapdns.c:419:19: warning: passing 'unsigned char[8]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bin_copy(retval, ip, 4); ^~ ./bin.h:59:50: note: passing argument to parameter 's' here static void inline bin_copy(bin_t p, const char *s, int len) { ^ 12 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c dns.c -o dns.o In file included from dns.c:3: In file included from ./ldapdns.h:13: In file included from ./list.h:6: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:179:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:201:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:239:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:255:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:138:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:158:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:196:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:212:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from dns.c:3: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ 11 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c response.c -o response.o In file included from response.c:1: In file included from ./bin.h:6: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' In file included from response.c:1: ./bin.h:41:2: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memcpy(p->buf + p->used, s, len); ^ ./bin.h:41:2: note: include the header or explicitly provide a declaration for 'memcpy' In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:179:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:201:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:239:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:255:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:138:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:158:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:196:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:212:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from response.c:2: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ response.c:13:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, rr, 2)) return 0; ^~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:14:28: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, DNS_C_IN, 2)) return 0; ^~~~~~~~ ./dns.h:23:18: note: expanded from macro 'DNS_C_IN' #define DNS_C_IN "\000\001" ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:16:28: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, "\0\0", 2)) return 0; ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:55:28: warning: passing 'char[2]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, c->dns_message_id, 2)) return 0; ^~~~~~~~~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:61:29: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, buf, 10)) return 0; ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:64:29: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, DNS_T_AXFR, 2)) return 0; ^~~~~~~~~~ ./dns.h:43:20: note: expanded from macro 'DNS_T_AXFR' #define DNS_T_AXFR "\000\374" ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:65:29: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, DNS_C_IN, 2)) return 0; ^~~~~~~~ ./dns.h:23:18: note: expanded from macro 'DNS_C_IN' #define DNS_C_IN "\000\001" ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:67:29: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, buf, 10)) return 0; ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:70:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, qt, 2)) return 0; ^~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:71:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, qc, 2)) return 0; ^~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:73:28: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, "\0\0", 2)) return 0; ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:94:28: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, "\0\0\201\200\0\1\0\0\0\0\0\0", 12)) return 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:96:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, qt, 2)) return 0; ^~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:97:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, qc, 2)) return 0; ^~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:106:28: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, "\0\0\204\200\0\1\0\0\0\0\0\0", 12)) return 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:108:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, qt, 2)) return 0; ^~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:109:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, qc, 2)) return 0; ^~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:136:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!response_addbytes(c, dnsenc, i)) ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:141:30: warning: passing 'char[2]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return response_addbytes(c, "\0", 1); ^~~~ ./ldapdns.h:189:49: note: passing argument to parameter here int response_addbytes(dns_ctx *, unsigned char *, int); ^ response.c:178:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bin_cat(c->response, b, l); ^ ./bin.h:39:43: note: passing argument to parameter 's' here static void inline bin_cat(bin_t p, char *s, int len) { ^ response.c:189:30: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return response_addbytes(c, buf, 4); ^~~ response.c:176:50: note: passing argument to parameter 'b' here int response_addbytes(dns_ctx *c, unsigned char *b, int l) ^ response.c:198:30: warning: passing 'char[2]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return response_addbytes(c, buf, 2); ^~~ response.c:176:50: note: passing argument to parameter 'b' here int response_addbytes(dns_ctx *c, unsigned char *b, int l) ^ response.c:207:30: warning: passing 'char[2]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return response_addbytes(c, buf, 2); ^~~ response.c:176:50: note: passing argument to parameter 'b' here int response_addbytes(dns_ctx *c, unsigned char *b, int l) ^ 35 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c ht.c -o ht.o In file included from ht.c:4: In file included from ./bin.h:6: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' 1 warning generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c error.c -o error.o In file included from error.c:10: In file included from ./str.h:5: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' error.c:49:38: warning: missing sentinel in function call [-Wsentinel] execl("/bin/sh", "/bin/sh", "-c", s); ^ , NULL /usr/include/unistd.h:332:6: note: function has been explicitly marked sentinel here int execl(const char *, const char *, ...) __null_sentinel; ^ 2 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c mem.c -o mem.o In file included from mem.c:2: In file included from ./list.h:6: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' In file included from mem.c:4: ./bin.h:41:2: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memcpy(p->buf + p->used, s, len); ^ ./bin.h:41:2: note: include the header or explicitly provide a declaration for 'memcpy' 2 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib -lpthread -lldap -llber -o ldapdns udpserver.o engine.o ldapdns.o dns.o response.o ht.o error.o mem.o cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -c tcpserver.c -o tcpserver.o In file included from tcpserver.c:1: In file included from ./ldapdns.h:13: In file included from ./list.h:6: ./error.h:26:13: warning: incompatible redeclaration of library function 'log' [-Wincompatible-library-redeclaration] void inline log(int lev, const char *m, ...); ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:179:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:201:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:239:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: ./ip6.h:255:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:138:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:158:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { ^~~~~~~~~~~~~ /usr/include/sys/socket.h:691:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:196:40: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = accept(s, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: In file included from ./ldapdns.h:18: In file included from ./ip.h:37: ./ip4.h:212:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); ^~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ In file included from tcpserver.c:1: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] free(tmp); ^ tcpserver.c:65:26: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!x || !ipv4_scan(x, tcpserver_ip) ) { ^~~~~~~~~~~~ ./ip4.h:26:60: note: passing argument to parameter 'ip' here static int inline ipv4_scan(const char *str, unsigned char ip[4]) ^ tcpserver.c:84:22: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (socket_peer4(0, tcpserver_ip, &tcpserver_port)) { ^~~~~~~~~~~~ ./ip4.h:129:54: note: passing argument to parameter 'ip' here static int inline socket_peer4(int fd, unsigned char ip[4], int *port) ^ tcpserver.c:96:20: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv4_scan(x, tcpserver_ip)) { ^~~~~~~~~~~~ ./ip4.h:26:60: note: passing argument to parameter 'ip' here static int inline ipv4_scan(const char *str, unsigned char ip[4]) ^ tcpserver.c:98:20: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv6_scan(x, tcpserver_ip)) ^~~~~~~~~~~~ ./ip6.h:133:60: note: passing argument to parameter 'ip' here static int inline ipv6_scan(const char *str, unsigned char ip[16]) ^ tcpserver.c:126:37: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (socket_bind6_reuse(server_fd, tcpserver_ip, port) == -1) ^~~~~~~~~~~~ ./ip6.h:164:60: note: passing argument to parameter 'ip' here static int inline socket_bind6_reuse(int fd, unsigned char ip[16], int port) ^ tcpserver.c:130:36: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (socket_bind4_reuse(server_fd, tcpserver_ip, port) == -1) ^~~~~~~~~~~~ ./ip4.h:123:60: note: passing argument to parameter 'ip' here static int inline socket_bind4_reuse(int fd, unsigned char ip[4], int port) ^ tcpserver.c:352:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv4_in_subnet(ax->str+1, c->ip)) { ^~~~~~~~~ ./ip4.h:52:48: note: passing argument to parameter 'cidr' here static int inline ipv4_in_subnet(unsigned char cidr[8], unsigned char ip[4]) ^ tcpserver.c:356:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv4_null(ax->str+1)) ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv4_null(unsigned char *ip) ^ tcpserver.c:363:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv4_null(ax->str+1)) ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv4_null(unsigned char *ip) ^ tcpserver.c:368:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ipv6_in_subnet(ax->str+1, c->ip)) { ^~~~~~~~~ ./ip6.h:141:48: note: passing argument to parameter 'cidr' here static int inline ipv6_in_subnet(unsigned char cidr[32], unsigned char ip[16]) ^ tcpserver.c:372:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv4_null(ax->str+1)) ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv4_null(unsigned char *ip) ^ tcpserver.c:379:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!ipv6_null(ax->str+1)) ^~~~~~~~~ ./ip6.h:20:44: note: passing argument to parameter 'ip' here static int inline ipv6_null(unsigned char *ip) ^ 23 warnings generated. cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=gnu89 -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib -lpthread -lldap -llber -o ldapaxfr tcpserver.o engine.o ldapdns.o dns.o response.o ht.o error.o mem.o =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ldapdns-2.07_4 depends on executable: setuidgid - not found ===> Installing existing package /packages/All/daemontools-0.76_19.pkg [pkg-builder.dan.net.uk] Installing daemontools-0.76_19... [pkg-builder.dan.net.uk] Extracting daemontools-0.76_19: .......... done ===> ldapdns-2.07_4 depends on executable: setuidgid - found ===> Returning to build of ldapdns-2.07_4 ===> ldapdns-2.07_4 depends on executable: tcpserver - not found ===> Installing existing package /packages/All/ucspi-tcp-0.88_3.pkg [pkg-builder.dan.net.uk] Installing ucspi-tcp-0.88_3... [pkg-builder.dan.net.uk] Extracting ucspi-tcp-0.88_3: .......... done ===== Message from ucspi-tcp-0.88_3: -- ===> NOTICE: The ucspi-tcp 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://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> ldapdns-2.07_4 depends on executable: tcpserver - found ===> Returning to build of ldapdns-2.07_4 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for ldapdns-2.07_4 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/ldapdns /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/ldapaxfr /wrkdirs/usr/ports/dns/ldapdns/work/stage/usr/local/bin install -m 555 /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/ldapdns-conf /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/ldapaxfr-conf /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/domainname.sh /wrkdirs/usr/ports/dns/ldapdns/work/stage/usr/local/bin install -m 0644 /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/AUTHORS /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/CHANGELOG /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/FAQ /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/INSTALL /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/README /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/README.[a-s]* /wrkdirs/usr/ports/dns/ldapdns/work/stage/usr/local/share/doc/ldapdns install -m 0644 /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/sample/* /wrkdirs/usr/ports/dns/ldapdns/work/stage/usr/local/share/examples/ldapdns install -m 555 /wrkdirs/usr/ports/dns/ldapdns/work/ldapdns-2.07/admin/* /wrkdirs/usr/ports/dns/ldapdns/work/stage/usr/local/share/examples/ldapdns/admin ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-04T22:21:59+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=e3a7ca28c8' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for ldapdns-2.07_4 ===> Building ldapdns-2.07_4 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for ldapdns-2.07_4 build of dns/ldapdns | ldapdns-2.07_4 ended at Thu Apr 4 23:22:14 BST 2024 build time: 00:00:16