[clamav-users] Compiling error: /usr/lib/libxml2.so: error adding symbols: File in wrong format
Shawn Webb
swebb at sourcefire.com
Tue May 20 14:53:45 UTC 2014
On Mon, May 19, 2014 at 2:52 PM, MarkusGMX <Markus.Egg at gmx.at> wrote:
> Am 16/05/14 17:57, schrieb Alexander Tampermeier:
>
> Sadly, the libxml2-error still persists in v0.98.4-rc1.
>> Hope, it can be fixed soon.
>>
> [...]
>
> :-(
> I am also waiting for a bugfix for the build process.
>
>
> ME
Hey Markus and Alexander,
I have a candidate patch that applies to 0.98.4-rc1. Can you test the
candidate patch pasted here: http://ix.io/cvE
The patch is also attached to this email.
Thanks,
Shawn
-------------- next part --------------
diff --git a/configure b/configure
index 96f9240..2b7b5c5 100755
--- a/configure
+++ b/configure
@@ -16679,15 +16679,20 @@ then
as_fn_error $? "OpenSSL not found." "$LINENO" 5
fi
-SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
-SSL_LIBS="-lssl -lcrypto"
-SSL_CPPFLAGS="-I$LIBSSL_HOME/include"
-
save_LDFLAGS="$LDFLAGS"
-LDFLAGS="-L$LIBSSL_HOME/lib $SSL_LIBS"
-
save_CFLAGS="$CFLAGS"
-CFLAGS="$SSL_CPPFLAGS"
+
+if test "$LIBSSL_HOME" != "/usr"; then
+ SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
+ SSL_CPPFLAGS="-I$LIBSSL_HOME/include"
+ LDFLAGS="-L$LIBSSL_HOME/lib $SSL_LIBS"
+ CFLAGS="$SSL_CPPFLAGS"
+else
+ SSL_LDFLAGS=""
+ SSL_CPPFLAGS=""
+fi
+
+SSL_LIBS="-lssl -lcrypto"
have_ssl="no"
have_crypto="no"
diff --git a/m4/reorganization/libs/openssl.m4 b/m4/reorganization/libs/openssl.m4
index e37c928..e78f8c0 100644
--- a/m4/reorganization/libs/openssl.m4
+++ b/m4/reorganization/libs/openssl.m4
@@ -22,15 +22,20 @@ then
AC_MSG_ERROR([OpenSSL not found.])
fi
-SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
-SSL_LIBS="-lssl -lcrypto"
-SSL_CPPFLAGS="-I$LIBSSL_HOME/include"
-
save_LDFLAGS="$LDFLAGS"
-LDFLAGS="-L$LIBSSL_HOME/lib $SSL_LIBS"
-
save_CFLAGS="$CFLAGS"
-CFLAGS="$SSL_CPPFLAGS"
+
+if test "$LIBSSL_HOME" != "/usr"; then
+ SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
+ SSL_CPPFLAGS="-I$LIBSSL_HOME/include"
+ LDFLAGS="-L$LIBSSL_HOME/lib $SSL_LIBS"
+ CFLAGS="$SSL_CPPFLAGS"
+else
+ SSL_LDFLAGS=""
+ SSL_CPPFLAGS=""
+fi
+
+SSL_LIBS="-lssl -lcrypto"
have_ssl="no"
have_crypto="no"
More information about the clamav-users
mailing list