Package: pcmanx-gtk2 Version: 0.3.5-2 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. In GCC 4.3, the C++ header dependencies have been cleaned up. The advantage of this is that programs will compile faster. The downside is that you actually need to directly #include everything you use (but you really should do this anyway, otherwise your program won't work with any compiler other than GCC). Some background of this can be found at http://gcc.gnu.org/PR28080
You can reproduce this problem with gcc-snapshot (20070326-1 or higher) from unstable. (Currently not available for i386, but for amd64, powerpc and ia64. I hope to have i386 binaries in the archive in the near future.) > Automatic build of pcmanx-gtk2_0.3.5-2 on coconut0 by sbuild/ia64 0.49 ... > if ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src/core > -I../src/view -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 > -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/freetype2 > -DLOCALEDIR=\"/usr/share/locale\" -DDATADIR=\"/usr/share\" -Wall -g -O2 > -fno-exceptions -fno-rtti -MT msgdata.o -MD -MP -MF ".deps/msgdata.Tpo" -c -o > msgdata.o `test -f 'nancy_bot/msgdata.cpp' || echo > './'`nancy_bot/msgdata.cpp; \ > then mv -f ".deps/msgdata.Tpo" ".deps/msgdata.Po"; else rm -f > ".deps/msgdata.Tpo"; exit 1; fi > In file included from nancy_bot/msgdata.cpp:10: > ./nancy_bot/botutil.h: In function 'int replaceString(std::string&, > std::string&, std::string&)': > ./nancy_bot/botutil.h:16: warning: comparison between signed and unsigned > integer expressions > ./nancy_bot/botutil.h:16: warning: comparison between signed and unsigned > integer expressions > nancy_bot/msgdata.cpp: In constructor 'MsgData::MsgData(std::string, > std::string, unsigned char, int, int)': > nancy_bot/msgdata.cpp:35: error: 'srand' was not declared in this scope > nancy_bot/msgdata.cpp: In member function 'int MsgData::writeToMsgData()': > nancy_bot/msgdata.cpp:115: warning: comparison between signed and unsigned > integer expressions > nancy_bot/msgdata.cpp: In member function 'int MsgData::initUnknowMsgToAsk()': > nancy_bot/msgdata.cpp:341: warning: unused variable 'len' > nancy_bot/msgdata.cpp: In member function 'int MsgData::getSpecialMsg(int, > std::string&)': > nancy_bot/msgdata.cpp:448: error: 'rand' was not declared in this scope > nancy_bot/msgdata.cpp:455: error: 'rand' was not declared in this scope > nancy_bot/msgdata.cpp:462: error: 'rand' was not declared in this scope > nancy_bot/msgdata.cpp: In member function 'int > MsgData::getCommonMsg(std::string&, std::string&, bool)': > nancy_bot/msgdata.cpp:475: error: 'rand' was not declared in this scope > nancy_bot/msgdata.cpp:508: warning: comparison between signed and unsigned > integer expressions > nancy_bot/msgdata.cpp: In member function 'bool > MsgData::getUserDefinedUsages(std::string&, std::string&, std::string&)': > nancy_bot/msgdata.cpp:537: error: 'rand' was not declared in this scope > nancy_bot/msgdata.cpp: In member function 'bool > MsgData::getUnknowMsgToAsk(std::string&)': > nancy_bot/msgdata.cpp:560: error: 'rand' was not declared in this scope > make[4]: *** [msgdata.o] Error 1 > make[4]: Leaving directory `/build/tbm/pcmanx-gtk2-0.3.5/src' --- src/nancy_bot/msgdata.cpp~ 2007-04-25 10:49:05.000000000 +0000 +++ src/nancy_bot/msgdata.cpp 2007-04-25 10:49:37.000000000 +0000 @@ -4,6 +4,7 @@ // Author: Youchen Lee ( utcr.org ) // Licence: GPL : http://www.gnu.org/licenses/gpl.html +#include <cstdlib> #include <unistd.h> #include "nancy_bot/msgdata.h" --- src/sitepage.cpp~ 2007-04-25 10:50:27.000000000 +0000 +++ src/sitepage.cpp 2007-04-25 10:50:33.000000000 +0000 @@ -20,6 +20,7 @@ #pragma implementation "sitepage.h" #endif +#include <cstdlib> #include <glib/gi18n.h> #include "appconfig.h" #include "sitepage.h" --- src/configfile.cpp~ 2007-04-25 10:50:55.000000000 +0000 +++ src/configfile.cpp 2007-04-25 10:51:04.000000000 +0000 @@ -28,6 +28,7 @@ #include "configfile.h" #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <sys/types.h> -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

