From owner-freebsd-apache@FreeBSD.ORG Tue Mar 5 06:56:03 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 6183CC96 for ; Tue, 5 Mar 2013 06:56:03 +0000 (UTC) (envelope-from jau@jau.iki.fi) Received: from jau.iki.fi (ip193-64-26-117.cust.eunet.fi [193.64.26.117]) by mx1.freebsd.org (Postfix) with ESMTP id BA0223D5 for ; Tue, 5 Mar 2013 06:56:01 +0000 (UTC) Received: from jau.iki.fi (localhost [127.0.0.1]) by jau.iki.fi (8.14.6/8.14.5) with ESMTP id r256tjWw002197 for ; Tue, 5 Mar 2013 08:55:50 +0200 (EET) (envelope-from jau@jau.iki.fi) Received: (from jau@localhost) by jau.iki.fi (8.14.6/8.14.5/Submit) id r256tjs3002193 for apache@freebsd.org; Tue, 5 Mar 2013 08:55:45 +0200 (EET) (envelope-from jau) Message-Id: <201303050655.r256tjs3002193@jau.iki.fi> Subject: Apache22 build fails To: apache@freebsd.org Date: Tue, 5 Mar 2013 08:55:45 +0200 (EET) From: jau@iki.fi (Jukka A. Ukkonen) Sender: jau@iki.fi Latin-Date: dies Martis V Martie a.d. MMXIII Organization: Private person OS-Platform: FreeBSD Phone: +358-9-6215280 (home) / +358-500-606671 (gsm) Content-Conversion: prohibited X-Mailer: ELM [version 2.4 PL25+pgp] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (jau.iki.fi [127.0.0.1]); Tue, 05 Mar 2013 08:55:51 +0200 (EET) X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: jau@iki.fi 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 06:56:03 -0000 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. + + + +