Package: deborphan
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.4.2&key=UNDEF_REF

Full build log is available here:
http://clang.debian.net/logs/2014-06-16/deborphan_1.7.28.8_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 deborphan.orig/deborphan-1.7.28.8/debian/changelog deborphan/deborphan-1.7.28.8/debian/changelog
--- deborphan.orig/deborphan-1.7.28.8/debian/changelog	2014-08-06 14:14:13.522940371 -0500
+++ deborphan/deborphan-1.7.28.8/debian/changelog	2014-08-06 15:11:41.995000425 -0500
@@ -1,3 +1,12 @@
+deborphan (1.7.28.9) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed undefined reference error in
+      include/deborphan.h
+      src/xalloc.c
+
+ -- Arthur Marble <art...@info9.net>  Wed, 06 Aug 2014 15:11:41 -0500
+
 deborphan (1.7.28.8) unstable; urgency=low
 
   * Team upload.
diff -Naur deborphan.orig/deborphan-1.7.28.8/patches/clang-ftbfs.diff deborphan/deborphan-1.7.28.8/patches/clang-ftbfs.diff 
--- deborphan.orig/deborphan-1.7.28.8/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ deborphan/deborphan-1.7.28.8/patches/clang-ftbfs.diff	2014-08-06 15:09:37.370998254 -0500
@@ -0,0 +1,51 @@
+--- a/include/deborphan.h
++++ b/include/deborphan.h
+@@ -172,8 +172,8 @@ void print_usage();
+ int string_to_priority(const char *priority);
+ const char *priority_to_string(int priority);
+ char *sstrsep(char **str, int c);
+-inline void strstripchr(char *s, int c);
+-inline unsigned int strhash(const char *line);
++void strstripchr(char *s, int c);
++unsigned int strhash(const char *line);
+ 
+ /* keep.c */
+ dep *readkeep(const char *kfile);
+--- a/src/xalloc.c
++++ b/src/xalloc.c
+@@ -35,7 +35,7 @@ void free();
+ #   define EXIT_FAILURE 1
+ #endif /* STDC_HEADERS */
+ 
+-inline void *
++void *
+ xrealloc(void *ptr, size_t size)
+ {
+     void *t;
+@@ -44,7 +44,7 @@ xrealloc(void *ptr, size_t size)
+     return t;
+ }
+ 
+-inline void *
++void *
+ xcalloc(size_t nmemb, size_t size)
+ {
+     void *t;
+@@ -55,7 +55,7 @@ xcalloc(size_t nmemb, size_t size)
+     return t;
+ }
+ 
+-inline void *
++ void *
+ xmalloc(size_t size)
+ {
+     void *t;
+@@ -66,7 +66,7 @@ xmalloc(size_t size)
+     return t;
+ }
+ 
+-inline char *
++char *
+ xstrdup(const char *s)
+ {
+     char *t;
diff -Naur deborphan.orig/deborphan-1.7.28.8/patches/series deborphan/deborphan-1.7.28.8/patches/series 
--- deborphan.orig/deborphan-1.7.28.8/patches/series	1969-12-31 18:00:00.000000000 -0600
+++ deborphan/deborphan-1.7.28.8/patches/series	2014-08-06 14:14:59.602941174 -0500
@@ -0,0 +1 @@
+clang-ftbfs.diff

Reply via email to