Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2010 10:41:40 +0200
From:      "Schweigert, Udo CERT" <Udo.Schweigert@siemens.com>
To:        Andrew Reilly <areilly@bigpond.net.au>
Cc:        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:  <20100720084140.GA25479@alaska.cert.siemens.com>
In-Reply-To: <201007040250.o642o4pL010361@freefall.freebsd.org>
References:  <201007040250.o642o4pL010361@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I think the problem is not related to the base system but to an incorrect
installation of the openssl port. Please try to build openssl from the ports
again with MD2 option enabled (an option which is per default set to "off").

That solved the same issue I had with the mutt-devel port.

(Having installed openssl from the ports results in two different versions of
libcrypto to be available. The "-lcypto" flag to cc/ld then results in loading
that from /usr/local/lib, which may not have the MD2-bits enabled if openssl
was installed with the default options.)

Regards

Udo


On Sun, Jul 04, 2010 at 02:50:04 +0000, Andrew Reilly wrote:
> 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
> _______________________________________________
> freebsd-ports-bugs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
> To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100720084140.GA25479>