tags 673266 + patch
thanks

Samuel Thibault <sthiba...@debian.org> writes:

> llvm-2.9 currently FTBFS in sid:
>
> /tmp/buildd/llvm-2.9-2.9+dfsg/lib/ExecutionEngine/JIT/Intercept.cpp:69:67: 
> error: 'lseek64' was not declared in this scope
>
> This is most probably due to the switch to gcc 4.7.

The attached patch fixes this by including <unistd.h>.

Vincent

diff -Nru llvm-2.9-2.9+dfsg/debian/changelog llvm-2.9-2.9+dfsg/debian/changelog
--- llvm-2.9-2.9+dfsg/debian/changelog	2012-03-10 18:29:05.000000000 +0100
+++ llvm-2.9-2.9+dfsg/debian/changelog	2012-05-18 08:11:38.000000000 +0200
@@ -1,3 +1,11 @@
+llvm-2.9 (2.9+dfsg-6) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/patches/0035-gcc-4.7.patch: Fix FTBFS with gcc-4.7.
+    (Closes: #673266)
+
+ -- Vincent Legout <vleg...@debian.org>  Fri, 18 May 2012 08:11:35 +0200
+
 llvm-2.9 (2.9+dfsg-5) unstable; urgency=low
 
   * llvm-ld-2.9 generated broken wrapper scripts.
diff -Nru llvm-2.9-2.9+dfsg/debian/patches/0035-gcc-4.7.patch llvm-2.9-2.9+dfsg/debian/patches/0035-gcc-4.7.patch
--- llvm-2.9-2.9+dfsg/debian/patches/0035-gcc-4.7.patch	1970-01-01 01:00:00.000000000 +0100
+++ llvm-2.9-2.9+dfsg/debian/patches/0035-gcc-4.7.patch	2012-05-18 08:14:12.000000000 +0200
@@ -0,0 +1,14 @@
+---
+ Intercept.cpp |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/lib/ExecutionEngine/JIT/Intercept.cpp	2012-05-17 16:11:46.956180361 +0200
++++ b/lib/ExecutionEngine/JIT/Intercept.cpp	2012-05-17 16:14:35.256184996 +0200
+@@ -52,6 +52,7 @@
+ #include <sys/stat.h>
+ #endif
+ #include <fcntl.h>
++#include <unistd.h>
+ /* 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.

Reply via email to