Have been unable to build on FreeBSD 11.2-RELEASE since the fix for bug 231647 was committed. The exact same issue as described in comment 4 (bug #231647, comment #4). It's listed as fixed but still does not work for me. Tried building with both poudriere and straight from ports but both give the same error. uname -a FreeBSD example.com 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #1: Thu Sep 27 21:16:17 UTC 2018 user@example.com:/usr/obj/usr/src/sys/EXAMPLE amd64 > ===> Building for cyrus-sasl-saslauthd-2.1.26_3 > cd /usr/ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.26/include && make > cd /usr/ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.26/sasldb && make > ar cru .libs/libsasldb.a db_ndbm.o allockey.o > cd /usr/ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.26/saslauthd && make > make all-am > cc -O -pipe -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing -L/usr/local/lib -fstack-protector -L/usr/lib -o saslauthd mechanisms.o auth_dce.o auth_getpwent.o auth_krb5.o auth_krb4.o auth_pam.o auth_rimap.o auth_httpform.o auth_shadow.o auth_sia.o auth_sasldb.o lak.o auth_ldap.o cache.o cfile.o krbtf.o utils.o ipc_unix.o ipc_doors.o saslauthd-main.o md5.o -L/usr/lib -L/usr/lib -lgssapi -lgssapi_krb5 -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lwind -lheimbase -lroken -lcrypt -pthread -lcrypt ../sasldb/.libs/libsasldb.al -lpam -lldap -llber -lcrypto > lak.o: In function `lak_check_hashed': > lak.c:(.text+0x34fe): undefined reference to `EVP_MD_CTX_new' > lak.c:(.text+0x351a): undefined reference to `EVP_ENCODE_CTX_new' > lak.c:(.text+0x35a0): undefined reference to `EVP_ENCODE_CTX_free' > lak.c:(.text+0x361f): undefined reference to `EVP_MD_CTX_free' > lak.c:(.text+0x366e): undefined reference to `EVP_ENCODE_CTX_free' > lak.c:(.text+0x3678): undefined reference to `EVP_ENCODE_CTX_free' > lak.c:(.text+0x368f): undefined reference to `EVP_MD_CTX_free' > cc: error: linker command failed with exit code 1 (use -v to see invocation) > *** Error code 1 > > Stop. > make[3]: stopped in /usr/ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.26/saslauthd > *** Error code 1 > > Stop. > make[2]: stopped in /usr/ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.26/saslauthd > *** Error code 1 > > Stop. > make[1]: stopped in /usr/ports/security/cyrus-sasl2-saslauthd > *** Error code 1 > > Stop. > make: stopped in /usr/ports/security/cyrus-sasl2-saslauthd
Looks like it's because they didn't use if openssl > 1.1.0 then use the new code, else use old code. I will try to work on it
(In reply to Nathan from comment #1) What options did you use, default I didn't get an error and what version of openssl
(In reply to Nathan from comment #2) test:~ # openssl version OpenSSL 1.0.2o-freebsd 27 Mar 2018 # Options for cyrus-sasl-2.1.26_13 _OPTIONS_READ=cyrus-sasl-2.1.26_13 _FILE_COMPLETE_OPTIONS_LIST=ALWAYSTRUE AUTHDAEMOND DOCS KEEP_DB_OPEN OBSOLETE_CRAM_ATTR BDB1 BDB GDBM ANONYMOUS CRAM DIGEST LOGIN NTLM OTP PLAIN SCRAM OPTIONS_FILE_UNSET+=ALWAYSTRUE OPTIONS_FILE_SET+=AUTHDAEMOND OPTIONS_FILE_UNSET+=DOCS OPTIONS_FILE_UNSET+=KEEP_DB_OPEN OPTIONS_FILE_SET+=OBSOLETE_CRAM_ATTR OPTIONS_FILE_SET+=BDB1 OPTIONS_FILE_UNSET+=BDB OPTIONS_FILE_UNSET+=GDBM OPTIONS_FILE_SET+=ANONYMOUS OPTIONS_FILE_UNSET+=CRAM OPTIONS_FILE_SET+=DIGEST OPTIONS_FILE_SET+=LOGIN OPTIONS_FILE_UNSET+=NTLM OPTIONS_FILE_UNSET+=OTP OPTIONS_FILE_SET+=PLAIN OPTIONS_FILE_UNSET+=SCRAM # Options for cyrus-sasl-saslauthd-2.1.26_3 _OPTIONS_READ=cyrus-sasl-saslauthd-2.1.26_3 _FILE_COMPLETE_OPTIONS_LIST=DOCS HTTPFORM OPENLDAP OPENLDAP_SASL GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT BDB1 BDB GDBM OPTIONS_FILE_UNSET+=DOCS OPTIONS_FILE_UNSET+=HTTPFORM OPTIONS_FILE_SET+=OPENLDAP OPTIONS_FILE_UNSET+=OPENLDAP_SASL OPTIONS_FILE_SET+=GSSAPI_BASE OPTIONS_FILE_UNSET+=GSSAPI_HEIMDAL OPTIONS_FILE_UNSET+=GSSAPI_MIT OPTIONS_FILE_SET+=BDB1 OPTIONS_FILE_UNSET+=BDB OPTIONS_FILE_UNSET+=GDBM
Try patch on bug#231871 I believe that fixed it. Built for me
(In reply to Nathan from comment #4) with older openssl, openssl 1.1.0 and 1.1.1
(In reply to Nathan from comment #4) Yes, that patch fixes it for me as well. Thank you.
Resolved (but PR not referenced) in ports r481315
This bug has returned for me. The poudriere log of the failed build is here: https://www.jetcafe.org/dave/cyrus.log I think the referenced patch was removed on HEAD as of 5/6/2019. (I'm never sure whether to attach to a related bug or open a new bug. I'll try this first.)