Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131282 - net-nntp/nzbget-0.2.3 build fails: cast from char* to int loses precision
Summary: net-nntp/nzbget-0.2.3 build fails: cast from char* to int loses precision
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-04-25 16:41 UTC by Jose daLuz
Modified: 2006-05-07 03:34 UTC (History)
2 users (show)

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


Attachments
gcc-4.1 patch (nzbget-0.2.3-gcc41.patch,1.62 KB, patch)
2006-05-01 18:19 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose daLuz 2006-04-25 16:41:33 UTC
I tried emerging nzbget-0.2.3 for the first time and ran into this error:

x86_64-pc-linux-gnu-g++ -c -I./uulib -I.  -D_GNU_SOURCE -I/usr/include/g++ -I/usr/include/libxml2 -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -march=k8 -O2 -pipe -DHAVE_CONFIG_H -DVERSION=\"0.2.3\" -o ArticleDownloader.o ArticleDownloader.cpp
ArticleDownloader.cpp: In member function 
Comment 1 Jose daLuz 2006-04-25 16:41:33 UTC
I tried emerging nzbget-0.2.3 for the first time and ran into this error:

x86_64-pc-linux-gnu-g++ -c -I./uulib -I.  -D_GNU_SOURCE -I/usr/include/g++ -I/usr/include/libxml2 -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -march=k8 -O2 -pipe -DHAVE_CONFIG_H -DVERSION=\"0.2.3\" -o ArticleDownloader.o ArticleDownloader.cpp
ArticleDownloader.cpp: In member function virtual void ArticleDownloader::Run():
ArticleDownloader.cpp:187: error: cast from char* to int loses precision
make: *** [ArticleDownloader.o] Error 1

!!! ERROR: net-nntp/nzbget-0.2.3 failed.

After running into a couple of packages recently that only failed with the debug USE flag set, I tried with USE="-debug" but that made no difference here.

Portage 2.1_pre9-r4 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-ck6-r1 x86_64)
=================================================================
System uname: 2.6.16-ck6-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre18
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
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-r1, 2.16.91.0.6, 2.16.91.0.7, 2.16.92
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/gentopia /usr/local/xgl-coffee /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups dbus debug dri dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib ipv6 isdnlog java jpeg kde ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl pic png pppd python qt quicktime readline reflection ruby samba sdl session spell spl sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb vorbis xml2 xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vesa video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2006-05-01 18:19:54 UTC
Created attachment 85957 [details, diff]
gcc-4.1 patch

This should make it happy, give it a try.
Comment 3 Jose daLuz 2006-05-01 18:46:55 UTC
(In reply to comment #1)
> This should make it happy, give it a try.
> 
It does indeed, thanks.

FYI, this seems to be one of the packages that doesn't like building with the debug USE flag. The error with debug (which I didn't get originally because of the bug you fixed) is:

c++ -c -I./uulib -I.  -D_GNU_SOURCE -I/usr/include/g++ -I/usr/include/libxml2 -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -march=k8 -O2 -pipe -DHAVE_CONFIG_H -DVERSION=\"0.2.3\" -o global.o global.cpp
global.cpp:41: error: expected unqualified-id before 
Comment 4 Jose daLuz 2006-05-01 18:46:55 UTC
(In reply to comment #1)
> This should make it happy, give it a try.
> 
It does indeed, thanks.

FYI, this seems to be one of the packages that doesn't like building with the debug USE flag. The error with debug (which I didn't get originally because of the bug you fixed) is:

c++ -c -I./uulib -I.  -D_GNU_SOURCE -I/usr/include/g++ -I/usr/include/libxml2 -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -march=k8 -O2 -pipe -DHAVE_CONFIG_H -DVERSION=\"0.2.3\" -o global.o global.cpp
global.cpp:41: error: expected unqualified-id before do
global.cpp:41: error: expected unqualified-id before while
make: *** [global.o] Error 1

!!! ERROR: net-nntp/nzbget-0.2.3 failed.

Let me know if you would like me to file a separate bug on this.
Comment 5 Sven Wegener gentoo-dev 2006-05-07 03:34:55 UTC
No need to file a separate bug, I just fixed it. Thanks all!