Created attachment 221507 [details] Full make and showconfig output Building net/samba413 fails with configure complaining that it cannot find zlib. The port net/samba412 is affected as well. OS is FreeBSD 12.2-RELEASE-p2. Full make and showconfig output is attached. The relevant part: thomas@hostname /usr/ports/net/samba413 % sudo make [...] Dynconfig[NCALRPCDIR]: : '/var/run/samba4/ncalrpc' Dynconfig[CONFIGFILE]: : '/usr/local/etc/smb4.conf' Dynconfig[LMHOSTSFILE]: : '/usr/local/etc/lmhosts' Dynconfig[SMB_PASSWD_FILE]: : '/var/db/samba4/private/smbpasswd' Checking for 'zlib' : not found The configuration failed (complete log in /usr/ports/net/samba413/work/samba-4.13.1/bin/config.log) ===> Script "configure" failed unexpectedly. Please report the problem to timur@FreeBSD.org [maintainer] and attach the "/usr/ports/net/samba413/work/samba-4.13.1/bin/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/samba413 *** Error code 1 Stop. make: stopped in /usr/ports/net/samba413
Extra info: thomas@hostname /usr/ports/net/samba413 % tail -n 15 work/samba-4.13.1/bin/config.log Dynconfig[LMHOSTSFILE]: '/usr/local/etc/lmhosts' --------------------------------------------------------------------------------- Dynconfig[SMB_PASSWD_FILE]: '/var/db/samba4/private/smbpasswd' --------------------------------------------------------------------------------- Checking for 'zlib' ['/usr/local/bin/pkg-config', '--cflags', '--libs', 'zlib'] err: Package zlib was not found in the pkg-config search path. Perhaps you should add the directory containing `zlib.pc' to the PKG_CONFIG_PATH environment variable Package 'zlib', required by 'virtual:world', not found not found from /usr/ports/net/samba413/work/samba-4.13.1: The configuration failed
Update: It looks like the samba ports are innocent. On my system is no /usr/libdata/pkgconfig/zlib.pc. Actually, my system is missing the whole /usr/libdata/pkgconfig directory for some reason.
Fetching the pkgconfig directory from a base.txz archive fixed the issue. Sorry for bothering you. I will close the ticket.