Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148820 - x11-misc/xdiskusage-1.48 fails to compile--void* to int casts
Summary: x11-misc/xdiskusage-1.48 fails to compile--void* to int casts
Status: RESOLVED DUPLICATE of bug 135633
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 11:38 UTC by Ben Johnson
Modified: 2008-09-23 10:38 UTC (History)
1 user (show)

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


Attachments
This lets it compile. (xdiskusage.C.patch,717 bytes, patch)
2006-09-23 11:41 UTC, Ben Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Johnson 2006-09-23 11:38:44 UTC
The error:

...
creating makeinclude
c++ -O2 -pipe -march=athlon64 -msse3 -I/usr/include/fltk-1.1 -I/usr/include/freetype2 -O2 -pipe -march=athlon64 -msse3 -c xdiskusage.C
xdiskusage.C: In static member function 'static void OutputWindow::sort_cb(Fl_Widget*, void*)':
xdiskusage.C:991: error: cast from 'void*' to 'int' loses precision
xdiskusage.C: In static member function 'static void OutputWindow::columns_cb(Fl_Widget*, void*)':
xdiskusage.C:1004: error: cast from 'void*' to 'int' loses precision
make: *** [xdiskusage.o] Error 1

!!! ERROR: x11-misc/xdiskusage-1.48 failed.
...


emerge.info:
Gentoo Base System version 1.12.5
Portage 2.1.1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Last Sync: Mon, 18 Sep 2006 02:30:01 +0000
distcc[23138] (dcc_mkdir) ERROR: mkdir /var/tmp/portage/.distcc//state failed: No such file or directory [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /usr/X11R6/bin/startx"
CXXFLAGS="-O2 -pipe -march=athlon64 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/ http://mirror.phy.olemiss.edu/mirror/gentoo"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
USE="amd64 X aalib acpi aim alsa asf audiofile berkdb bitmap-fonts bonobo bzip2 cdr cli crypt cups curl directfb dlloader doc dri dv dvd dvdr dvdread elibc_glibc exif fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imap input_devices_keyboard input_devices_mouse ipv6 isdnlog jack java jikes jpeg kernel_linux lcms libg++ linguas_en mng mozilla mp3 mpeg msn ncurses netboot nls nptl nptlonly openal opengl oscar pam pcre perl png ppds pppd python readline reflection samba session slang spl ssl tcltk tcpd tetex tga tiff tk truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nvidia wmf wxwindows xft xine xinerama xml xml2 xmms xorg xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Ben Johnson 2006-09-23 11:41:39 UTC
Created attachment 97882 [details, diff]
This lets it compile.

I made this with "diff -uN"--sort of unfamiliar with the whole process--sorry if that's wrong. The ebuild will need to be changed to only apply this on AMD64.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-23 11:51:34 UTC

*** This bug has been marked as a duplicate of 135633 ***