Apache22 build fails

Jukka A. Ukkonen jau at iki.fi
Tue Mar 5 06:56:03 UTC 2013


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. + + + +


More information about the freebsd-apache mailing list