media-libs/libofa-0.9.3 fails without patching for gcc-4.4: example.cpp: In function ‘int main(int, char**)’: example.cpp:40: error: ‘printf’ was not declared in this scope example.cpp:44: error: ‘printf’ was not declared in this scope example.cpp:48: error: ‘printf’ was not declared in this scope example.cpp:54: error: ‘printf’ was not declared in this scope example.cpp:63: error: ‘printf’ was not declared in this scope example.cpp:66: error: ‘printf’ was not declared in this scope It's a dependency of amarok-1.4.10 and picard-0.11, so I decided to create a patch. My first one. :)
Created attachment 187971 [details, diff] adding stdio.h header to examples.cpp
Created attachment 187973 [details] new ebuild to make use of the patch
Please attach unified diffs (diff -u) when you did changes to an ebuild. That would be much more handy for our devs.
I'll do that in the following bug report, thanks for your input.
patch looks fine of course
Created attachment 187993 [details, diff] patch for libofa ebuild hm, might as well do it here.
+ 11 Apr 2009; Peter Alfredsen <loki_val@gentoo.org> + +files/libofa-0.9.3-gcc-4.4.patch, libofa-0.9.3.ebuild: + Fix bug 265750, failure with gcc-4.4. Thanks to Andreas Sturmlechner + <andreas.sturmlechner@gmail.com> for the patch. +