libopenraw fails to build wih gcc 4.4.x due to more header cleanups Reproducible: Always Steps to Reproduce: 1.upgrade to gcc 4.4.x 2.try to install libopenraw 3.watch it fail /bin/sh ../libtool --tag=CC --mode=link gcc -march=native -O2 -pipe -Wextra -pedantic -g -Wall -L../lib -static -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o thumbc thumbc.o ../lib/libopenraw.la -lstdc++ -ljpeg /bin/sh ../libtool --tag=CC --mode=link gcc -march=native -O2 -pipe -Wextra -pedantic -g -Wall -L../lib -static -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o ccfa ccfa.o ../lib/libopenraw.la -lstdc++ -ljpeg /bin/sh ../libtool --tag=CC --mode=link gcc -march=native -O2 -pipe -Wextra -pedantic -g -Wall -L../gnome -static -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o gdk gdk-gdk.o ../gnome/libopenrawgnome.la -lstdc++ -ljpeg -lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 cfa.cpp: In function 'int main(int, char**)': cfa.cpp:71: error: 'fopen' was not declared in this scope cfa.cpp:72: error: 'fprintf' was not declared in this scope cfa.cpp:77: error: 'fopen' was not declared in this scope cfa.cpp:79: error: 'fwrite' was not declared in this scope cfa.cpp:80: error: 'fclose' was not declared in this scope thumb.cpp: In function 'int main(int, char**)': thumb.cpp:71: error: 'fopen' was not declared in this scope thumb.cpp:72: error: 'fwrite' was not declared in this scope thumb.cpp:73: error: 'fclose' was not declared in this scope thumb.cpp:88: error: 'fopen' was not declared in this scope thumb.cpp:89: error: 'fwrite' was not declared in this scope thumb.cpp:90: error: 'fclose' was not declared in this scope thumb.cpp:104: error: 'fopen' was not declared in this scope thumb.cpp:105: error: 'fwrite' was not declared in this scope thumb.cpp:106: error: 'fclose' was not declared in this scope make[2]: *** [cfa.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mkdir .libs make[2]: *** [thumb.o] Error 1 gcc -march=native -O2 -pipe -Wextra -pedantic -g -Wall -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o thumbc thumbc.o -L/var/tmp/paludis/media-libs-libopenraw-0.0.5/work/libopenraw-0.0.5/lib ../lib/.libs/libopenraw.a -lstdc++ /usr/lib64/libjpeg.so gcc -march=native -O2 -pipe -Wextra -pedantic -g -Wall -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o ccfa ccfa.o -L/var/tmp/paludis/media-libs-libopenraw-0.0.5/work/libopenraw-0.0.5/lib ../lib/.libs/libopenraw.a -lstdc++ /usr/lib64/libjpeg.so gcc -march=native -O2 -pipe -Wextra -pedantic -g -Wall -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o gdk gdk-gdk.o -L/var/tmp/paludis/media-libs-libopenraw-0.0.5/work/libopenraw-0.0.5/gnome ../gnome/.libs/libopenrawgnome.a /var/tmp/paludis/media-libs-libopenraw-0.0.5/work/libopenraw-0.0.5/lib/.libs/libopenraw.a -lstdc++ /usr/lib64/libjpeg.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgio-2.0.so -lm /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so make[2]: Leaving directory `/var/tmp/paludis/media-libs-libopenraw-0.0.5/work/libopenraw-0.0.5/demo' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/paludis/media-libs-libopenraw-0.0.5/work/libopenraw-0.0.5' make: *** [all] Error 2 /usr/libexec/paludis/utils/emake: emake returned error 2 !!! ERROR in media-libs/libopenraw-0.0.5: !!! In src_compile at line 3444 !!! emake failed.
Created attachment 184790 [details, diff] patch to make it build with gcc 4.4 (added #include <cstdio> in two cpp files)
Created attachment 184791 [details] updated ebuild with new epatch line
Created attachment 189804 [details, diff] http://bugs.gentoo.org/attachment.cgi?id=184790 Updated patch for 0.0.6
Created attachment 189809 [details, diff] The same patch as before but added missing #include <inttypes.h> Ups. Now it should be the correct patch.
Fixed with 0.0.7 in-tree, thanks :)