Package: freecdb
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/freecdb_0.75_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 freecdb.orig/freecdb-0.75/debian/changelog freecdb/freecdb-0.75/debian/changelog
--- freecdb.orig/freecdb-0.75/debian/changelog	2014-08-07 16:01:26.596557008 -0500
+++ freecdb/freecdb-0.75/debian/changelog	2014-08-07 16:04:30.076560204 -0500
@@ -1,3 +1,11 @@
+freecdb (0.76) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed undefined reference error in
+      cdbmake.c
+  
+ -- Arthur Marble <art...@info9.net>  Thu, 07 Aug 2014 16:04:21 -0500
+
 freecdb (0.75) unstable; urgency=low
 
   * take over upstream (closes: #272127).
diff -Naur freecdb.orig/freecdb-0.75/patches/clang-ftbfs.diff freecdb/freecdb-0.75/patches/clang-ftbfs.diff 
--- freecdb.orig/freecdb-0.75/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ freecdb/freecdb-0.75/patches/clang-ftbfs.diff	2014-08-07 16:03:22.460559026 -0500
@@ -0,0 +1,11 @@
+--- a/cdbmake.c
++++ b/cdbmake.c
+@@ -27,7 +27,7 @@ void die_read(const char *e) {
+   strerr_die5x(111, FATAL, "unable to read input: entry ", s, ": ", e);
+ }
+ 
+-inline void getch() {
++static inline void getch() {
+   switch(buffer_GETC(buffer_0, &ch)) {
+   case 0: die_read("unexpected end if input");
+   case -1: die_read(error_str(errno));
diff -Naur freecdb.orig/freecdb-0.75/patches/series freecdb/freecdb-0.75/patches/series 
--- freecdb.orig/freecdb-0.75/patches/series	1969-12-31 18:00:00.000000000 -0600
+++ freecdb/freecdb-0.75/patches/series	2014-08-07 16:02:05.284557682 -0500
@@ -0,0 +1 @@
+clang-ftbfs.diff

Reply via email to