From: Michael Tremer Date: Thu, 5 Mar 2015 11:54:22 +0000 (+0100) Subject: clamav: Fix compiling X-Git-Tag: v2.17-core89~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6bea9be4f4d2f0f5399e377271f5e9bbe0ca75c6;p=people%2Fstevee%2Fipfire-2.x.git clamav: Fix compiling glibc headers were not correctly included --- diff --git a/lfs/clamav b/lfs/clamav index 43b5060734..2e07ed0344 100644 --- a/lfs/clamav +++ b/lfs/clamav @@ -81,6 +81,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/clamav/llvm-glibc.patch cd $(DIR_APP) && ./configure \ --prefix=/usr \ --sysconfdir=/var/ipfire/clamav \ diff --git a/src/patches/clamav/llvm-glibc.patch b/src/patches/clamav/llvm-glibc.patch new file mode 100644 index 0000000000..67dbdd7d8b --- /dev/null +++ b/src/patches/clamav/llvm-glibc.patch @@ -0,0 +1,12 @@ +Index: clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp +=================================================================== +--- clamav-0.97.3.orig/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp ++++ clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp +@@ -52,6 +52,7 @@ static void runAtExitHandlers() { + #include + #endif + #include ++#include + /* stat functions are redirecting to __xstat with a version number. On x86-64 + * linking with libc_nonshared.a and -Wl,--export-dynamic doesn't make 'stat' + * available as an exported symbol, so we have to add it explicitly.