Red Hat Bugzilla – Bug 432336
cstdio missing from gmp-<arch>.h
Last modified: 2008-02-28 16:39:12 EST
Description of problem:
When using gmp-<arch>.h (for example, on i386
it is /usr/include/gmp-i386.h) with g++43, it fails with
In file included from /usr/include/gmp.h:41,
/usr/include/gmp-i386.h:520: error: 'std::FILE' has not been declared
#include <cstdio> must be included in gmp-XXXX.h
(in source file it is from gmp-h.in, I guess)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. compile come codes using gmp.h
#include <cstdio> must be added to gmp-h.in
Looks like this is going to block all/most(?) gcc43 builds that use gmp
(including at least my own libfac, factory packages).
Created attachment 294713 [details]
first crack at gcc43 patch
Fixed in gmp-4.2.2-6.fc9.
Can we have this fix on the other branches too? It would be really helpful for
people like me who use gcc-4.3 on F-8.
gmp-4.2.2-4.fc8 has been submitted as an update for Fedora 8
gmp-4.2.2-4.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.