Trying to make postfix with SASL and MYSQL, but "file: could not find any valid magic files!" is stopping make?

Hello!

My ancient freebsd13 mail host stop being able to receive emails this week, so the long delayed upgrade to 15-RELEASE has been ongoing is sort of panic mode..

When I try to compile postfix to support mysql and sasl I'm getting the following errors that I don't understand.. (be patient with me - an accident a few years ago left me a little brain damaged to my undending dissapointment..)
[root@mailhost:/usr/ports/mail/postfix]# make
===> License EPL IPL10 accepted by the user
===> postfix-3.11.3,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by postfix-3.11.3,1 for building
===> Extracting for postfix-3.11.3,1
===> License EPL IPL10 accepted by the user
===> postfix-3.11.3,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by postfix-3.11.3,1 for building
=> SHA256 Checksum OK for postfix/postfix-3.11.3.tar.gz.
tar: Failed to set default locale
===> Patching for postfix-3.11.3,1
===> Applying extra patch /basejail/usr/ports/mail/postfix/files/extra-patch-blocklistd
===> Applying FreeBSD patches for postfix-3.11.3,1 from /basejail/usr/ports/mail/postfix/files
===> postfix-3.11.3,1 depends on file: /usr/local/lib/libcrypto.so.12 - found
===> postfix-3.11.3,1 depends on shared library: libcdb.sofile: could not find any valid magic files! (No such file or directory)
- not found
===> postfix-3.11.3,1 depends on shared library: libcdb.sofile: could not find any valid magic files! (No such file or directory)
- not found
*** Error code 1

Stop.
make[2]: stopped making "build-depends lib-depends configure-message apply-slist run-autotools-fixup do-configure" in /basejail/usr/ports/mail/postfix
*** Error code 1

Stop.
make[1]: stopped making "/var/ports/basejail/usr/ports/mail/postfix/work-default/.stage_done.postfix._usr_local" in /basejail/usr/ports/mail/postfix
*** Error code 1

Stop.
make: stopped making "all" in /basejail/usr/ports/mail/postfix
[root@mailhost:/usr/ports/mail/postfix]# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (73 candidates): 100%
Processing candidates (73 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
[root@mailhost:/usr/ports/mail/postfix]# uname -a
FreeBSD mailhost 15.0-RELEASE-p5 FreeBSD 15.0-RELEASE-p5 GENERIC amd64
[root@mailhost:/usr/ports/mail/postfix]#

I have thrown myself at this for some time now and while my MX piles up mail, I just can't seem to figure this out..
[root@mailhost:/usr/lib]# pkg info|grep cdb
cdb-20251021 Fast lookup database library & utilities
libcdb-g2020082801 Constant database library
[root@mailhost:/usr/lib]#
[root@mailhost:/usr/lib]# ls -l /usr/local/lib/libcdb*
-rw-r--r-- 1 root wheel 66612 May 23 00:41 /usr/local/lib/libcdb.a
lrwxr-xr-x 1 root wheel 15 May 23 00:41 /usr/local/lib/libcdb.so -> libcdb.so.1.0.0
lrwxr-xr-x 1 root wheel 15 May 23 00:41 /usr/local/lib/libcdb.so.1 -> libcdb.so.1.0.0
-rwxr-xr-x 1 root wheel 52448 May 23 00:41 /usr/local/lib/libcdb.so.1.0.0
[root@mailhost:/usr/lib]#

I'm just sitting here repeating myself over and over and getting headache - time to reach out to those who know!

I'm 100% certain this is something stupid, but my broken brain isn't doing me any favors today..

Thanks so much for any suggestions!

Oh, I can get the static postfix package to install, but I need BOTH sasl and mysql support, and as I sort of recall, doing a make config, selecting mysql and sasl and "make install" was all I did on the vesion 13 host.. (oh, then locked the package. Worked for over a decade!!)

[root@mailhost:/usr/lib]# freebsd-version
15.0-RELEASE-p5
[root@mailhost:/usr/lib]# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (73 candidates): 100%
Processing candidates (73 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
[root@mailhost:/usr/lib]#
 
Back
Top