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

Bug 409161

Summary: app-admin/keepassx fails to build with gcc-4.7
Product: Gentoo Linux Reporter: brankob
Component: Current packagesAssignee: Dror Levin (RETIRED) <spatz>
Status: RESOLVED FIXED    
Severity: normal CC: qt, tgurr, xarthisius
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/tracker/?func=detail&aid=3519324&group_id=166631&atid=839779
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247    
Attachments: new ebuild
patch for compiling with gcc-4.7.0_rc*
emerge --info
portage log file

Description brankob 2012-03-21 12:07:47 UTC
Created attachment 306163 [details]
new ebuild

I susspect this happens also with other gcc-4.7 versions.

It seems this is to missing include that is not default with new gcc. 

Here is new abuild and small patch.
Comment 1 brankob 2012-03-21 12:08:39 UTC
Created attachment 306165 [details, diff]
patch for compiling with gcc-4.7.0_rc*
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-03-21 12:19:52 UTC
Please attach full build.log and paste your emerge --info for completeness. TIA
Comment 3 brankob 2012-03-21 12:35:37 UTC
Created attachment 306175 [details]
emerge --info
Comment 4 brankob 2012-03-21 12:36:09 UTC
Created attachment 306177 [details]
portage log file
Comment 5 brankob 2012-03-21 12:39:06 UTC
It's just a case of missing #include <unistd.h> that was not needed with 4.6* and earlier.

I don't know if this is gcc-4.7* bug or feature, but it seems that at least several packages are affected by it...
Comment 6 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-03-21 12:54:38 UTC
(In reply to comment #5)
> It's just a case of missing #include <unistd.h> that was not needed with
> 4.6* and earlier.
> 
> I don't know if this is gcc-4.7* bug or feature, but it seems that at least
> several packages are affected by it...
It's a "feature" ;) and more than several are affected you can find a good estimate at fedora's ml[1]. Thanks again for the report. Assigning to the maintainers.

[1] https://lists.fedoraproject.org/pipermail/devel/2011-December/160723.html
Comment 7 Timo Gurr (RETIRED) gentoo-dev 2012-04-20 23:07:32 UTC
Reported upstream and fixed in CVS. Thanks.