Debian Bug report logs - #504963
FTBFS with GCC 4.4: missing #include

version graph

Package: libfcgi; Maintainer for libfcgi is Boris Pek <tehnick@debian.org>;

Reported by: Martin Michlmayr <tbm@cyrius.com>

Date: Sat, 8 Nov 2008 07:57:02 UTC

Severity: serious

Tags: patch, sid, squeeze

Found in version 2.4.0-7

Fixed in version libfcgi/2.4.0-7.1

Done: David Paleino <dapal@debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Tatsuki Sugiura <sugi@nemui.org>:
Bug#504963; Package libfcgi. (Sat, 08 Nov 2008 07:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Martin Michlmayr <tbm@cyrius.com>:
New Bug report received and forwarded. Copy sent to Tatsuki Sugiura <sugi@nemui.org>. (Sat, 08 Nov 2008 07:57:21 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Martin Michlmayr <tbm@cyrius.com>
To: submit@bugs.debian.org
Subject: FTBFS with GCC 4.4: missing #include
Date: Sat, 8 Nov 2008 08:52:54 +0100
Package: libfcgi
Version: 2.4.0-7
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of libfcgi_2.4.0-7 on em64t by sbuild/amd64 0.53
...
> /bin/sh ../libtool --tag=CXX   --mode=compile x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..   -I../include  -g -O2 -MT fcgio.lo -MD -MP -MF .deps/fcgio.Tpo -c -o fcgio.lo fcgio.cpp
>  x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT fcgio.lo -MD -MP -MF .deps/fcgio.Tpo -c fcgio.cpp  -fPIC -DPIC -o .libs/fcgio.o
> fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()':
> fcgio.cpp:50: error: 'EOF' was not declared in this scope
> fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)':
> fcgio.cpp:70: error: 'EOF' was not declared in this scope
> fcgio.cpp:75: error: 'EOF' was not declared in this scope
> fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()':
> fcgio.cpp:86: error: 'EOF' was not declared in this scope
> fcgio.cpp:87: error: 'EOF' was not declared in this scope
> fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()':
> fcgio.cpp:107: error: 'EOF' was not declared in this scope
> make[3]: *** [fcgio.lo] Error 1

--- libfcgi/fcgio.cpp~	2008-11-08 07:47:43.000000000 +0000
+++ libfcgi/fcgio.cpp	2008-11-08 07:47:52.000000000 +0000
@@ -22,6 +22,7 @@
 #define DLLAPI  __declspec(dllexport)
 #endif
 
+#include <cstdio>
 #include <limits.h>
 #include "fcgio.h"
 

-- 
Martin Michlmayr
http://www.cyrius.com/




Severity set to 'serious' from 'normal' Request was from Lucas Nussbaum <lucas@lucas-nussbaum.net> to control@bugs.debian.org. (Fri, 11 Dec 2009 08:23:08 GMT) (full text, mbox, link).


