[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#667341: qmf: ftbfs with GCC-4.7



here is a patch to fix the GCC 4.7 issue. However the build fails later with

g++ -m64 -Wl,-O1 -o build/tst_qmailthread tst_qmailthread.o
-L/usr/lib/x86_64-linux-gnu -L../../src/libraries/qmfclient/build -lqmfclient
-lQtTest -lQtCore -lpthread
tst_qmailthread.o: In function `tst_qmailthread::test_threadKeys()':
tst_qmailthread.cpp:(.text+0x559b): undefined reference to `void
QMailThreadSortKey::deserialize<QDataStream>(QDataStream&)'
collect2: error: ld returned 1 exit status
make[3]: *** [build/tst_qmailthread] Error 1
make[3]: Leaving directory
`/home/packages/tmp/qmf-1.0.7~2011w23.2/tests/tst_qmailthread'

diff -Nru qmf-1.0.7~2011w23.2/debian/changelog qmf-1.0.7~2011w23.2/debian/changelog
--- qmf-1.0.7~2011w23.2/debian/changelog	2011-06-19 18:20:56.000000000 +0000
+++ qmf-1.0.7~2011w23.2/debian/changelog	2012-05-23 23:14:36.000000000 +0000
@@ -1,3 +1,10 @@
+qmf (1.0.7~2011w23.2-2.1) unstable; urgency=low
+
+  * Non maintainer upload
+  * Fix build failure with GCC 4.7. Closes: #667341.
+
+ -- Matthias Klose <doko@debian.org>  Wed, 23 May 2012 23:13:28 +0000
+
 qmf (1.0.7~2011w23.2-2) unstable; urgency=low
 
   * New upstream release.
diff -Nru qmf-1.0.7~2011w23.2/debian/patches/ftbfs-gcc-4.7.diff qmf-1.0.7~2011w23.2/debian/patches/ftbfs-gcc-4.7.diff
--- qmf-1.0.7~2011w23.2/debian/patches/ftbfs-gcc-4.7.diff	1970-01-01 00:00:00.000000000 +0000
+++ qmf-1.0.7~2011w23.2/debian/patches/ftbfs-gcc-4.7.diff	2012-05-23 23:15:36.000000000 +0000
@@ -0,0 +1,12 @@
+Index: qmf-1.0.7~2011w23.2/src/tools/messageserver/messageserver.cpp
+===================================================================
+--- qmf-1.0.7~2011w23.2.orig/src/tools/messageserver/messageserver.cpp	2011-06-15 08:53:17.000000000 +0000
++++ qmf-1.0.7~2011w23.2/src/tools/messageserver/messageserver.cpp	2012-05-23 23:13:20.539868874 +0000
+@@ -57,6 +57,7 @@
+ #include <sys/socket.h>
+ #endif
+ #include <signal.h>
++#include <unistd.h>
+ }
+ 
+ #if defined(Q_OS_UNIX)
diff -Nru qmf-1.0.7~2011w23.2/debian/patches/series qmf-1.0.7~2011w23.2/debian/patches/series
--- qmf-1.0.7~2011w23.2/debian/patches/series	2010-10-09 07:49:29.000000000 +0000
+++ qmf-1.0.7~2011w23.2/debian/patches/series	2012-05-23 23:12:49.000000000 +0000
@@ -2,3 +2,4 @@
 fix_plugins_installation.patch
 fix_tests_installation.patch
 no_rpath_tests_benchmarks.patch
+ftbfs-gcc-4.7.diff

Reply to: