Date: Sun, 4 Jul 2010 02:50:04 GMT From: Andrew Reilly <areilly@bigpond.net.au> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/145769: final link of mail/fetchmail fails libhx509.so undefined reference to MD2_Init etc Message-ID: <201007040250.o642o4pL010361@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/145769; it has been noted by GNATS. From: Andrew Reilly <areilly@bigpond.net.au> To: "Matthias Andree" <matthias.andree@gmx.de> Cc: "Stefan Walter" <stefan@freebsd.org>, "Edwin Groothuis" <edwin@freebsd.org>, GNATS <FreeBSD-gnats-submit@freebsd.org> Subject: Re: ports/145769: final link of mail/fetchmail fails libhx509.so undefined reference to MD2_Init etc Date: Sun, 4 Jul 2010 12:43:04 +1000 On Fri, 25 Jun 2010 13:26:50 +0200 "Matthias Andree" <matthias.andree@gmx.de> wrote: > Andrew Reilly wrote on 2010-06-25: > > > Who knows how dynamic linking works? I don't but I've tracked down the > > fact that the symbols missing from libhx509.so (MD2_Init etc) *are* > > defined by /lib/libcrypto.so, but libhx509.so doesn't show that > > dependency when you run ldd on it. I'm afraid that I don't know how to > > change that situation, but I believe that it would make a difference to > > those builds. > > Either it's an ELF field that gets listed as "NEEDED" with readelf -d > libhx509.so, > or it's the <dlfcn.h> stuff with dlopen(3), dlclose(3), dlerror(3) and > dlsym(3). > See patch attached to bin/147175 just now. The build of libhx509's shared lib needs to be told about libcrypto.so by adding DPADD and LDADD lines to the Makefile. Works for me! Cheers, -- Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007040250.o642o4pL010361>