[clamav-users] Version 0.98.3 compile failure on Solaris
Shawn Webb
swebb at sourcefire.com
Thu May 8 15:24:31 UTC 2014
On Thu, May 8, 2014 at 11:04 AM, Lars Hecking <
lhecking at users.sourceforge.net> wrote:
>
> The configure code checking for the newly required openssl library is
> broken.
>
> [...]
> configure:16590: checking for OpenSSL installation
> configure:16632: checking for SSL_library_init in -lssl
> configure:16657: gcc -o conftest -I/tmp/ssl/ssl/include
> -L/tmp/ssl/ssl/lib -lss
> l -lcrypto conftest.c -lssl -lnsl -lsocket >&5
> Undefined first referenced
> symbol in file
> ERR_clear_error /tmp/ssl/ssl/lib/libssl.a(ssl_cert.o)
> SHA512_Transform /tmp/ssl/ssl/lib/libssl.a(s3_cbc.o)
> [many more deleted]
>
> The reason for the failure is the second instance of -lssl, which just
> like
> the first instance requires augmentation with -lcrypto. Checking where it
> comes from, I figured that the following patch to
> m4/reorganization/libs/openssl.m4
> works around the failure, but I haven't the time to rewrite the test
> properly.
>
> --%<--
> --- openssl.m4.dist 2014-05-06 19:39:56.000000000 +0100
> +++ openssl.m4 2014-05-08 15:23:22.520238757 +0100
> @@ -35,7 +35,7 @@
> have_ssl="no"
> have_crypto="no"
>
> -AC_CHECK_LIB([ssl], [SSL_library_init], [have_ssl="yes"],
> [AC_MSG_ERROR([Your OpenSSL installation is misconfigured or missing])])
> +AC_CHECK_LIB([ssl], [SSL_library_init], [have_ssl="yes"],
> [AC_MSG_ERROR([Your OpenSSL installation is misconfigured or
> missing])],[-lcrypto])
>
> AC_CHECK_LIB([crypto], [EVP_EncryptInit], [have_crypto="yes"],
> [AC_MSG_ERROR([Your OpenSSL installation is misconfigured or missing])])
>
> --%<--
>
> This is most likely not a problem on newer platforms with a more
> intelligent
> linker.
>
Hey Lars,
Thanks for reporting this issue and especially providing a candidate patch.
I'll review it and do some additional testing soon. I'll get back to you
once testing is done.
Thanks,
Shawn
More information about the clamav-users
mailing list