Several source files in the gnubiff source tree call exit without explicitly #including <stlib.h>. This works with <gcc4.3, but not with 4.3.
Steps to Reproduce:
1. Emerge >=gcc 4.3
2. Try to emerge gnubiff
"exit not declared in this scope"
Source files should have
Created attachment 163429 [details, diff]
Patch that allows gnubiff to compile with gcc 4.3
Created attachment 163431 [details]
Modified ebuild to pull in the above patch.
Is this getting fixed any time soon?
(In reply to comment #3)
> Is this getting fixed any time soon?
This is a copy of an email I sent to the poster above. This is for anyone needing to fix this on their own box while waiting on this package's maintainer to update the ebuild:
I contributed the gnubiff/gcc4.3 patch. I can't get it into portage
myself, but I can tell you how to emerge a fixed version for your own
ebuild /usr/portage/net-mail/gnubiff/gnubiff-2.2.10.ebuild unpack
[Now use whatever editor you like to add this line:]
[to the following three files in this directory:]
[Add the "#include <stdlib.h>" near the top of each file where there are
other "#include" lines.]
ebuild /usr/portage/net-mail/gnubiff/gnubiff-2.2.10.ebuild compile
ebuild /usr/portage/net-mail/gnubiff/gnubiff-2.2.10.ebuild install
ebuild /usr/portage/net-mail/gnubiff/gnubiff-2.2.10.ebuild qmerge
This will give you a proper compiled version without using an overlay or
building outside of portage.
Hopefully whoever is responsible for this ebuild will update it soon. If
not, I've contributed the patch upstream as well, and the gnubiff crew has
added it to their CVS, so eventually, even if Gentoo doesn't move on it,
it will resolve itself.
+ 21 Oct 2008; Peter Alfredsen <firstname.lastname@example.org>
+ +files/gnubiff-2.2.10-gcc43.patch, gnubiff-2.2.10.ebuild:
+ Fix compilation with gcc-4.3. Bug 235320. Thanks to A. Frederick
+ Christensen <email@example.com>.