Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409161 - app-admin/keepassx fails to build with gcc-4.7
Summary: app-admin/keepassx fails to build with gcc-4.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dror Levin (RETIRED)
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.7
  Show dependency tree
 
Reported: 2012-03-21 12:07 UTC by brankob
Modified: 2012-04-20 23:07 UTC (History)
3 users (show)

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


Attachments
new ebuild (keepassx-0.4.3-r1.ebuild,1.12 KB, text/plain)
2012-03-21 12:07 UTC, brankob
Details
patch for compiling with gcc-4.7.0_rc* (gcc-4.7.0.patch,258 bytes, patch)
2012-03-21 12:08 UTC, brankob
Details | Diff
emerge --info (eminfo.txt,7.70 KB, text/plain)
2012-03-21 12:35 UTC, brankob
Details
portage log file (app-admin:keepassx-0.4.3:20120321-142822.log,19.60 KB, text/plain)
2012-03-21 12:36 UTC, brankob
Details

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