=>> Building dns/ldapdns build started at Sun May 4 06:20:27 EDT 2025 port directory: /usr/ports/dns/ldapdns package name: ldapdns-2.07_4 building for: FreeBSD 13amd64-weekly-desktop-job-01 13.4-RELEASE-p4 FreeBSD 13.4-RELEASE-p4 amd64 maintained by: portmaster@bsdforge.com Makefile datestamp: -rw-r--r-- 1 root wheel 1210 Feb 24 2024 /usr/ports/dns/ldapdns/Makefile Ports top last git commit: 57a50b106b87 Ports top unclean checkout: yes Port dir last git commit: d9c7e0b18ad0 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1402000 Jail OSVERSION: 1304000 Job Id: 01 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1304000 UNAME_v=FreeBSD 13.4-RELEASE-p4 UNAME_r=13.4-RELEASE-p4 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.2 MASTERMNT=/mnt/data/.m/13amd64-weekly-desktop/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen GID=0 OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 UID=0 PWD=/mnt/data/.m/13amd64-weekly-desktop/01/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13amd64-weekly-desktop SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/mnt/data/.m/13amd64-weekly-desktop/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 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=/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" --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=/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 " 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.4 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 #### #### # Work around some weirdness when fetching golang modules GO_TAGS+=netcgo .if ${.CURDIR:M*/www/chromium*} MAKE_JOBS_NUMBER=24 .endif .if ${.CURDIR:M*/www/ungoogled-chromium*} MAKE_JOBS_NUMBER=24 .endif .if ${.CURDIR:M*/lang/rust*} MAKE_JOBS_NUMBER=10 .endif .if ${.CURDIR:M*/lang/gcc*} MAKE_JOBS_NUMBER=10 .endif .if ${.CURDIR:M*/www/iridium*} MAKE_JOBS_NUMBER=16 .endif .if ${.CURDIR:M*/devel/electron*} MAKE_JOBS_NUMBER=20 .endif .if ${.CURDIR:M*/databases/mongodb*} MAKE_JOBS_NUMBER=12 .endif .if ${.CURDIR:M*/devel/llvm*} MAKE_JOBS_NUMBER=16 .endif # Speed things up a bit MAKE_JOBS_NUMBER?=8 #### #### #MAKE_JOBS_NUMBER?=4 # Alows us to build ports non-interactivly DISABLE_LICENSES=yes LICENSES_ACCEPTED+= DCC # Enable SNDIO on anything that supports it #OPTIONS_SET+=PULSEAUDIO OPTIONS_SET+=SNDIO # Yes we have MS Windows x11-fonts_webfonts_SET+=EXTRAFONTS CLEARTYPE # Desktop Specific Options sysutils_gksu_UNSET+=NAUTILUS x11-wm_compiz-fusion_UNSET+=EMERALD accessibility_redshift_SET+=GUI VIDMODE # These ports default to other audio servers, audio_espeak_UNSET+=PORTAUDIO www_qt5-webengine_UNSET+=ALSA www_qt6-webengine_UNSET+=ALSA audio_rhvoice_UNSET+=AO comms_morse_UNSET+=OSS audio_harp_UNSET+=OSS # Somehow these options are being set and result in ports being rebuilt needlessly becuase they are actually turned off audio_alsa-plugins_SET+=FFMPEG JACK PULSEAUDIO SAMPLERATE SPEEX #### Misc Poudriere #### .include "/etc/make.conf.ports_env" ---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=nobody UID=65534 GID=65534 =========================================================================== =================================================== ===== 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-2.0.6.pkg [13amd64-weekly-desktop-job-01] Installing pkg-2.0.6... [13amd64-weekly-desktop-job-01] Extracting pkg-2.0.6: .......... 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=nobody UID=65534 GID=65534 ===> 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=nobody UID=65534 GID=65534 ===> 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.9_1.pkg [13amd64-weekly-desktop-job-01] Installing openldap26-client-2.6.9_1... [13amd64-weekly-desktop-job-01] `-- Installing cyrus-sasl-2.1.28_5... *** Added group `cyrus' (id 60) *** Added user `cyrus' (id 60) [13amd64-weekly-desktop-job-01] `-- Extracting cyrus-sasl-2.1.28_5: .......... done [13amd64-weekly-desktop-job-01] Extracting openldap26-client-2.6.9_1: .......... done ===== Message from cyrus-sasl-2.1.28_5: -- 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.9_1: -- 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=nobody UID=65534 GID=65534 ===> 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=nobody UID=65534 GID=65534 ===> Building for ldapdns-2.07_4 --- default --- make -f Makefile.defs --- ht.o --- --- error.o --- --- mem.o --- --- udpserver.o --- --- tcpserver.o --- --- engine.o --- --- ldapdns.o --- --- response.o --- --- ht.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 ht.c -o ht.o --- error.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 error.c -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 mem.c -o mem.o --- udpserver.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 udpserver.c -o udpserver.o --- tcpserver.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 --- ldapdns.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 ldapdns.c -o ldapdns.o --- response.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 response.c -o response.o --- engine.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 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] 26 | void inline log(int lev, const char *m, ...); | ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- 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] 26 | void inline log(int lev, const char *m, ...); | ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- 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] 26 | void inline log(int lev, const char *m, ...); | ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- response.o --- 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] 41 | memcpy(p->buf + p->used, s, len); | ^ ./bin.h:41:2: note: include the header or explicitly provide a declaration for 'memcpy' --- 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] 26 | void inline log(int lev, const char *m, ...); | ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- 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] 26 | 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] 41 | memcpy(p->buf + p->used, s, len); | ^ ./bin.h:41:2: note: include the header or explicitly provide a declaration for 'memcpy' --- 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] 26 | void inline log(int lev, const char *m, ...); | ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- 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] --- 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] --- tcpserver.o --- 26 | void inline log(int lev, const char *m, ...); | ^ --- ldapdns.o --- 26 | void inline log(int lev, const char *m, ...); | ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- tcpserver.o --- ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- error.o --- error.c:49:38: warning: missing sentinel in function call [-Wsentinel] 49 | execl("/bin/sh", "/bin/sh", "-c", s); | ^ | , NULL /usr/include/unistd.h:331:6: note: function has been explicitly marked sentinel here 331 | int execl(const char *, const char *, ...) __null_sentinel; | ^ ~~~~~~~~~~~~~~~ --- engine.o --- 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] 179 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] 179 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here --- engine.o --- In file included from engine.c:4: In file included from ./ldapdns.h:18: In file included from ./ip.h:34: --- response.o --- 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- engine.o --- ./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] 201 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 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] 179 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] --- tcpserver.o --- 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] --- response.o --- 201 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here --- tcpserver.o --- 179 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ --- response.o --- 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- tcpserver.o --- /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 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] 201 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here --- engine.o --- 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] --- ldapdns.o --- 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- engine.o --- 239 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- tcpserver.o --- 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] 201 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] 239 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- engine.o --- 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] 255 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 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] 239 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] 255 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- udpserver.o --- 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] --- ldapdns.o --- 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] --- tcpserver.o --- 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] --- ldapdns.o --- 255 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here --- udpserver.o --- 179 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ --- tcpserver.o --- 239 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here --- udpserver.o --- /usr/include/sys/socket.h:689:74: note: passing argument to parameter here --- ldapdns.o --- 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- tcpserver.o --- 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- udpserver.o --- 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- tcpserver.o --- 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] --- udpserver.o --- In file included from udpserver.c:2: In file included from ./ldapdns.h:18: --- tcpserver.o --- 255 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ --- udpserver.o --- 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] --- tcpserver.o --- /usr/include/sys/socket.h:694:96: note: passing argument to parameter here --- udpserver.o --- 201 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ --- tcpserver.o --- 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- udpserver.o --- /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- mem.o --- 2 warnings generated. --- udpserver.o --- 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] 239 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | 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] 255 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- engine.o --- 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] 138 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] 138 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- engine.o --- 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] 158 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here --- ldapdns.o --- 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] --- engine.o --- 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 138 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] 158 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 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] 158 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- engine.o --- 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] 196 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- tcpserver.o --- 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] 138 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] --- engine.o --- 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] --- response.o --- 196 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here --- engine.o --- 212 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here --- response.o --- 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 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] --- engine.o --- 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 196 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- tcpserver.o --- 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] --- response.o --- In file included from response.c:2: --- tcpserver.o --- 158 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ --- response.o --- 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] --- tcpserver.o --- /usr/include/sys/socket.h:690:74: note: passing argument to parameter here --- response.o --- 212 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); --- tcpserver.o --- 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); --- response.o --- | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here --- tcpserver.o --- | ^ --- ldapdns.o --- 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] 212 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here --- response.o --- 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- ldapdns.o --- 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- udpserver.o --- 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] 138 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- tcpserver.o --- 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] 196 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here --- engine.o --- In file included from engine.c:4: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 167 | free(tmp); | ^ --- udpserver.o --- 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] --- tcpserver.o --- 681 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- udpserver.o --- 158 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- engine.o --- ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 179 | free(tmp); | ^ --- tcpserver.o --- 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] --- response.o --- In file included from response.c:2: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 167 | free(tmp); | ^ --- ldapdns.o --- In file included from ldapdns.c:2: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] --- tcpserver.o --- 212 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ --- ldapdns.o --- 167 | free(tmp); | ^ --- tcpserver.o --- /usr/include/sys/socket.h:694:96: note: passing argument to parameter here 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 179 | free(tmp); | ^ --- ldapdns.o --- ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 179 | free(tmp); | ^ --- udpserver.o --- 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] 196 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | 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] 212 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here 694 | ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ --- response.o --- 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] 13 | if (!response_addbytes(c, rr, 2)) return 0; | ^~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 14 | if (!response_addbytes(c, DNS_C_IN, 2)) return 0; | ^~~~~~~~ ./dns.h:23:18: note: expanded from macro 'DNS_C_IN' 23 | #define DNS_C_IN "\000\001" | ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 16 | if (!response_addbytes(c, "\0\0", 2)) return 0; | ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | int response_addbytes(dns_ctx *, unsigned char *, int); | ^ --- tcpserver.o --- In file included from tcpserver.c:1: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 167 | free(tmp); | ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 179 | free(tmp); | ^ --- udpserver.o --- In file included from udpserver.c:2: ./ldapdns.h:167:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 167 | free(tmp); | ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 179 | free(tmp); | ^ --- response.o --- 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] 55 | if (!response_addbytes(c, c->dns_message_id, 2)) return 0; | ^~~~~~~~~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 61 | if (!response_addbytes(c, buf, 10)) return 0; | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 64 | if (!response_addbytes(c, DNS_T_AXFR, 2)) return 0; | ^~~~~~~~~~ ./dns.h:43:20: note: expanded from macro 'DNS_T_AXFR' 43 | #define DNS_T_AXFR "\000\374" | ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 65 | if (!response_addbytes(c, DNS_C_IN, 2)) return 0; | ^~~~~~~~ ./dns.h:23:18: note: expanded from macro 'DNS_C_IN' 23 | #define DNS_C_IN "\000\001" | ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 67 | if (!response_addbytes(c, buf, 10)) return 0; | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 70 | if (!response_addbytes(c, qt, 2)) return 0; | ^~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 71 | if (!response_addbytes(c, qc, 2)) return 0; | ^~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 73 | if (!response_addbytes(c, "\0\0", 2)) return 0; | ^~~~~~ --- udpserver.o --- 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] --- response.o --- ./ldapdns.h:189:49: note: passing argument to parameter here --- udpserver.o --- 28 | if (!ipv4_scan(x, ip)) { | ^~ --- response.o --- 189 | int response_addbytes(dns_ctx *, unsigned char *, int); | ^ --- udpserver.o --- ./ip4.h:26:60: note: passing argument to parameter 'ip' here 26 | 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] 30 | if (ipv6_scan(x, ip)) | ^~ ./ip6.h:133:60: note: passing argument to parameter 'ip' here 133 | 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] 58 | if (socket_bind6_reuse(udp53, ip, port) == -1) | ^~ ./ip6.h:164:60: note: passing argument to parameter 'ip' here 164 | 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] 62 | if (socket_bind4_reuse(udp53, ip, port) == -1) | ^~ ./ip4.h:123:60: note: passing argument to parameter 'ip' here 123 | static int inline socket_bind4_reuse(int fd, unsigned char ip[4], int port) | ^ --- dns.o --- --- response.o --- 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] 94 | 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 189 | 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] 96 | if (!response_addbytes(c, qt, 2)) return 0; | ^~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 97 | if (!response_addbytes(c, qc, 2)) return 0; | ^~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 106 | 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 189 | int response_addbytes(dns_ctx *, unsigned char *, int); | ^ --- dns.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 dns.c -o dns.o --- response.o --- 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] 108 | if (!response_addbytes(c, qt, 2)) return 0; | ^~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 109 | if (!response_addbytes(c, qc, 2)) return 0; | ^~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 136 | if (!response_addbytes(c, dnsenc, i)) | ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 141 | return response_addbytes(c, "\0", 1); | ^~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | int response_addbytes(dns_ctx *, unsigned char *, int); | ^ --- tcpserver.o --- 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] 65 | if (!x || !ipv4_scan(x, tcpserver_ip) ) { | ^~~~~~~~~~~~ ./ip4.h:26:60: note: passing argument to parameter 'ip' here 26 | 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] 84 | if (socket_peer4(0, tcpserver_ip, &tcpserver_port)) { | ^~~~~~~~~~~~ ./ip4.h:129:54: note: passing argument to parameter 'ip' here 129 | 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] 96 | if (!ipv4_scan(x, tcpserver_ip)) { | ^~~~~~~~~~~~ ./ip4.h:26:60: note: passing argument to parameter 'ip' here 26 | 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] 98 | if (ipv6_scan(x, tcpserver_ip)) | ^~~~~~~~~~~~ ./ip6.h:133:60: note: passing argument to parameter 'ip' here 133 | 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] 126 | if (socket_bind6_reuse(server_fd, tcpserver_ip, port) == -1) | ^~~~~~~~~~~~ ./ip6.h:164:60: note: passing argument to parameter 'ip' here 164 | 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] 130 | if (socket_bind4_reuse(server_fd, tcpserver_ip, port) == -1) | ^~~~~~~~~~~~ ./ip4.h:123:60: note: passing argument to parameter 'ip' here 123 | static int inline socket_bind4_reuse(int fd, unsigned char ip[4], int port) | ^ --- response.o --- 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] 178 | bin_cat(c->response, b, l); | ^ ./bin.h:39:43: note: passing argument to parameter 's' here 39 | static void inline bin_cat(bin_t p, char *s, int len) { | ^ --- ldapdns.o --- 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] 419 | bin_copy(retval, ip, 4); | ^~ ./bin.h:59:50: note: passing argument to parameter 's' here 59 | static void inline bin_copy(bin_t p, const char *s, int len) { | ^ --- response.o --- 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] 189 | return response_addbytes(c, buf, 4); | ^~~ response.c:176:50: note: passing argument to parameter 'b' here 176 | 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] 198 | return response_addbytes(c, buf, 2); | ^~~ response.c:176:50: note: passing argument to parameter 'b' here 176 | int response_addbytes(dns_ctx *c, unsigned char *b, int l) | ^ --- engine.o --- engine.c:301:9: warning: address of array 'c->response' will always evaluate to 'true' [-Wpointer-bool-conversion] 301 | if (c->response && caddr(c->response) && clen(c->response)) | ~~~^~~~~~~~ ~~ --- response.o --- 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] 207 | return response_addbytes(c, buf, 2); | ^~~ response.c:176:50: note: passing argument to parameter 'b' here 176 | int response_addbytes(dns_ctx *c, unsigned char *b, int l) | ^ --- engine.o --- engine.c:336:9: warning: address of array 'c->response' will always evaluate to 'true' [-Wpointer-bool-conversion] 336 | if (c->response && c->response->buf) { | ~~~^~~~~~~~ ~~ --- ht.o --- 1 warning generated. --- tcpserver.o --- 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] 352 | if (ipv4_in_subnet(ax->str+1, c->ip)) { | ^~~~~~~~~ ./ip4.h:52:48: note: passing argument to parameter 'cidr' here 52 | 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] 356 | if (!ipv4_null(ax->str+1)) | ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here 20 | 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] 363 | if (!ipv4_null(ax->str+1)) | ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here 20 | 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] 368 | if (ipv6_in_subnet(ax->str+1, c->ip)) { | ^~~~~~~~~ ./ip6.h:141:48: note: passing argument to parameter 'cidr' here 141 | 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] 372 | if (!ipv4_null(ax->str+1)) | ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here 20 | 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] 379 | if (!ipv6_null(ax->str+1)) | ^~~~~~~~~ ./ip6.h:20:44: note: passing argument to parameter 'ip' here 20 | static int inline ipv6_null(unsigned char *ip) | ^ --- engine.o --- engine.c:819:52: warning: missing sentinel in function call [-Wsentinel] 819 | execlp(ldapdns.notify, ldapdns.notify, str(d), 0); | ^ | , NULL /usr/include/unistd.h:333:6: note: function has been explicitly marked sentinel here 333 | 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] 1118 | i = handle_generic_compare(c, q, pdata, n); | ^ engine.c:1052:75: note: passing argument to parameter 'p' here 1052 | 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] 1118 | i = handle_generic_compare(c, q, pdata, n); | ^~~~~ engine.c:1053:24: note: passing argument to parameter 'pdata' here 1053 | 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] 1457 | bin_cat(b, c->ip, 4); | ^~~~~ ./bin.h:39:43: note: passing argument to parameter 's' here 39 | 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] 1514 | response_addbytes(c, header, 12); | ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 1584 | response_addbytes(c, c->request_buf, c->request_len); | ^~~~~~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 1785 | if (!response_axstart(c, 0, q, p, DNS_C_IN, ttl)) { | ^ ./ldapdns.h:204:57: note: passing argument to parameter 'qt' here 204 | 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] 1789 | if (!response_rstart(c, q, p, ttl)) { | ^ ./ldapdns.h:186:51: note: passing argument to parameter 'rr' here 186 | 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] 1801 | if (!response_addbytes(c, "\377", 1)) { | ^~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 1807 | if (!response_addname(c, p)) { | ^ ./ldapdns.h:188:39: note: passing argument to parameter 'dnsenc' here 188 | 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] 1810 | dlen = dns_domain_length(p); | ^ ./ldapdns.h:212:44: note: passing argument to parameter 'dn' here 212 | 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] 1813 | push_subreq(c, p); | ^ engine.c:1764:50: note: passing argument to parameter 'q' here 1764 | 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] 1943 | || !response_addbytes(c, dat, 4)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2013 | dat, c->ttl); | ^~~ engine.c:1778:62: note: passing argument to parameter 'p' here 1778 | 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] 2038 | || !response_addbytes(c, dat, 4)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2075 | || !response_addbytes(c, dat, 2) | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2137 | || !response_addbytes(c, dat, 4)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2199 | || !response_addbytes(c, "\x60\x00", 2) | ^~~~~~~~~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2200 | || !response_addbytes(c, dat, 4)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2216 | || !response_addbytes(c, dat, 2) | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | int response_addbytes(dns_ctx *, unsigned char *, int); | ^ --- error.o --- 2 warnings generated. --- engine.o --- 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] 2238 | || !response_addbytes(c, dat, 4)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2296 | || !response_addbytes(c, dat, 4)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2418 | || !response_addbytes(c, dat, dns_domain_length(dat)-1)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2539 | || !response_addbytes(c, dat, 4)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2561 | || !response_addbytes(c, dat, 2) | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | 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] 2572 | || !response_addbytes(c, dat, dns_domain_length(dat)-1)) { | ^~~ ./ldapdns.h:189:49: note: passing argument to parameter here 189 | int response_addbytes(dns_ctx *, unsigned char *, int); | ^ --- 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] 26 | void inline log(int lev, const char *m, ...); | ^ ./error.h:26:13: note: 'log' is a builtin with type 'double (double)' --- engine.o --- 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] 2591 | dat, c->ttl); | ^~~ engine.c:1778:62: note: passing argument to parameter 'p' here 1778 | 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] 2810 | if (ipv4_in_subnet(lp->str+1, c->ip)) { | ^~~~~~~~~ ./ip4.h:52:48: note: passing argument to parameter 'cidr' here 52 | 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] 2812 | if (!ipv4_null(lp->str+1)) | ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here 20 | 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] 2817 | if (ipv6_in_subnet(lp->str+1, c->ip)) { | ^~~~~~~~~ ./ip6.h:141:48: note: passing argument to parameter 'cidr' here 141 | 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] 2819 | if (!ipv6_null(lp->str+1)) | ^~~~~~~~~ ./ip6.h:20:44: note: passing argument to parameter 'ip' here 20 | 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] 2981 | if (ipv4_in_subnet(lp->str+1, c->ip)) { | ^~~~~~~~~ ./ip4.h:52:48: note: passing argument to parameter 'cidr' here 52 | 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] 2983 | if (!ipv4_null(lp->str+1)) | ^~~~~~~~~ ./ip4.h:20:44: note: passing argument to parameter 'ip' here 20 | 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] 2988 | if (ipv6_in_subnet(lp->str+1, c->ip)) { | ^~~~~~~~~ ./ip6.h:141:48: note: passing argument to parameter 'cidr' here 141 | 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] 2990 | if (!ipv6_null(lp->str+1)) | ^~~~~~~~~ ./ip6.h:20:44: note: passing argument to parameter 'ip' here 20 | 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] 3275 | 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] 3280 | if (ipv6_cidr(x, cidr)) { | ^ ./ip6.h:137:41: note: passing argument to parameter 'str' here 137 | 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] 3282 | bin_cat(res, cidr, 32); | ^~~~ ./bin.h:39:43: note: passing argument to parameter 's' here 39 | 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] 3289 | if (ipv4_cidr(x, cidr)) { | ^ ./ip4.h:62:35: note: passing argument to parameter 'str' here 62 | 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] 3291 | bin_cat(res, cidr, 8); | ^~~~ ./bin.h:39:43: note: passing argument to parameter 's' here 39 | static void inline bin_cat(bin_t p, char *s, int len) { | ^ --- dns.o --- 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] 179 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | 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] 201 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | 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] 239 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | 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] 255 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here 694 | 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] 138 | if (getpeername(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | 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] 158 | if (getsockname(fd, (struct sockaddr *)&sin, (int *)&silen) == -1) { | ^~~~~~~~~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | 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] 196 | r = accept(s, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:681:69: note: passing argument to parameter here 681 | 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] 212 | r = recvfrom(s, buf, len, 0, (struct sockaddr *)&sa, &dummy); | ^~~~~~ /usr/include/sys/socket.h:694:96: note: passing argument to parameter here 694 | 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] 167 | free(tmp); | ^ ./ldapdns.h:179:7: warning: attempt to call free on non-heap object 'tmp' [-Wfree-nonheap-object] 179 | free(tmp); | ^ --- udpserver.o --- 15 warnings generated. --- dns.o --- 11 warnings generated. --- response.o --- 35 warnings generated. --- tcpserver.o --- 23 warnings generated. --- ldapdns.o --- 12 warnings generated. --- engine.o --- 53 warnings generated. --- ldapdns --- --- ldapaxfr --- --- ldapdns --- 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 --- ldapaxfr --- 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_20.pkg [13amd64-weekly-desktop-job-01] Installing daemontools-0.76_20... [13amd64-weekly-desktop-job-01] Extracting daemontools-0.76_20: .......... 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 [13amd64-weekly-desktop-job-01] Installing ucspi-tcp-0.88_3... [13amd64-weekly-desktop-job-01] 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=nobody UID=65534 GID=65534 ===> 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=2025-05-04T10:20:27+0000' 'PKG_NOTE_ports_top_git_hash=57a50b106b87' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=d9c7e0b18ad0' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> 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 Sun May 4 06:20:33 EDT 2025 build time: 00:00:07