Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431374 - www-plugins/lightspark-0.6.0.1 with <sys-devel/gcc-4.5 - .../work/lightspark-0.6.0.1/src/scripting/flash/display/BitmapData.cpp:125: error: 'class std::vector ...' has no member named 'shrink_to_fit'
Summary: www-plugins/lightspark-0.6.0.1 with <sys-devel/gcc-4.5 - .../work/lightspark-...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-14 13:20 UTC by Rafal Rzepecki
Modified: 2012-08-14 13:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Rzepecki 2012-08-14 13:20:27 UTC
Lightspark 0.6.0.1 uses std::vector::shrink_to_fit() from C++11, which isn't implemented in gcc < 4.5. Merging with gcc-4.4.5 fails with an error:

/tmp/paludis/www-plugins-lightspark-0.6.0.1/work/lightspark-0.6.0.1/src/scripting/flash/display/BitmapData.cpp:125: error: 'class std::vector<unsigned char, lightspark::reporter_allocator<unsigned char> >' has no member named 'shrink_to_fit'

(This should perhaps be pushed upstream after fixing the ebuild, the CMakeFile seems to check for 4.4 only, as well.)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-14 13:32:11 UTC
Maybe you should upgrade your base system packages instead.
Comment 2 Rafal Rzepecki 2012-08-14 13:34:39 UTC
Perhaps I should, but it doesn't change the fact that the dependency is wrong.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-08-14 13:53:26 UTC
The dependency is a remnant from times when gcc-4.5 was not stable. It has been dropped now.

Regarding the compilation failure, this is something which upstream needs to address.