Date: Tue, 05 Mar 2013 23:08:32 +0100 From: Olli Hauer <ohauer@FreeBSD.org> To: jau@iki.fi Cc: apache@freebsd.org Subject: Re: Apache22 build fails Message-ID: <51366CE0.70502@FreeBSD.org> In-Reply-To: <201303050655.r256tjs3002193@jau.iki.fi> References: <201303050655.r256tjs3002193@jau.iki.fi>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51366CE0.70502>