Bug#413307: FTBFS with GCC 4.3: error: 'std::string' has not been
Martin Michlmayr
tbm at cyrius.com
Sun Mar 4 03:45:30 CET 2007
Package: boinc
Version: 5.4.11-4
Usertags: ftbfs-gcc-4.3
Tags: patch
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. A patch for this problem is
below.
> Automatic build of boinc_5.4.11-4 on coconut0 by sbuild/ia64 0.49
...
> if g++ -DHAVE_CONFIG_H -I. -I. -I.. -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -pthread -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -pthread -g -Wall -O3 -I/usr/include -I/usr/include/openssl -pthread -MT boinc_cmd.o -MD -MP -MF ".deps/boinc_cmd.Tpo" -c -o boinc_cmd.o boinc_cmd.C; \
> then mv -f ".deps/boinc_cmd.Tpo" ".deps/boinc_cmd.Po"; else rm -f ".deps/boinc_cmd.Tpo"; exit 1; fi
> boinc_cmd.C:39: error: 'std::string' has not been declared
> boinc_cmd.C: In function 'int main(int, char**)':
> boinc_cmd.C:391: error: 'string' was not declared in this scope
> make[3]: *** [boinc_cmd.o] Error 1
> make[3]: Leaving directory `/build/tbm/boinc-5.4.11/lib'
--- boinc-5.4.11/client/client_state.h~ 2007-03-04 02:23:43.858424648 +0000
+++ boinc-5.4.11/client/client_state.h 2007-03-04 02:23:57.352565108 +0000
@@ -25,6 +25,7 @@
#include <ctime>
#endif
+#include <string>
using std::string;
using std::vector;
--- boinc-5.4.11/lib/boinc_cmd.C~ 2007-03-04 02:19:40.080107322 +0000
+++ boinc-5.4.11/lib/boinc_cmd.C 2007-03-04 02:22:36.348659850 +0000
@@ -35,6 +35,7 @@
#endif
#include <vector>
+#include <string>
using std::vector;
using std::string;
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-boinc-devel
mailing list