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

Bug 226857

Summary: x11-misc/fbpager-0.1.4 fails to compile w/ gcc-4.3
Product: Gentoo Linux Reporter: Marek Miller <mlm>
Component: Current packagesAssignee: Commonbox Team <commonbox>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: fbpager-0.1.4-gcc43.patch

Description Marek Miller 2008-06-14 17:52:09 UTC
Again missing headers (and some more).

Steps to reproduce:
1. emerge -v1 =x11-misc/fbpager-0.1.4

The error messages:
1.
> StringUtil.cc: In function 'char* FbTk::StringUtil::strdup(const char*)':
> StringUtil.cc:46: error: 'strlen' was not declared in this scope
> StringUtil.cc:48: error: 'strncpy' was not declared in this scope

2.
> StringUtil.cc:166: error: no matching function for call to 'transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unresolved overloaded function type>)'

I don't understand the patch at all. I found similar problem on
http://www.virtualbox.org/attachment/ticket/936/gcc-4.3.patch
and simply copied the code.

Tested on x86
My emerge --info: as in the bug 226663, comment 2.
I include the patch.
Comment 1 Marek Miller 2008-06-14 17:52:36 UTC
Created attachment 156763 [details, diff]
fbpager-0.1.4-gcc43.patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-06-14 18:00:44 UTC
The patch looks good.
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-20 21:09:09 UTC
+  20 Jul 2008; Peter Alfredsen <loki_val@gentoo.org>
+  +files/fbpager-0.1.4-gcc43.patch, fbpager-0.1.4.ebuild:
+  Fix for gcc-4.3. Bug 226857. Thanks to Marek Miller <mlm@shells.pl>.
+