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. Reproducible: Always Steps to Reproduce: 1. Emerge >=gcc 4.3 2. Try to emerge gnubiff Actual Results: "exit not declared in this scope" Failed emerge. Expected Results: Source files should have #include <stdlib.h>
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: --------------------- Hi, 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 machine: ebuild /usr/portage/net-mail/gnubiff/gnubiff-2.2.10.ebuild unpack cd /var/tmp/portage/net-mail/gnubiff-2.2.10/work/ [Now use whatever editor you like to add this line:] #include <stdlib.h> [to the following three files in this directory:] gnubiff.cc gui.cc signals.cc [Add the "#include <stdlib.h>" near the top of each file where there are other "#include" lines.] [Then run:] 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 <loki_val@gentoo.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 <christendoc@nosocomia.com>. +