Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 265750

Summary: media-libs/libofa-0.9.3 patch for GCC-4.4
Product: Gentoo Linux Reporter: Andreas Sturmlechner <asturm>
Component: [OLD] GCC PortingAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226    
Attachments: adding stdio.h header to examples.cpp
new ebuild to make use of the patch
patch for libofa ebuild

Description Andreas Sturmlechner gentoo-dev 2009-04-11 11:34:17 UTC
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. :)
Comment 1 Andreas Sturmlechner gentoo-dev 2009-04-11 11:36:05 UTC
Created attachment 187971 [details, diff]
adding stdio.h header to examples.cpp
Comment 2 Andreas Sturmlechner gentoo-dev 2009-04-11 11:37:27 UTC
Created attachment 187973 [details]
new ebuild to make use of the patch
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-11 11:48:34 UTC
Please attach unified diffs (diff -u) when you did changes to an ebuild. That
would be much more handy for our devs.
Comment 4 Andreas Sturmlechner gentoo-dev 2009-04-11 12:05:56 UTC
I'll do that in the following bug report, thanks for your input.
Comment 5 SpanKY gentoo-dev 2009-04-11 15:21:47 UTC
patch looks fine of course
Comment 6 Andreas Sturmlechner gentoo-dev 2009-04-11 15:59:49 UTC
Created attachment 187993 [details, diff]
patch for libofa ebuild

hm, might as well do it here.
Comment 7 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-11 16:28:24 UTC
+  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.
+