LibreSSL + Heimdal Problem

Rafael Henrique da Silva Faria rafaelhfaria at fclar.unesp.br
Thu Apr 13 13:43:41 UTC 2017


I tried with "portmaster -x heimdal security/libressl". The LibreSSL port was recompiled with success. But it was already up to date before.

But yet, if I try to recompile heimdal, with just a simple: "cd /usr/ports/security/heimdal; make clean; make", it will abort.
But in Heimdal configure, it finds the LibreSSL new version lib:

--
===>  Applying FreeBSD patches for heimdal-7.1.0_2
===>   heimdal-7.1.0_2 depends on package: pkgconf>=1.3.0_1 - found
===>   heimdal-7.1.0_2 depends on executable: makeinfo - found
===>   heimdal-7.1.0_2 depends on file: /usr/local/lib/libcrypto.so.41 - found
===>   heimdal-7.1.0_2 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>   heimdal-7.1.0_2 depends on shared library: libreadline.so.6 - found (/usr/local/lib/libreadline.so.6)
===>   heimdal-7.1.0_2 depends on shared library: libdb-5.3.so - found (/usr/local/lib/libdb-5.3.so)
===>  Configuring for heimdal-7.1.0_2
--

So, the LibreSSL is up to date, and the configure finds the "libcrypto.so.41".
But for some reason, in the linking process, the libtool try to link "libhcrypto.so.4" with "libcrypto.so.38", which no longer exists.

-- Compile Error:
libtool: link: cc -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow -DINET6 -O2 -pipe -march=nocona -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -Wl,-rpath -Wl,/usr/local/lib/heimdal:/usr/lib -Wl,-rpath -Wl,/usr/local/lib -fstack-protector -o .libs/otptest otptest.o  -L/usr/local/lib ./.libs/libotp.so -lpthread -Wl,-rpath -Wl,/usr/local/lib/heimdal
/usr/bin/ld: warning: libcrypto.so.38, needed by /usr/local/lib/heimdal/libhcrypto.so.4, not found (try using -rpath or -rpath-link)
/usr/local/lib/heimdal/libhcrypto.so.4: undefined reference to `EVP_DigestInit'
...
/usr/local/lib/heimdal/libhcrypto.so.4: undefined reference to `EVP_MD_block_size'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[4]: stopped in /var/ports/usr/ports/security/heimdal/work/heimdal-7.1.0/lib/otp
*** Error code 1
--

So, I just want to know, why is libtool trying to link with libcrypto.so.38, and not with libcrypto.so.41... where is libtool getting the 38 version of that file?

Thanks for your reply.

--
Rafael Henrique da Silva Faria
Grupo de Sistemas e Redes

Diretoria Técnica de Informática
Faculdade de Ciências e Letras - Campus de Araraquara
UNESP - Universidade Estadual Paulista "JÚLIO DE MESQUITA FILHO"


More information about the freebsd-ports mailing list