Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235320 - net-mail/gnubiff-2.2.10 does not compile properly with gcc 4.3
Summary: net-mail/gnubiff-2.2.10 does not compile properly with gcc 4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-08-20 23:32 UTC by A Frederick Christensen
Modified: 2008-10-21 15:02 UTC (History)
1 user (show)

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


Attachments
Patch that allows gnubiff to compile with gcc 4.3 (gcc-4.3.patch,977 bytes, patch)
2008-08-20 23:33 UTC, A Frederick Christensen
Details | Diff
Modified ebuild to pull in the above patch. (gnubiff-2.2.10.ebuild,1.16 KB, text/plain)
2008-08-20 23:34 UTC, A Frederick Christensen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A Frederick Christensen 2008-08-20 23:32:34 UTC
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>
Comment 1 A Frederick Christensen 2008-08-20 23:33:57 UTC
Created attachment 163429 [details, diff]
Patch that allows gnubiff to compile with gcc 4.3
Comment 2 A Frederick Christensen 2008-08-20 23:34:27 UTC
Created attachment 163431 [details]
Modified ebuild to pull in the above patch.
Comment 3 Taiyang Chen 2008-09-23 15:42:56 UTC
Is this getting fixed any time soon?
Comment 4 A Frederick Christensen 2008-09-23 22:57:26 UTC
(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.

Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2008-10-21 15:02:13 UTC
+  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>.
+