-- William Gibson, All Tomorrow's Parties
So Linux has a history of hosed db interfaces. Apache worked around this about ten years ago by including their own SDBM in their distribution.
pkgsrc separates their Apache packages into DSOs. So mod_perl, mod_fastcgi, mod_ssl, etc, are built as separate packages. However, when you compile Apache1 with no SSL, it disables SDBM, so mod_ssl (which requires some sort of DBM) fails.
The PR is here.
My workaround was to do this:
ap-ssl$ vi /usr/pkg/pkgsrc/www/ap-ssl/work/mod_ssl-2.8.31-1.3.41/pkg.sslmod/libssl.module
Search for the first instance of APXS.
Add the following two lines above it:
And ap-ssl will compile happily.