apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <mar...@apache.org>
Subject [PATCH] apr-util: SSL detection (static libs) incomplete?
Date Thu, 29 Mar 2007 12:05:42 GMT
Hi everyboby,

I tried to build httpd-2.3-dev against a static SSL lib today and was
astonished to see apr-util's configure fail when trying to detect
SSL_accept().

Thinking it might be a missing reference to -lz (because my libssl is
built with compresseion enabled) I checked the config log and found
that, after the test of -lcrypto succeeded, the conftest prog
(referencing SSL_accept()) is linked against -lssl only, without a
reference to -lcrypto.

That will be successful in the shared lib case, because libssl.so
automatically references libcrypto.so as a dependency, but for
static libs it simply results in unresolved symbols.

The patch that I attach uses the 5th argument to AC_CHECK_LIB() which
allows for adding additional libraries for the library linking test.

This patch should work for both static and shared libs (because the
-lcrypto test appeared earlier, and succeeded).

   Martin
-- 
<Martin.Kraemer@Fujitsu-Siemens.com>        |     Fujitsu Siemens
http://www.fujitsu-siemens.com/imprint.html | 81730  Munich,  Germany

Mime
View raw message