user debian-...@lists.debian.org
usertags 672089 - ftbfs-gcc-4.7
thanks

there is an issue with GCC 4.7, patch attached, however the package fails to
build due to changed xlib headers.

and please patch the build so that it's a verbose build and doesn't hide the
compiler calls.


  CXX      wmsession.o
g++ -fpermissive -Wall -Wpointer-arith -Wwrite-strings -Woverloaded-virtual -W
-fno-exceptions -fno-rtti -g -O2  -DHAVE_CONFIG_H -DLIBDIR='"/usr/share/icewm"'
-DCFGDIR='"/etc/X11/icewm"' -DLOCDIR='"/usr/share/locale"' -DKDEDIR='""'
-DPACKAGE='"icewm"' -DVERSION='"1.3.7"' -DHOSTOS='"Linux 3.2.0-24-generic"'
-DHOSTCPU='"x86_64"' -DEXEEXT='""' -DICEWMEXE='"icewm"'
-DICEWMTRAYEXE='"icewmtray"' -DICEWMBGEXE='"icewmbg"'
-DICESMEXE='"icewm-session"' -DICEHELPEXE='"icehelp"'
-DICEHELPIDX='"/usr/share/doc/icewm-common/html/icewm.html"' `pkg-config
gdk-pixbuf-xlib-2.0 --cflags` -pthread -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/libpng12      -c wmsession.cc
In file included from ylib.h:9:0,
                 from ykey.h:4,
                 from yfull.h:4,
                 from wmsession.cc:13:
/usr/include/X11/Xlib.h:1694:1: error: 'deprecated' was not declared in this 
scope
make: *** [wmsession.o] Error 1
(sid)doko@octogon:/home/packages/tmp/icewm-1.3.7/src$ g++-4.6 -fpermissive -Wall
-Wpointer-arith -Wwrite-strings -Woverloaded-virtual -W -fno-exceptions
-fno-rtti -g -O2  -DHAVE_CONFIG_H -DLIBDIR='"/usr/share/icewm"'
-DCFGDIR='"/etc/X11/icewm"' -DLOCDIR='"/usr/share/locale"' -DKDEDIR='""'
-DPACKAGE='"icewm"' -DVERSION='"1.3.7"' -DHOSTOS='"Linux 3.2.0-24-generic"'
-DHOSTCPU='"x86_64"' -DEXEEXT='""' -DICEWMEXE='"icewm"'
-DICEWMTRAYEXE='"icewmtray"' -DICEWMBGEXE='"icewmbg"'
-DICESMEXE='"icewm-session"' -DICEHELPEXE='"icehelp"'
-DICEHELPIDX='"/usr/share/doc/icewm-common/html/icewm.html"' `pkg-config
gdk-pixbuf-xlib-2.0 --cflags` -pthread -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/libpng12      -c wmsession.cc
In file included from ylib.h:9:0,
                 from ykey.h:4,
                 from yfull.h:4,
                 from wmsession.cc:13:
/usr/include/X11/Xlib.h:1694:1: error: 'deprecated' was not declared in this 
scope
diff -Nru icewm-1.3.7/debian/changelog icewm-1.3.7/debian/changelog
--- icewm-1.3.7/debian/changelog        2012-01-16 18:37:40.000000000 +0000
+++ icewm-1.3.7/debian/changelog        2012-05-21 01:48:38.000000000 +0000
@@ -1,3 +1,10 @@
+icewm (1.3.7-2.1) unstable; urgency=low
+
+  * Non maintainer upload
+  * Fix build failure with GCC 4.7. Closes: #672089.
+
+ -- Matthias Klose <d...@debian.org>  Mon, 21 May 2012 01:47:05 +0000
+
 icewm (1.3.7-2) unstable; urgency=low
 
   * ignore_workarea_hints patch (based on patch from SF task 3471908,
diff -Nru icewm-1.3.7/debian/patches/ftbfs-gcc-4.7.diff 
icewm-1.3.7/debian/patches/ftbfs-gcc-4.7.diff
--- icewm-1.3.7/debian/patches/ftbfs-gcc-4.7.diff       1970-01-01 
00:00:00.000000000 +0000
+++ icewm-1.3.7/debian/patches/ftbfs-gcc-4.7.diff       2012-05-21 
01:46:55.000000000 +0000
@@ -0,0 +1,13 @@
+Index: icewm-1.3.7/src/yarray.h
+===================================================================
+--- icewm-1.3.7.orig/src/yarray.h      2010-10-31 14:09:36.000000000 +0000
++++ icewm-1.3.7/src/yarray.h   2012-05-21 01:46:52.970218411 +0000
+@@ -152,7 +152,7 @@
+     }
+ 
+     virtual void remove(const typename YArray<DataType *>::SizeType index) {
+-        if (index < YArray<DataType *>::getCount()) delete getItem(index);
++        if (index < YArray<DataType *>::getCount()) delete 
this->getItem(index);
+         YArray<DataType *>::remove(index);
+     }
+     
diff -Nru icewm-1.3.7/debian/patches/series icewm-1.3.7/debian/patches/series
--- icewm-1.3.7/debian/patches/series   2012-01-16 15:23:44.000000000 +0000
+++ icewm-1.3.7/debian/patches/series   2012-05-21 01:46:04.000000000 +0000
@@ -10,3 +10,4 @@
 do_not_send_configurenotify
 # wmswitch # needing to resolve modal focus problems before using it
 fuzzy_timers
+ftbfs-gcc-4.7.diff

Reply via email to