Added tag(s) sid and squeeze. Request was from Gerfried Fuchs <rhonda@debian.at> to control@bugs.debian.org. (Mon, 14 Dec 2009 13:21:18 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Tatsuki Sugiura <sugi@nemui.org>:
Bug#504963; Package libfcgi. (Mon, 21 Dec 2009 14:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to David Paleino <dapal@debian.org>:
Extra info received and forwarded to list. Copy sent to Tatsuki Sugiura <sugi@nemui.org>. (Mon, 21 Dec 2009 14:57:05 GMT) (full text, mbox, link).


Message #14 received at 504963@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 504963@bugs.debian.org
Subject: libfcgi: diff for NMU version 2.4.0-7.1
Date: Mon, 21 Dec 2009 15:50:53 +0100
Dear maintainer,

I've prepared an NMU for libfcgi (versioned as 2.4.0-7.1) and
uploaded it to DELAYED/2, as per DevRef §5.11.1. The NMU contains
the patch already attached to this bugreport.
Please feel free to tell me if I should delay it longer.

Regards.
diff -u libfcgi-2.4.0/debian/changelog libfcgi-2.4.0/debian/changelog
--- libfcgi-2.4.0/debian/changelog
+++ libfcgi-2.4.0/debian/changelog
@@ -1,3 +1,10 @@
+libfcgi (2.4.0-7.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC 4.4, thanks to Martin Michlmayr (Closes: #504963)
+
+ -- David Paleino <dapal@debian.org>  Mon, 21 Dec 2009 15:45:39 +0100
+
 libfcgi (2.4.0-7) unstable; urgency=low
 
   * rebuild for long double 128bit transition. (Closes: #430250)
only in patch2:
unchanged:
--- libfcgi-2.4.0.orig/libfcgi/fcgio.cpp
+++ libfcgi-2.4.0/libfcgi/fcgio.cpp
@@ -22,6 +22,7 @@
 #define DLLAPI  __declspec(dllexport)
 #endif
 
+#include <cstdio>
 #include <limits.h>
 #include "fcgio.h"
 




Added tag(s) pending. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Mon, 21 Dec 2009 20:40:33 GMT) (full text, mbox, link).


Reply sent to David Paleino <dapal@debian.org>:
You have taken responsibility. (Wed, 23 Dec 2009 15:27:03 GMT) (full text, mbox, link).


Notification sent to Martin Michlmayr <tbm@cyrius.com>:
Bug acknowledged by developer. (Wed, 23 Dec 2009 15:27:03 GMT) (full text, mbox, link).


Message #21 received at 504963-close@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 504963-close@bugs.debian.org
Subject: Bug#504963: fixed in libfcgi 2.4.0-7.1
Date: Wed, 23 Dec 2009 15:23:47 +0000
Source: libfcgi
Source-Version: 2.4.0-7.1

We believe that the bug you reported is fixed in the latest version of
libfcgi, which is due to be installed in the Debian FTP archive:

libfcgi-dev_2.4.0-7.1_i386.deb
  to main/libf/libfcgi/libfcgi-dev_2.4.0-7.1_i386.deb
libfcgi0ldbl_2.4.0-7.1_i386.deb
  to main/libf/libfcgi/libfcgi0ldbl_2.4.0-7.1_i386.deb
libfcgi_2.4.0-7.1.diff.gz
  to main/libf/libfcgi/libfcgi_2.4.0-7.1.diff.gz
libfcgi_2.4.0-7.1.dsc
  to main/libf/libfcgi/libfcgi_2.4.0-7.1.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 504963@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <dapal@debian.org> (supplier of updated libfcgi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 21 Dec 2009 15:45:39 +0100
Source: libfcgi
Binary: libfcgi-dev libfcgi0ldbl
Architecture: source i386
Version: 2.4.0-7.1
Distribution: unstable
Urgency: low
Maintainer: Tatsuki Sugiura <sugi@nemui.org>
Changed-By: David Paleino <dapal@debian.org>
Description: 
 libfcgi-dev - Header files of FastCGI
 libfcgi0ldbl - Shared library of FastCGI
Closes: 504963
Changes: 
 libfcgi (2.4.0-7.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Fix FTBFS with GCC 4.4, thanks to Martin Michlmayr (Closes: #504963)
Checksums-Sha1: 
 072555463962bc8b9e27d281f9aab3e594ce3d2b 977 libfcgi_2.4.0-7.1.dsc
 f30a1d7b1800a51e506f7caf85252299c3308613 412335 libfcgi_2.4.0-7.1.diff.gz
 9801fe18c0c6a3a67a4ff607e3c3e00bd525b73f 33172 libfcgi-dev_2.4.0-7.1_i386.deb
 59f9ee6906999cfb2d833496929043fab4d3fabd 285398 libfcgi0ldbl_2.4.0-7.1_i386.deb
Checksums-Sha256: 
 4aaba8c7fa64b39374d6995838ebd75771a0508745540e88845b945a730b5edb 977 libfcgi_2.4.0-7.1.dsc
 e73f8f56932b9dc0cd59ad930e5c86c57df3cecdf66b8fad282413234f0eeff4 412335 libfcgi_2.4.0-7.1.diff.gz
 74da0030b65474972a53d66864e69a529bb7041fc43f7aa078cc74d5cea70ca7 33172 libfcgi-dev_2.4.0-7.1_i386.deb
 e7aaf5a0ceeed4ec3dc29455ee5a2473491018b33953fb29df283828f6477618 285398 libfcgi0ldbl_2.4.0-7.1_i386.deb
Files: 
 ba4648d642f3b67bc0796039f9c8ca23 977 - optional libfcgi_2.4.0-7.1.dsc
 2891bc2f7e917bca5f8d88993ba77ed0 412335 - optional libfcgi_2.4.0-7.1.diff.gz
 31481718b0a519fb86ea908d9356dfe9 33172 libdevel optional libfcgi-dev_2.4.0-7.1_i386.deb
 ed0615a99edc0e4dce2e10b3288664dd 285398 libs optional libfcgi0ldbl_2.4.0-7.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAksvi0UACgkQ5qqQFxOSsXTVgwCaA4zvw7E7YCpsmVZmUgNTq3uM
UFEAmgIfZ52gSr0lBpBNNqsRnTbIm5ni
=ln/d
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 07 Mar 2011 09:31:28 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 22 20:17:32 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.