Package: lincity
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-06-16/lincity_1.13.1-11_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 lincity.orig/lincity-1.13.1/debian/changelog lincity/lincity-1.13.1/debian/changelog
--- lincity.orig/lincity-1.13.1/debian/changelog	2014-08-11 15:25:17.428360821 -0500
+++ lincity/lincity-1.13.1/debian/changelog	2014-08-11 15:40:59.868377233 -0500
@@ -1,3 +1,10 @@
+lincity (1.13.1-12) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed undefined reference error
+
+ -- Arthur Marble <art...@info9.net>  Mon, 11 Aug 2014 15:40:59 -0500
+
 lincity (1.13.1-11) unstable; urgency=low
 
   * Cope with (despite hints) resized splash screen.  (Closes: #701927)
diff -Naur lincity.orig/lincity-1.13.1/debian/patches/clang-ftbfs.diff lincity/lincity-1.13.1/debian/patches/clang-ftbfs.diff 
--- lincity.orig/lincity-1.13.1/debian/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ lincity/lincity-1.13.1/debian/patches/clang-ftbfs.diff	2014-08-11 15:45:12.584381634 -0500
@@ -0,0 +1,20 @@
+--- a/pixmap.h
++++ b/pixmap.h
+@@ -19,7 +19,7 @@ extern int pixmap_width;
+ void initialize_pixmap (void);
+ void resize_pixmap (int new_width, int new_height);
+ int pixmap_getpixel (int x, int y);
+-inline int pixmap_index (int x, int y);
++int pixmap_index (int x, int y);
+ int pixmap_getpixel (int x, int y);
+ void pixmap_setpixel (int x, int y, int col);
+ void pixmap_hline (int x1, int y1, int x2, int col);
+@@ -33,7 +33,7 @@ void free_pixmap (void);
+  * Public Inline Functions
+  * ---------------------------------------------------------------------- */
+ #if defined (WIN32)
+-inline int 
++int
+ pixmap_index (int x, int y) {
+     return y*pixmap_width + x;
+ }
diff -Naur lincity.orig/lincity-1.13.1/debian/patches/series lincity/lincity-1.13.1/debian/patches/series 
--- lincity.orig/lincity-1.13.1/debian/patches/series	2014-08-11 15:25:17.428360821 -0500
+++ lincity/lincity-1.13.1/debian/patches/series	2014-08-11 15:25:47.964361353 -0500
@@ -4,3 +4,4 @@
 set_DEFAULT_LIBDIR
 delay_timers
 avoid-refresh-uninited-701927
+clang-ftbfs.diff

Reply via email to