The patch tag was added but the patch only exists in git, so I'm
attaching the raw patch to make it easier for others to debug the
segmentation fault which occurs after this patch is applied.

This patch is not sufficient to fix the bug itself.

Also, note that prior to the segmentation fault, the build log contains
70 CRITICAL warnings from GLib, GLib-GObject or BSE.

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

Description: Fix #includes to avoid FTBFS with GCC 4.7.
Author: Alessio Treglia <ales...@debian.org>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672030
Forwarded: no
---
 birnet/birnetutils.cc   |    1 +
 birnet/tests/threads.cc |    1 +
 sfi/sfidl-parser.hh     |    2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

--- beast.orig/birnet/birnetutils.cc
+++ beast/birnet/birnetutils.cc
@@ -21,6 +21,7 @@
 #include "birnetmsg.hh"
 #include "birnetcpu.hh"
 #include <errno.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
--- beast.orig/birnet/tests/threads.cc
+++ beast/birnet/tests/threads.cc
@@ -17,6 +17,7 @@
 //#define TEST_VERBOSE
 #include <birnet/birnettests.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 namespace {
 using namespace Birnet;
--- beast.orig/sfi/sfidl-parser.hh
+++ beast/sfi/sfidl-parser.hh
@@ -31,7 +31,7 @@ private:
 
 public:
   const Value& get(const Key& k) const {
-    typename std::map<Key,Value>::const_iterator i = find(k);
+    typename std::map<Key,Value>::const_iterator i = this->find(k);
     if (i != this->end())
       return i->second;
     else

Attachment: pgpzh28UeLQOj.pgp
Description: PGP signature

Reply via email to