ports/145769: final link of mail/fetchmail fails libhx509.so undefined reference to MD2_Init etc

Andrew Reilly areilly at bigpond.net.au
Sun Jul 4 02:50:05 UTC 2010


The following reply was made to PR ports/145769; it has been noted by GNATS.

From: Andrew Reilly <areilly at bigpond.net.au>
To: "Matthias Andree" <matthias.andree at gmx.de>
Cc: "Stefan Walter" <stefan at freebsd.org>, "Edwin Groothuis"
 <edwin at freebsd.org>, GNATS <FreeBSD-gnats-submit at 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 at 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



More information about the freebsd-ports-bugs mailing list