Package: litl
Severity: minor
Usertags: clang-ftbfs
User: pkg-llvm-t...@lists.alioth.debian.org
Tag: patch


Hello,

Using the rebuild infrastructure, your package fails to build with clang
(instead of gcc).

Thanks,
Arthur
diff -Naur litl.orig/litl-0.1.3+dfsg/debian/changelog litl/litl-0.1.3+dfsg/debian/changelog
--- litl.orig/litl-0.1.3+dfsg/debian/changelog	2014-06-02 19:10:22.677217022 -0500
+++ litl/litl-0.1.3+dfsg/debian/changelog	2014-06-02 19:21:53.845229059 -0500
@@ -1,3 +1,11 @@
+litl (0.1.3+dfsg-2) unstable; urgency=low
+
+  * Fix FTBFS with clang instead of gcc
+    - Fixed "function declaration not allowed" error in
+      src/litl_write.c  
+
+ -- Arthur Marble <art...@info9.net>  Mon, 02 Jun 2014 19:21:53 -0500
+
 litl (0.1.3+dfsg-1) unstable; urgency=medium
 
   * New upstream release.
diff -Naur litl.orig/litl-0.1.3+dfsg/debian/patches/clang-ftbfs.diff litl/litl-0.1.3+dfsg/debian/patches/clang-ftbfs.diff 
--- litl.orig/litl-0.1.3+dfsg/debian/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ litl/litl-0.1.3+dfsg/debian/patches/clang-ftbfs.diff	2014-06-02 19:20:03.401227135 -0500
@@ -0,0 +1,27 @@
+--- a/src/litl_write.c
++++ b/src/litl_write.c
+@@ -79,6 +79,12 @@ static void __litl_write_init_var(litl_w
+   pthread_key_create(&trace->index, NULL );
+ }
+ 
++// a jump function is needed 'cause it is not possible to pass args to
++//   the calling function through pthread_once
++void __init(litl_write_trace_t* trace) {
++  __litl_write_init_var(trace);
++}
++
+ /*
+  * Initializes the trace buffer
+  */
+@@ -131,11 +137,6 @@ litl_write_trace_t* litl_write_init_trac
+   // initialize the timing mechanism
+   litl_time_initialize();
+ 
+-  // a jump function is needed 'cause it is not possible to pass args to
+-  //   the calling function through pthread_once
+-  void __init() {
+-    __litl_write_init_var(trace);
+-  }
+   trace->index_once = (pthread_once_t) PTHREAD_ONCE_INIT;
+   pthread_once(&trace->index_once, __init);
+ 
diff -Naur litl.orig/litl-0.1.3+dfsg/debian/patches/series litl/litl-0.1.3+dfsg/debian/patches/series 
--- litl.orig/litl-0.1.3+dfsg/debian/patches/series	2014-06-02 19:10:22.677217022 -0500
+++ litl/litl-0.1.3+dfsg/debian/patches/series	2014-06-02 19:12:53.433219648 -0500
@@ -1 +1,2 @@
 doxygen
+clang-ftbfs.diff

Reply via email to