Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111321 - xfe 0.84 fails to compile with gcc-4.0.2-r1
Summary: xfe 0.84 fails to compile with gcc-4.0.2-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-02 23:16 UTC by Brian Merrill
Modified: 2005-12-28 12:04 UTC (History)
1 user (show)

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


Attachments
xfe-gcc4.patch (xfe-gcc4.patch,301 bytes, patch)
2005-11-02 23:18 UTC, Brian Merrill
Details | Diff
xfe-0.84.ebuild (xfe-0.84.ebuild,1.04 KB, text/plain)
2005-11-02 23:19 UTC, Brian Merrill
Details
xfe-0.84.ebuild (xfe-0.84.ebuild,1.01 KB, text/plain)
2005-11-02 23:34 UTC, Brian Merrill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Merrill 2005-11-02 23:16:51 UTC
xfe will fail to compile with the following error message.

FilePanel.cc: In member function 'long int
FilePanel::onCmdItemDblClcked(FX::FXObject*, FX::FXSelector, void*)':
FilePanel.cc:299: error: cast from 'void*' to 'int' loses precision
make[2]: *** [FilePanel.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/xfe-0.84/work/xfe-0.84/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xfe-0.84/work/xfe-0.84'
make: *** [all] Error 2

The fix to get it to properly compile should be relatively minor and involves
changing the above line to cast a long instead of an int.  A patch and updated
ebuild will be included below

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brian Merrill 2005-11-02 23:18:16 UTC
Created attachment 71987 [details, diff]
xfe-gcc4.patch
Comment 2 Brian Merrill 2005-11-02 23:19:08 UTC
Created attachment 71988 [details]
xfe-0.84.ebuild
Comment 3 Brian Merrill 2005-11-02 23:34:29 UTC
Created attachment 71990 [details]
xfe-0.84.ebuild
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-12-03 22:47:52 UTC
Looks good to me.  Did you push this upstream?
Comment 5 Brian Merrill 2005-12-05 10:13:01 UTC
The build error has been reported under Request ID #1346636 at
http://sourceforge.net/projects/xfe
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2005-12-28 12:04:32 UTC
Fixed, thanks.