Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90954 - eboard-0.95 doesnt compile on ~amd64 with gcc 4, here is a patch that made it compile on my computer.
Summary: eboard-0.95 doesnt compile on ~amd64 with gcc 4, here is a patch that made it...
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-30 02:00 UTC by Alexis Ballier
Modified: 2005-06-22 07:39 UTC (History)
2 users (show)

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


Attachments
The patch. (gcc4.patch,1.74 KB, patch)
2005-04-30 02:01 UTC, Alexis Ballier
Details | Diff
The modified ebuild that applies the patch. (eboard-0.9.5-r1.ebuild,1.83 KB, application/octet-stream)
2005-04-30 02:02 UTC, Alexis Ballier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2005-04-30 02:00:27 UTC
eboard-0.95 doesnt compile on ~amd64 with gcc 4, here is a patch that made it compile on my computer.

Details : 
pointers were casted to int's to print them on the c++ output stream "cerr". It handles well pointers, and (I think) on 64 bits systems pointers are 64 bits and int remains 32 bits, what makes gcc 4 considers it as an error.



However, I have a segfault using the eboard version in portage, while with the cvs version and this patch it works, but still segfaults when opening some menus. I don't know what's the cause of this.

Reproducible: Always
Steps to Reproduce:
1.emerge eboard with gcc 4.0 as compiler.
2.
3.

Actual Results:  
-> compile time error.
Comment 1 Alexis Ballier gentoo-dev 2005-04-30 02:01:34 UTC
Created attachment 57659 [details, diff]
The patch.
Comment 2 Alexis Ballier gentoo-dev 2005-04-30 02:02:54 UTC
Created attachment 57660 [details]
The modified ebuild that applies the patch.

Here is the modified ebuild that applies the patch which should be in the
files/ directory.
Comment 3 Alexis Ballier gentoo-dev 2005-04-30 02:03:48 UTC
I forgot my emerge --info :




Portage 2.0.51.20-r5 (default-linux/amd64/2005.0, gcc-4.0.0, glibc-2.3.5-r0, 2.6.11ac7 x86_64)
=================================================================
System uname: 2.6.11ac7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.11
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -funroll-loops -ffast-math -mfpmath=sse,387"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -funroll-loops -ffast-math -mfpmath=sse,387"
DISTDIR="/share/distfiles"
FEATURES="autoconfig buildsyspkg ccache distlocks fixpackages sandbox strict userpriv"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 3dnowext X aac acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cddb cdr crypt cups curl dba directfb dv dvd dvdr dvdread encode escreen esd faad fam fbdev ffmpeg flac font-server foomaticdb fortran gd gd-external gdbm gif gimp gnome gpm gtk gtk2 ide imagemagick imap imlib ipv6 irmc java jp2 jpeg jpeg2k latex libwww lirc lzw lzw-tiff mad maildir mp3 mpeg myqsl ncurses nls nptl nvidia offensive ogg oggvorbis opengl opie pam perl png ppds python readline real samba sms ssl stroke tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l2 vorbis xml2 xpm xprint xrandr xv xvid zlib"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2005-06-22 07:39:16 UTC
we have to wait for the next release, since (as you said) it won't work with
0.95. eboard's homepage says: Update (March 4th 2005): In case you're wondering,
the project isn't dead, but development is going really slow. Could you please
reopen when 0.96 (or whatever the next release will be) is released? thanks in
advance