Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226857 - x11-misc/fbpager-0.1.4 fails to compile w/ gcc-4.3
Summary: x11-misc/fbpager-0.1.4 fails to compile w/ gcc-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Commonbox Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-06-14 17:52 UTC by Marek Miller
Modified: 2008-07-20 21:09 UTC (History)
0 users

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


Attachments
fbpager-0.1.4-gcc43.patch (fbpager-0.1.4-gcc43.patch,1.48 KB, patch)
2008-06-14 17:52 UTC, Marek Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>.
+