Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262248 - media-libs/libopenraw-0.0.5 fails to build with gcc 4.4.x
Summary: media-libs/libopenraw-0.0.5 fails to build with gcc 4.4.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-12 10:32 UTC by Paul Mulders
Modified: 2009-04-29 09:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to make it build with gcc 4.4 (added #include <cstdio> in two cpp files) (gcc-4.4.patch,648 bytes, patch)
2009-03-12 10:36 UTC, Paul Mulders
Details | Diff
updated ebuild with new epatch line (libopenraw-0.0.5.ebuild,974 bytes, text/plain)
2009-03-12 10:36 UTC, Paul Mulders
Details
http://bugs.gentoo.org/attachment.cgi?id=184790 (gcc-4.4.patch,648 bytes, patch)
2009-04-29 06:27 UTC, Maciej Piechotka
Details | Diff
The same patch as before but added missing #include <inttypes.h> (gcc-4.4.patch,1.10 KB, patch)
2009-04-29 06:40 UTC, Maciej Piechotka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Mulders 2009-03-12 10:32:04 UTC
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.
Comment 1 Paul Mulders 2009-03-12 10:36:21 UTC
Created attachment 184790 [details, diff]
patch to make it build with gcc 4.4 (added #include <cstdio> in two cpp files)
Comment 2 Paul Mulders 2009-03-12 10:36:52 UTC
Created attachment 184791 [details]
updated ebuild with new epatch line
Comment 3 Maciej Piechotka 2009-04-29 06:27:26 UTC
Created attachment 189804 [details, diff]
http://bugs.gentoo.org/attachment.cgi?id=184790

Updated patch for 0.0.6
Comment 4 Maciej Piechotka 2009-04-29 06:40:00 UTC
Created attachment 189809 [details, diff]
The same patch as before but added missing #include <inttypes.h>

Ups. Now it should be the correct patch.
Comment 5 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-29 09:10:42 UTC
Fixed with 0.0.7 in-tree, thanks :)