Bug#671999: boinc: FTBFS: ../tools/process_input_template.cpp:86:23: error: 'unlink' was not declared in this scope

Matthias Klose doko at debian.org
Thu May 10 00:09:14 UTC 2012


tags 671999 + patch
thanks

uploaded to delayed/2, part of the current mysql transition.
-------------- next part --------------
diff -Nru boinc-7.0.27+dfsg/debian/changelog boinc-7.0.27+dfsg/debian/changelog
--- boinc-7.0.27+dfsg/debian/changelog	2012-05-07 23:39:33.000000000 +0200
+++ boinc-7.0.27+dfsg/debian/changelog	2012-05-10 01:55:28.000000000 +0200
@@ -1,3 +1,10 @@
+boinc (7.0.27+dfsg-2.1) unstable; urgency=low
+
+  * Non maintainer upload.
+  * Fix build failure with GCC 4.7. Closes: #671999.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 09 May 2012 23:35:24 +0000
+
 boinc (7.0.27+dfsg-2) unstable; urgency=low
 
   * Removed a couple of patches to help preventing crash in some
diff -Nru boinc-7.0.27+dfsg/debian/patches/ftbfs-gcc-4.7.diff boinc-7.0.27+dfsg/debian/patches/ftbfs-gcc-4.7.diff
--- boinc-7.0.27+dfsg/debian/patches/ftbfs-gcc-4.7.diff	1970-01-01 01:00:00.000000000 +0100
+++ boinc-7.0.27+dfsg/debian/patches/ftbfs-gcc-4.7.diff	2012-05-10 01:47:09.000000000 +0200
@@ -0,0 +1,60 @@
+Index: boinc-7.0.27+dfsg/tools/process_input_template.cpp
+===================================================================
+--- boinc-7.0.27+dfsg.orig/tools/process_input_template.cpp	2012-01-02 07:33:08.000000000 +0000
++++ boinc-7.0.27+dfsg/tools/process_input_template.cpp	2012-05-09 23:35:17.556563470 +0000
+@@ -16,6 +16,7 @@
+ // along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
+ 
+ #include <stdio.h>
++#include <unistd.h>
+ #include <string>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+Index: boinc-7.0.27+dfsg/sched/single_job_assimilator.cpp
+===================================================================
+--- boinc-7.0.27+dfsg.orig/sched/single_job_assimilator.cpp	2010-11-08 17:51:57.000000000 +0000
++++ boinc-7.0.27+dfsg/sched/single_job_assimilator.cpp	2012-05-09 23:44:59.000576425 +0000
+@@ -24,6 +24,7 @@
+ #include <string>
+ #include <cstdlib>
+ #include <cstring>
++#include <unistd.h>
+ 
+ #include "boinc_db.h"
+ #include "error_numbers.h"
+Index: boinc-7.0.27+dfsg/tools/create_work.cpp
+===================================================================
+--- boinc-7.0.27+dfsg.orig/tools/create_work.cpp	2012-02-22 22:13:08.000000000 +0000
++++ boinc-7.0.27+dfsg/tools/create_work.cpp	2012-05-09 23:45:52.692577789 +0000
+@@ -26,6 +26,7 @@
+ #include <cstring>
+ #include <ctime>
+ #include <string>
++#include <unistd.h>
+ 
+ #include "backend_lib.h"
+ #include "boinc_db.h"
+Index: boinc-7.0.27+dfsg/vda/vda.cpp
+===================================================================
+--- boinc-7.0.27+dfsg.orig/vda/vda.cpp	2012-03-28 18:53:30.000000000 +0000
++++ boinc-7.0.27+dfsg/vda/vda.cpp	2012-05-09 23:46:36.100578770 +0000
+@@ -21,6 +21,7 @@
+ // vda add path     add a file
+ 
+ #include <stdio.h>
++#include <unistd.h>
+ 
+ #include "boinc_db.h"
+ #include "filesys.h"
+Index: boinc-7.0.27+dfsg/vda/vdad.cpp
+===================================================================
+--- boinc-7.0.27+dfsg.orig/vda/vdad.cpp	2012-04-16 20:36:28.000000000 +0000
++++ boinc-7.0.27+dfsg/vda/vdad.cpp	2012-05-09 23:47:07.308579477 +0000
+@@ -25,6 +25,7 @@
+ 
+ #include <sys/stat.h>
+ #include <sys/types.h>
++#include <unistd.h>
+ #include <vector>
+ #include <set>
+ 
diff -Nru boinc-7.0.27+dfsg/debian/patches/series boinc-7.0.27+dfsg/debian/patches/series
--- boinc-7.0.27+dfsg/debian/patches/series	2012-05-07 01:43:26.000000000 +0200
+++ boinc-7.0.27+dfsg/debian/patches/series	2012-05-10 01:55:32.000000000 +0200
@@ -54,3 +54,4 @@
 nvidia_mem_display_simplification.patch
 api_NULL_not_defined.patch
 wxWidgets_observations.patch
+ftbfs-gcc-4.7.diff


More information about the pkg-boinc-devel mailing list