Hi,
* Matthias Klose <d...@debian.org> [2012-04-04 01:33]:
> The package fails to build in a test rebuild on at least amd64 with
> gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
> severity of this report may be raised before the wheezy release.
> 
> src/utils.cpp:219:2: error: '::unlink' has not been declared
> 
> The full build log can be found at:
> http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/newsbeuter_2.5-1_unstable-gcc47.log
> The last lines of the build log are at the end of this report.
> 
> Some hints on fixing these issues can be found at
> http://gcc.gnu.org/gcc-4.7/porting_to.html
> 
> To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
> or install the gcc, g++, gfortran, ... packages from experimental.
[...] 
Thanks for the report!

Andreas, can you import the attached patch to fix this?

Kind regards
Nico
diff -Nurad newsbeuter-2.5/src/controller.cpp newsbeuter-2.5-foo/src/controller.cpp
--- newsbeuter-2.5/src/controller.cpp	2012-01-06 15:41:13.000000000 +0100
+++ newsbeuter-2.5-foo/src/controller.cpp	2012-04-04 03:10:21.753597667 +0200
@@ -30,6 +30,7 @@
 #include <ctime>
 #include <cassert>
 #include <signal.h>
+#include <unistd.h>
 #include <sys/utsname.h>
 #include <langinfo.h>
 #include <libgen.h>
diff -Nurad newsbeuter-2.5/src/google_api.cpp newsbeuter-2.5-foo/src/google_api.cpp
--- newsbeuter-2.5/src/google_api.cpp	2012-01-06 15:41:13.000000000 +0100
+++ newsbeuter-2.5-foo/src/google_api.cpp	2012-04-04 03:10:21.753597667 +0200
@@ -7,6 +7,8 @@
 #include <config.h>
 #include <utils.h>
 
+#include <unistd.h>
+
 #include <curl/curl.h>
 
 #define GREADER_LOGIN					"https://www.google.com/accounts/ClientLogin";
diff -Nurad newsbeuter-2.5/src/pb_controller.cpp newsbeuter-2.5-foo/src/pb_controller.cpp
--- newsbeuter-2.5/src/pb_controller.cpp	2012-01-06 15:41:13.000000000 +0100
+++ newsbeuter-2.5-foo/src/pb_controller.cpp	2012-04-04 03:10:21.753597667 +0200
@@ -12,6 +12,7 @@
 #include <pwd.h>
 #include <cstdlib>
 #include <signal.h>
+#include <unistd.h>
 
 #include <keymap.h>
 #include <configcontainer.h>
diff -Nurad newsbeuter-2.5/src/queueloader.cpp newsbeuter-2.5-foo/src/queueloader.cpp
--- newsbeuter-2.5/src/queueloader.cpp	2012-01-06 15:41:13.000000000 +0100
+++ newsbeuter-2.5-foo/src/queueloader.cpp	2012-04-04 03:10:21.753597667 +0200
@@ -8,6 +8,8 @@
 #include <config.h>
 #include <libgen.h>
 
+#include <unistd.h>
+
 using namespace newsbeuter;
 
 namespace podbeuter {
diff -Nurad newsbeuter-2.5/src/reloadthread.cpp newsbeuter-2.5-foo/src/reloadthread.cpp
--- newsbeuter-2.5/src/reloadthread.cpp	2012-01-06 15:41:13.000000000 +0100
+++ newsbeuter-2.5-foo/src/reloadthread.cpp	2012-04-04 03:10:21.753597667 +0200
@@ -1,5 +1,6 @@
 #include <reloadthread.h>
 #include <logger.h>
+#include <unistd.h>
 
 namespace newsbeuter {
 
diff -Nurad newsbeuter-2.5/src/utils.cpp newsbeuter-2.5-foo/src/utils.cpp
--- newsbeuter-2.5/src/utils.cpp	2012-01-06 15:41:13.000000000 +0100
+++ newsbeuter-2.5-foo/src/utils.cpp	2012-04-04 03:10:21.753597667 +0200
@@ -11,6 +11,7 @@
 #include <libgen.h>
 #include <sys/utsname.h>
 
+#include <unistd.h>
 #include <sstream>
 #include <locale>
 #include <cwchar>

Attachment: pgpttBeyxoNhg.pgp
Description: PGP signature

Reply via email to