Package: knapster2
Version: 0.5-7
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 from unstable.
> Automatic build of knapster2_0.5-7 on coconut0 by sbuild/ia64 0.49
...
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt3
> -I. -I/usr/include/kde/arts -DQT_THREAD_SUPPORT -D_REENTRANT
> -DWELCOME_PAGE='"/usr/share/doc/kde/HTML/en/knapster2/knapster-welcome.html"'
> -c -o knap_listview.o `test -f 'knap_listview.cpp' || echo
> './'`knap_listview.cpp
> In file included from
> /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/iostream.h:31,
> from knap_listview.cpp:30:
> /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one deprecated or antiquated
> header. Please consider using one of the 32 headers found in section 17.4.1.2
> of the C++ standard. Examples include substituting the <X> header for the
> <X.h> header for C++ includes, or <iostream> instead of the deprecated header
> <iostream.h>. To disable this warning use -Wno-deprecated.
> knap_listview.cpp: In member function 'bool KNAP_ListView::loadWidths()':
> knap_listview.cpp:126: error: 'atoi' was not declared in this scope
> make[3]: *** [knap_listview.o] Error 1
--- knapster2/knap_listview.cpp~ 2007-04-02 09:35:57.000000000 +0000
+++ knapster2/knap_listview.cpp 2007-04-02 09:36:14.000000000 +0000
@@ -18,7 +18,6 @@
#include "knap_listview.h"
#include <kapp.h>
-//#include <stdlib.h>
#include <kconfig.h>
#include <kglobal.h>
@@ -27,8 +26,8 @@
#include <qheader.h>
#include <qstring.h>
+#include <cstdlib>
#include <iostream.h>
-//#include <stdlib.h>
static int stricmp(const char *s1, const char *s2)
{
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]