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

Hello,

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

Detected this kind of error:
http://clang.debian.net/status.php?version=3.5.0rc1&key=UNDEF_REF

Full build log is available here:
http://clang.debian.net/logs/2014-08-05/libpwiz_3.0.4624-8.1_unstable_clang.log

Thanks,
Arthur

-- System Information:
Debian Release: jessie/sid (unstable)
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-2-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE="en_US.UTF-8"
Shell: /bin/sh linked to /bin/dash
Compiler: Debian clang version 3.5.0-+rc1-2 (tags/RELEASE_35/rc1) (based on 
LLVM 3.5.0)
diff -Naur libpwiz.orig/libpwiz-3.0.4624/debian/changelog libpwiz/libpwiz-3.0.4624/debian/changelog
--- libpwiz.orig/libpwiz-3.0.4624/debian/changelog	2014-08-16 15:01:13.112475903 -0500
+++ libpwiz/libpwiz-3.0.4624/debian/changelog	2014-08-16 15:59:47.520537105 -0500
@@ -1,3 +1,10 @@
+libpwiz (3.0.4624-8.2) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed Visibility does not match previous declaration error
+
+ -- Arthur Marble <art...@info9.net>  Sat, 16 Aug 2014 15:59:47 -0500
+
 libpwiz (3.0.4624-8.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Naur libpwiz.orig/libpwiz-3.0.4624/debian/patches/clang-ftbfs.diff libpwiz/libpwiz-3.0.4624/debian/patches/clang-ftbfs.diff 
--- libpwiz.orig/libpwiz-3.0.4624/debian/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ libpwiz/libpwiz-3.0.4624/debian/patches/clang-ftbfs.diff	2014-08-16 15:58:44.056536000 -0500
@@ -0,0 +1,23 @@
+--- a/libraries/boost_aux/boost/utility/singleton.hpp
++++ b/libraries/boost_aux/boost/utility/singleton.hpp
+@@ -22,7 +22,9 @@
+ #       include <boost/thread/once.hpp>
+ #   endif
+ 
+-#   if defined(__GNUC__) && __GNUC__ >= 4
++#   if defined(__clang__)
++#     define BOOST_UTILITY_SINGLETON_API
++#   elif defined(__GNUC__) && __GNUC__ >= 4
+ #     define BOOST_UTILITY_SINGLETON_API __attribute__ ((visibility("default")))
+ #     pragma GCC visibility push(hidden)
+ #   else
+@@ -204,7 +206,8 @@ namespace boost
+ 
+ } // namespace boost
+ 
+-#   if defined(__GNUC__) && __GNUC__ >= 4
++#   if defined(__clang__)
++#   elif defined(__GNUC__) && __GNUC__ >= 4
+ #     pragma GCC visibility pop
+ #   endif
+ 
diff -Naur libpwiz.orig/libpwiz-3.0.4624/debian/patches/series libpwiz/libpwiz-3.0.4624/debian/patches/series 
--- libpwiz.orig/libpwiz-3.0.4624/debian/patches/series	1969-12-31 18:00:00.000000000 -0600
+++ libpwiz/libpwiz-3.0.4624/debian/patches/series	2014-08-16 15:28:35.676504508 -0500
@@ -0,0 +1 @@
+clang-ftbfs.diff

Reply via email to