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

Bug 256777

Summary: [patch] sys-libs/libsmbios-2.0.3 Fails build with GCC-4.4 alphas
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: [OLD] GCC PortingAssignee: C├ędric Krier <cedk>
Status: RESOLVED FIXED    
Severity: minor CC: esigra, pacho
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505589
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226    
Attachments: files/gcc4.4.patch
libsmbios-2.0.3.ebuild

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-01-29 12:09:22 UTC
Due to some increased strictures, there needs to be explicit including of various files. The original debian bug shows more detail. 

Have created adapted patch and ebuild vs 2.0.3 

Reproducible: Always
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-01-29 12:10:16 UTC
Created attachment 180089 [details, diff]
files/gcc4.4.patch
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-01-29 12:11:04 UTC
Created attachment 180090 [details]
libsmbios-2.0.3.ebuild
Comment 3 Erik 2009-03-30 08:01:34 UTC
Just wondering why the patch adds sometimes stdio.h and sometimes cstdio. I thought that it should always be cstdio in cpp-files?
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2009-04-01 04:51:10 UTC
when using the .h versions, their functions are considered to be in the global namespace and don't need to be explicitly prefixed with std::.  it sometimes doesn't matter and sometimes does.

http://www.comeaucomputing.com/techtalk/#cname
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-11 16:46:21 UTC
+  11 Apr 2009; Peter Alfredsen <loki_val@gentoo.org>
+  +files/libsmbios-2.0.3-gcc44.patch, libsmbios-2.0.3.ebuild:
+  Fix bug 256777, failure with gcc-4.4. Thanks to Kent Fredric
+  <kentfredric@gmail.com> for the patch.
+