Bug#417708: Fwd: [Pkg-kde-extras] Bug#417708: FTBFS with GCC 4.3:
missing #includes
Jos van den Oever
jos at vandenoever.info
Sun Apr 29 21:21:26 UTC 2007
Thanks Mark,
I applied the patch.
Jos
On 4/28/2007, "Mark Purcell" <msp at debian.org> wrote:
>Jos,
>
>Find enclosed a patch to build strigiapplet with gcc 4.3 which you might like to
>include upstream.
>
>Btw, if you subscribe to the Debian Package Tracking System
>http://packages.qa.debian.org/strigi then you will receive Debian bug
>reports as soon as we do
>
>Mark
>---------- Forwarded Message ----------
>
>Subject: [Pkg-kde-extras] Bug#417708: FTBFS with GCC 4.3: missing #includes
>Date: Wed, 4 Apr 2007
>From: Martin Michlmayr <tbm at cyrius.com>
>To: submit at bugs.debian.org
>
>Package: strigiapplet
>Version: 0.3.9-1
>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 ~3 weeks.)
>
>> Automatic build of strigiapplet_0.3.9-1 on em64t by sbuild/amd64 0.53
>...
>> /build/tbm/strigiapplet-0.3.9/./src/strigi/strigi.cpp:337: warning: conversion to 'unsigned int' from 'int' may alter its value
>> /build/tbm/strigiapplet-0.3.9/./src/strigi/strigi.cpp: In function 'int kdemain(int, char**)':
>> /build/tbm/strigiapplet-0.3.9/./src/strigi/strigi.cpp:375: error: 'putenv' was not declared in this scope
>> /build/tbm/strigiapplet-0.3.9/./src/strigi/strigi.cpp:377: warning: 'KApplication::KApplication(int&, char**, const QCString&, bool, bool)' is deprecated (declared at /usr/include/kde/kapplication.h:205)
>> /build/tbm/strigiapplet-0.3.9/./src/strigi/strigi.cpp:380: error: 'exit' was not declared in this scope
>
>--- src/strigi/strigi.cpp~ 2007-04-04 11:29:47.000000000 +0000
>+++ src/strigi/strigi.cpp 2007-04-04 11:29:55.000000000 +0000
>@@ -37,6 +37,7 @@
> #include <kstandarddirs.h>
> #include <qbuffer.h>
> #include <qregexp.h>
>+#include <cstdlib>
> #include "strigi.h"
>
> using namespace KIO;
>
>--
>Martin Michlmayr
>http://www.cyrius.com/
>
>
>_______________________________________________
>pkg-kde-extras mailing list
>pkg-kde-extras at lists.alioth.debian.org
>http://lists.alioth.debian.org/mailman/listinfo/pkg-kde-extras
>
>-------------------------------------------------------
More information about the pkg-kde-extras
mailing list