in correct c++ and you can't do void* p;int i=(int)p; but you have to do void* p;int i=(int)(long)p; because int and void* differ in size. centericq does not obey this and thus fails to compile on amd64 with gcc4.
Created attachment 75919 [details, diff] ${FILESDIR}/centericq-4.21.0-64bit.diff
Created attachment 75920 [details] updated ebuild
Unfortunately I do not have access to any 64bit platform :-(
The patch fixes the problem. But if you want to have one, maybe I can grant you access. Just contact me via jabber or mail (both lars@strojny.net)
The double casts are not the solution, you have to replace the ints with longs where they are declared and make sure it doesnt break anything..
Also, I would want such patches to go into upstream first.
I guess this is RESOLVED UPSTREAM then? either way, nothing to do for amd64...
*** Bug 147684 has been marked as a duplicate of this bug. ***
(In reply to comment #7) > I guess this is RESOLVED UPSTREAM then? either way, nothing to do for amd64... Well, this still doesn't compile on amd64, you should drop the keywords (definitely the stable ones) or let's drop this package altogether.
Thanks for the patch :)
I have just tried to compil the ebuild from today and I found that there is already an amd64 patch in it, but it fails : x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"kkconsui\" -DVERSION=\"0.1\" -DLOCALES_HACK=1 -DKTOOL_USE_FRIBIDI=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__G_CONFIG_H=1 -I. -I. -I../include -I../../kkstrtext -I../../kkstrtext-0.1 -O2 -march=k8 -pipe -I/usr/include -c texteditor.cc texteditor.cc: In static member function 'static int ktool::texteditor::findint(void*, void*)': texteditor.cc:1943: error: cast from 'void*' to 'int' loses precision make[4]: *** [texteditor.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/centericq-4.21.0-r2/work/centericq-4.21.0/kkconsui-0.1/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/centericq-4.21.0-r2/work/centericq-4.21.0/kkconsui-0.1/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/centericq-4.21.0-r2/work/centericq-4.21.0/kkconsui-0.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/centericq-4.21.0-r2/work/centericq-4.21.0' make: *** [all-recursive-am] Error 2 !!! ERROR: net-im/centericq-4.21.0-r2 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile centericq-4.21.0-r2.ebuild, line 76: Called die Portage 2.1.2_pre1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-rc5-mm1 x86_64) ================================================================= System uname: 2.6.18-rc5-mm1 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.5 Last Sync: Sun, 17 Sep 2006 07:30:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.6-r1, 2.0.28-r1 dev-lang/python: 2.3.5-r2, 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://www.gigaload.org/gentoo.org/ ftp://mirror.switch.ch/mirror/gentoo/" LC_ALL="en_GB.iso8859-15" LDFLAGS="-Wl,-O1 " LINGUAS="en ko" MAKEOPTS="-j1" 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" PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/local/portage /usr/portage/local/layman/portage-xgl" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 3dnowex 64bit 7zip X Xaw3d a52 aac aalib acl acpi aim aio alsa amr ansi aotuv apache2 apm asf async atlas auctex audacious audiofile avahi bash-completion batch berkdb bidi bitmap-fonts blas bonjour browserplugin buffysize buttons bzip2 bzlib cairo caps cdda cddb cdio cdparanoia cdr cg chroot cli corba crypt cscope css csv ctype cups curl curlwrappers daap dga dio directfb divx divx4linux djbfft djvu dlloader doc dri dts dv dvb dvd dvdr dvdread dvi dynagraph ecc effects elibc_glibc exif expat exscalibar ext-doc ext-dvi ext-gnumeric ext-koffice ext-kpresenter ext-kspread ext-kword ext-lyx ext-man ext-openoffice ext-pdf ext-ppt ext-ps ext-rpm ext-rtf ext-tex ext-xls fame fat fbcon ffmpeg fftw firefox flac flood fltk fontconfig fortran fping fpx freetext gcl gd gdal gdbm general gg ggi gif gimp gimpprint ginac glibc-compat20 glibc-omitfp glitz glut glx gmedia gmp gmtfull gmthigh gmtsuppl gmttria gnutls gopher gpgme gpm grammar graphviz grass gs gstreamer gtalk gtk gtk2 gtkhtml guile h323 hal hdf5 httpd icq id3 idn ieee1394 imagemagick input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irc isdnlog ithreads jabber java javascript jbig jikes jp2 jpeg jpeg2k kernel_linux kig-scripting lame lapack latex lcms ldap libcaca libedit libg++ libsamplerate libtommath libvisual libwww linguas_en linguas_ko live lj lm_sensors logitech-mouse logrotate lzo mad matroska mbox mikmod mime mimencode mjpeg mng mod motif moznocompose moznoirc moznomail moznoroaming mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer msn msnextras musepack mythtv nautilus ncurses nethack netpbm network nfs nls nntp normalizemime nptl nptlonly nsplugin nvidia nvram offensive ogg oggvorbis on-the-fly-crypt openexr opengl openssl oscar pam pcre pda pdf perl player plotutils png posix ppds pppd preview-latex python pyzor qhull quicktime rar readline recode reflection reiser4 reiserfs rss rtc rtsp sasl screen sdl session shout sid silc slang slp smime sms sndfile sourcecaps sox speex spell spl srt sse-filters ssl stream subtitles svg svgz szip tcltk tcpd tetex theora thesaurus threads tiff tomsfastmath tools transcode truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales utf8 uudeview v4l v4l2 vcd vcdimager vdr video_cards_ati video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa video_cards_vga vim vim-pager vim-with-x vlm vorbis webdav wma wma123 wmf wmp wordperfect wv wxgtk1 wxwindows x264 xanim xattr xchattext xext xfs xine xinerama xinetd xml xml2 xmms xorg xprint xv xvid xvmc yahoo zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_RSYNC_EXTRA_OPTS
Oops, sorry, adding your patch and my centericq compil just fine :-) Thank you very much
The patch don't work for me: * Applying centericq-4.21.0-64bit.diff ... * Failed Patch: centericq-4.21.0-64bit.diff ! * ( /usr/portage/net-im/centericq/files/centericq-4.21.0-64bit.diff ) * * Include in your bugreport the contents of: * * /var/tmp/portage/centericq-4.21.0-r2/temp/centericq-4.21.0-64bit.diff-30091.out for centericq-4.21.0-64bit.diff-30091.out see: http://nopaste.info/e88bba9a32_nl.html
i just merged centericq qithout any problem; net-im/centericq-4.21.0-r2 USE="crypt nls ssl -aim -bidi -icq -irc -jabber -lj -msn -rss -yahoo" emerge --info Portage 2.1.2_pre1 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64) ================================================================= System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Gentoo Base System version 1.12.5 Last Sync: Mon, 18 Sep 2006 16:30:01 +0000 ccache version 2.4 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.6-r1, 2.0.28-r1 dev-lang/python: 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" 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" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo " MAKEOPTS="-j3" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa amd apm avi berkdb bitmap-fonts cli crypt cups dlloader dri dvdr dvdread eds elibc_glibc emboss encode foomaticdb fortran gif gpm gstreamer gtk gtk2 imlib input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux logrotate lzw lzw-tiff mikmod mp3 mpeg ncurses nls nptl nptlonly opengl pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse3 ssl tcpd tiff truetype-fonts type1-fonts usb userland_GNU video_cards_nv video_cards_nvidia xorg xpm xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
In reference to comment #14, Does centericq with those use flags do anything?
(In reply to comment #15) > In reference to comment #14, > Does centericq with those use flags do anything? > u're right, tested again with all variations of useflages, none will compile cleanly, always the same error as shown in reply 11.
*** Bug 149276 has been marked as a duplicate of this bug. ***
Any suggestions?
why you did not change for example: i=(int)p to i=(intptr_t)p i tried it and it works well
Comment on attachment 75919 [details, diff] ${FILESDIR}/centericq-4.21.0-64bit.diff This patch does not fix any issue, it just tricks out gcc checks.
Created attachment 99624 [details] new ebuild and working patch this is a working ebuild and patch for amd64. could be added to portage
created ebuild and patch from comment 19 works like a charm on my amd64. please add to portage or else mark it as unstable.. cause its not for amd64
Your patches are still buggy. First, in centericq-4.21.0-ostrica-patch.diff it should be kkconsui-0.1/src/texteditor.cc rather then kkconsui-0.1/texteditor.cc and second it doesn't compile on my amd64 machine anyway ;-) x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../src/hooks -I../connwrap-0.1 -I../firetalk-0.1 -I../firetalk-0.1/../connwrap -I../firetalk-0.1/../connwrap-0.1 -I../kkconsui-0.1 -I../kkconsui-0.1/include -I../kkconsui-0.1/../kkstrtext -I../kkconsui-0.1/../kkstrtext-0.1 -I../kkstrtext-0.1 -I../kksystr-0.1 -I../kksystr-0.1/include -I../kksystr-0.1/../kkstrtext -I../kksystr-0.1/../kkstrtext-0.1 -I../libgadu-0.1 -I../libicq2000-0.1 -I../libicq2000-0.1/libicq2000 -I../libjabber-0.1 -I../libjabber-0.1/../connwrap -I../libjabber-0.1/../connwrap-0.1 -I../libmsn-0.1 -I../libmsn-0.1/../connwrap -I../libmsn-0.1/../connwrap-0.1 -I../libyahoo2-0.1 -I../libyahoo2-0.1/../connwrap -I../libyahoo2-0.1/../connwrap-0.1 -I../intl -DSHARE_DIR=\"/usr/share/centericq\" -DLOCALEDIR=\"/usr/share/locale\" -O2 -pipe -march=athlon64 -fomit-frame-pointer -I/usr/include/gpgme -c icqface.cc icqface.cc: In member function
Your patches are still buggy. First, in centericq-4.21.0-ostrica-patch.diff it should be kkconsui-0.1/src/texteditor.cc rather then kkconsui-0.1/texteditor.cc and second it doesn't compile on my amd64 machine anyway ;-) x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../src/hooks -I../connwrap-0.1 -I../firetalk-0.1 -I../firetalk-0.1/../connwrap -I../firetalk-0.1/../connwrap-0.1 -I../kkconsui-0.1 -I../kkconsui-0.1/include -I../kkconsui-0.1/../kkstrtext -I../kkconsui-0.1/../kkstrtext-0.1 -I../kkstrtext-0.1 -I../kksystr-0.1 -I../kksystr-0.1/include -I../kksystr-0.1/../kkstrtext -I../kksystr-0.1/../kkstrtext-0.1 -I../libgadu-0.1 -I../libicq2000-0.1 -I../libicq2000-0.1/libicq2000 -I../libjabber-0.1 -I../libjabber-0.1/../connwrap -I../libjabber-0.1/../connwrap-0.1 -I../libmsn-0.1 -I../libmsn-0.1/../connwrap -I../libmsn-0.1/../connwrap-0.1 -I../libyahoo2-0.1 -I../libyahoo2-0.1/../connwrap -I../libyahoo2-0.1/../connwrap-0.1 -I../intl -DSHARE_DIR=\"/usr/share/centericq\" -DLOCALEDIR=\"/usr/share/locale\" -O2 -pipe -march=athlon64 -fomit-frame-pointer -I/usr/include/gpgme -c icqface.cc icqface.cc: In member function âicqcontact* icqface::mainloop(int&)â: icqface.cc:516: error: cast from âicqcontact*â to âunsigned intâ loses precision icqface.cc: In member function âvoid icqface::quickfind(ktool::verticalmenu*)â: icqface.cc:2135: error: cast from âicqcontact*â to âunsigned intâ loses precision make[3]: *** [icqface.o] Error 1
The patch found here: http://bugs.gentoo.org/attachment.cgi?id=98209 works quite well, so that it compiles fine on my machine (Portage 2.1.1-r1 (hardened/amd64, gcc-4.1.1, glibc-2.4-r3, 2.6.16-hardened-r11 x86_64). Maybe someone could add a new ebuild with that working patch to portage...
We're over two months later now and centericq-4.21.0-r2 is *still* marked as stable on amd64, even though it doesn't compile. Is there any patch going to be put in Portage?
package.masked pending removal for Bug 160793...
Let's dupe it then, since the resolution is the same. *** This bug has been marked as a duplicate of bug 160793 ***