[tbm at cyrius.com: Bug#441533: GCC 4.3 related: missing #includes]

Steve M. Robbins steve at sumost.ca
Mon Dec 10 14:27:03 CET 2007


A Debian user has reported a missing #include in gmp.h.


----- Forwarded message from Martin Michlmayr <tbm at cyrius.com> -----

Subject: Bug#441533: GCC 4.3 related: missing #includes
Reply-To: Martin Michlmayr <tbm at cyrius.com>, 441533 at bugs.debian.org
X-Debian-PR-Message: report 441533
X-Debian-PR-Package: gmp
Date: Sun, 9 Dec 2007 11:18:24 -0700
From: Martin Michlmayr <tbm at cyrius.com>
To: 441533 at bugs.debian.org

Note that there are more GCC 4.3 related problems.  Some packages
don't build because the gmp.h header file missing a #includes:

> Automatic build of kdeutils_4:3.5.8-1 on em64t by sbuild/amd64 0.53
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I../.. -I/build/tbm/kdeutils-3.5.8/./kcalc/knumber -D_GNU_SOURCE -D_ISOC99_SOURCE -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -Wall -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c libknumber_la.all_cpp.cpp  -fPIC -DPIC -o .libs/libknumber_la.all_cpp.o
> In file included from libknumber_la.all_cpp.cpp:3:
> /build/tbm/kdeutils-3.5.8/./kcalc/knumber/knumber_priv.cpp:346:2: warning: #warning _cbrt for now this is a stupid work around
> In file included from /build/tbm/kdeutils-3.5.8/./kcalc/knumber/knumber.h:23,
>                  from /build/tbm/kdeutils-3.5.8/./kcalc/knumber/knumber.cpp:28,
>                  from libknumber_la.all_cpp.cpp:2:
> /usr/include/gmp.h:520: error: 'std::FILE' has not been declared

--- old	2007-12-09 18:15:42.000000000 +0000
+++ /usr/include/gmp.h	2007-12-09 18:16:06.000000000 +0000
@@ -22,6 +22,7 @@
 #if defined (__cplusplus)
 #include <iosfwd>   /* for std::istream, std::ostream, std::string */
+#include <iostream> /* for std::FILE */

Martin Michlmayr

----- End forwarded message -----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://gmplib.org/list-archives/gmp-bugs/attachments/20071210/c037db09/attachment.bin 

More information about the gmp-bugs mailing list