From owner-freebsd-apache@FreeBSD.ORG Tue Mar 5 22:08:36 2013 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3BDC0192 for ; Tue, 5 Mar 2013 22:08:36 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id EDB83F96 for ; Tue, 5 Mar 2013 22:08:35 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id 3226F208F3; Tue, 5 Mar 2013 23:08:32 +0100 (CET) Message-ID: <51366CE0.70502@FreeBSD.org> Date: Tue, 05 Mar 2013 23:08:32 +0100 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: jau@iki.fi Subject: Re: Apache22 build fails References: <201303050655.r256tjs3002193@jau.iki.fi> In-Reply-To: <201303050655.r256tjs3002193@jau.iki.fi> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: apache@freebsd.org X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2013 22:08:36 -0000 On 2013-03-05 07:55, Jukka A. Ukkonen wrote: > > Hello, > In case you have not noticed apache22 seems to fail with this error > report... > > /usr/local/share/apr/build-1/libtool --silent --mode=link cc -g -O2 -pipe > -I/usr/local/include -fno-strict-aliasing -L/usr/lib -L/usr/local/lib/db42 > -Wl,-rpath=/usr/local/lib -L/usr/local/lib -pthread -o htpasswd htpasswd.lo > -lm -L/usr/local/lib -Wl,-R/usr/local/lib -lpcre /usr/local/lib/libaprutil-1.la > -ldb-4.2 -lgdbm -lc -lexpat -liconv /usr/local/lib/libapr-1.la -lcrypt -pthread > -lcrypt /usr/local/share/apr/build-1/libtool --silent --mode=link cc -g -O2 > -pipe -I/usr/local/include -fno-strict-aliasing -L/usr/lib -L/usr/local/lib/db42 > -Wl,-rpath=/usr/local/lib -L/usr/local/lib -pthread -o htcacheclean > htcacheclean.lo -lm -L/usr/local/lib -Wl,-R/usr/local/lib -lpcre > /usr/local/lib/libaprutil-1.la -ldb-4.2 -lgdbm -lc -lexpat -liconv > /usr/local/lib/libapr-1.la -lcrypt -pthread > /usr/local/share/apr/build-1/libtool --silent --mode=link cc -g -O2 -pipe > -I/usr/local/include -fno-strict-aliasing -L/usr/lib -L/usr/local/lib/db42 > -Wl,-rpath=/usr/local/lib -L/usr/local/lib -pthread -o ab ab.lo -lm > -L/usr/local/lib -Wl,-R/usr/local/lib -lpcre /usr/local/lib/libaprutil-1.la > -ldb-4.2 -lgdbm -lc -lexpat -liconv /usr/local/lib/libapr-1.la -lcrypt > -pthread -lssl -lcrypto ab.o: In function `main': > /usr/ports/www/apache22/work/httpd-2.2.24/support/ab.c:2246: undefined > reference to `TLSv1_2_client_method' > /usr/ports/www/apache22/work/httpd-2.2.24/support/ab.c:2244: undefined > reference to `TLSv1_1_client_method' > *** [ab] Error code 1 > 1 error > *** [all-recursive] Error code 1 > > > The most peculiar thing about this is that the resident libssl.so under > /usr/local/lib definitely contains both of the functions that are above > reported as undefined. > > My first guess for the reason for this error is having -L/usr/lib before > -L/usr/local/lib in the libtool argument list. So, assuming that ld gets > its arguments in the same order as they were passed to libtool, it will > find an older version of libssl in /usr/lib and try to load that instead > of the more recent version in /usr/local/lib. The default system version > of libssl does not contain the functions mentioned in the error messages. > > I hope this helps. > > > Cheers, > // jau > .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. > / Jukka A. Ukkonen, Oxit Ltd, Finland > /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 > / Internet: Jukka.Ukkonen(a)Oxit.Fi > / Internet: jau(a)iki.fi > v > .--- .- ..- ...-.- .. -.- .. .-.-.- ..-. .. > + + + + My opinions are mine and mine alone, not my employers. + + + + > _______________________________________________ > freebsd-apache@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-apache > To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.org" > > Hi Jukka, you are right but changing this only for the ab utility is tricky. I just committed a workaround. -- Regards, olli