https://bz.apache.org/bugzilla/show_bug.cgi?id=58944
Bug ID: 58944
Summary: configure script breaks openssl static library
dependencies by removing duplicates from LIBS
Product: Apache httpd-2
Version: 2.4.18
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
Assignee: [email protected]
Reporter: [email protected]
Trying to compile httpd with openssl with zlib for TLS compression support
(yes, I'm aware of CRIME and consider it no threat to my application), the
httpd configure script always bombs out on the test compiles with openssl.
Closer inspection reveals that the required openssl libs are correctly
retrieved in line 25273 of the configure script:
ap_openssl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l
--silence-errors openssl`"
yielding:
-lssl -ldl -lz -lcrypto -ldl -lz
which would work, but then the script strips duplicates from libs, yielding
-lssl -ld -lz -lcrypto
which will fail to link since the dependencies inside lcrypto cannot be
resolved.
The script code in question appears buggy, too:
if test "x$MOD_LDFLAGS" = "x"; then
test "x$silent" != "xyes" && echo " setting MOD_LDFLAGS to
\"$ap_openssl_libs\""
MOD_LDFLAGS="$ap_openssl_libs"
else
apr_addto_bugger="$ap_openssl_libs"
for i in $apr_addto_bugger; do
apr_addto_duplicate="0"
for j in $MOD_LDFLAGS; do
if test "x$i" = "x$j"; then
apr_addto_duplicate="1"
break
fi
done
if test $apr_addto_duplicate = "0"; then
test "x$silent" != "xyes" && echo " adding \"$i\" to MOD_LDFLAGS"
MOD_LDFLAGS="$MOD_LDFLAGS $i"
fi
done
fi
If the variable in question is initially empty, duplicates are _not_ stripped
from the new value it is set to.
Is this actually a bug in GNU autoconf...? Or is it just not being used
correctly?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]