Hi, I tried to emerge teknap-1.3g on my machine but it fails with this error: gcc -march=pentium3 -O3 -pipe -Wall -I./../include -I/var/tmp/portage/teknap-1.3g/work/TekNap/include -c status.c status.c:48:32: pasting "*" and "status_nickname" does not give a valid preprocessing token status.c:49:34: pasting "*" and "status_query_nick" does not give a valid preprocessing token status.c:50:37: pasting "*" and "status_right_justify" does not give a valid preprocessing token status.c:51:31: pasting "*" and "status_channel" does not give a valid preprocessing token status.c:52:30: pasting "*" and "status_server" does not give a valid preprocessing token status.c:53:35: pasting "*" and "status_insert_mode" does not give a valid preprocessing token status.c:54:38: pasting "*" and "status_overwrite_mode" does not give a valid preprocessing token status.c:55:28: pasting "*" and "status_user" does not give a valid preprocessing token status.c:56:31: pasting "*" and "status_version" does not give a valid preprocessing token status.c:57:29: pasting "*" and "status_clock" does not give a valid preprocessing token status.c:58:34: pasting "*" and "status_hold_lines" does not give a valid preprocessing token status.c:59:30: pasting "*" and "status_window" does not give a valid preprocessing token status.c:60:30: pasting "*" and "status_refnum" does not give a valid preprocessing token status.c:61:37: pasting "*" and "status_null_function" does not give a valid preprocessing token status.c:62:38: pasting "*" and "status_notify_windows" does not give a valid preprocessing token status.c:63:38: pasting "*" and "status_cpu_saver_mode" does not give a valid preprocessing token status.c:64:32: pasting "*" and "status_position" does not give a valid preprocessing token status.c:65:34: pasting "*" and "status_scrollback" does not give a valid preprocessing token status.c:66:31: pasting "*" and "status_percent" does not give a valid preprocessing token status.c:67:28: pasting "*" and "status_hold" does not give a valid preprocessing token status.c:68:36: pasting "*" and "status_server_stats" does not give a valid preprocessing token status.c:69:31: pasting "*" and "napster_updown" does not give a valid preprocessing token status.c:70:31: pasting "*" and "napster_shared" does not give a valid preprocessing token status.c:71:33: pasting "*" and "napster_download" does not give a valid preprocessing token status.c:72:35: pasting "*" and "napster_load_share" does not give a valid preprocessing token status.c:73:27: pasting "*" and "status_eta" does not give a valid preprocessing token status.c:74:33: pasting "*" and "status_usercount" does not give a valid preprocessing token status.c:75:29: pasting "*" and "status_cloak" does not give a valid preprocessing token status.c:76:27: pasting "*" and "status_lag" does not give a valid preprocessing token status.c:77:29: pasting "*" and "status_topic" does not give a valid preprocessing token status.c:78:32: pasting "*" and "status_sharedir" does not give a valid preprocessing token status.c:79:34: pasting "*" and "status_windowspec" does not give a valid preprocessing token status.c:80:35: pasting "*" and "status_scroll_info" does not give a valid preprocessing token status.c: In function `make_status': status.c:1238: warning: dereferencing type-punned pointer will break strict-aliasing rules status.c:1305:32: pasting "*" and "status_nickname" does not give a valid preprocessing token status.c:1318:30: pasting "*" and "status_server" does not give a valid preprocessing token status.c:1423:34: pasting "*" and "status_query_nick" does not give a valid preprocessing token status.c:1436:37: pasting "*" and "status_right_justify" does not give a valid preprocessing token status.c:1443:38: pasting "*" and "status_notify_windows" does not give a valid preprocessing token status.c:1472:29: pasting "*" and "status_clock" does not give a valid preprocessing token status.c:1485:31: pasting "*" and "status_channel" does not give a valid preprocessing token status.c:1504:35: pasting "*" and "status_insert_mode" does not give a valid preprocessing token status.c:1515:38: pasting "*" and "status_overwrite_mode" does not give a valid preprocessing token status.c:1529:28: pasting "*" and "status_hold" does not give a valid preprocessing token status.c:1538:30: pasting "*" and "status_window" does not give a valid preprocessing token status.c:1547:30: pasting "*" and "status_refnum" does not give a valid preprocessing token status.c:1554:31: pasting "*" and "status_version" does not give a valid preprocessing token status.c:1561:38: pasting "*" and "status_cpu_saver_mode" does not give a valid preprocessing token status.c:1574:37: pasting "*" and "status_null_function" does not give a valid preprocessing token status.c:1580:32: pasting "*" and "status_position" does not give a valid preprocessing token status.c:1589:34: pasting "*" and "status_scrollback" does not give a valid preprocessing token status.c:1599:31: pasting "*" and "status_percent" does not give a valid preprocessing token status.c:1605:36: pasting "*" and "status_server_stats" does not give a valid preprocessing token status.c:1638:31: pasting "*" and "napster_shared" does not give a valid preprocessing token status.c:1649:31: pasting "*" and "napster_updown" does not give a valid preprocessing token status.c:1673:27: pasting "*" and "status_eta" does not give a valid preprocessing token status.c:1690:33: pasting "*" and "napster_download" does not give a valid preprocessing token status.c:1737:35: pasting "*" and "napster_load_share" does not give a valid preprocessing token status.c:1764:33: pasting "*" and "status_usercount" does not give a valid preprocessing token status.c:1781:29: pasting "*" and "status_cloak" does not give a valid preprocessing token status.c:1790:27: pasting "*" and "status_lag" does not give a valid preprocessing token status.c:1803:29: pasting "*" and "status_topic" does not give a valid preprocessing token status.c:1818:32: pasting "*" and "status_sharedir" does not give a valid preprocessing token status.c:1831:34: pasting "*" and "status_windowspec" does not give a valid preprocessing token status.c:1842:28: pasting "*" and "status_user" does not give a valid preprocessing token status.c:1894:35: pasting "*" and "status_scroll_info" does not give a valid preprocessing token status.c:1914:34: pasting "*" and "status_hold_lines" does not give a valid preprocessing token gmake[1]: *** [status.o] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/teknap-1.3g/work/TekNap/source' make: *** [TekNap] Error 2 !!! ERROR: net-p2p/teknap-1.3g failed. !!! Function src_compile, Line 34, Exitcode 2 !!! (no error message) Could this be a gcc3 oriented problem? Error happens on this system: Igor:~ # emerge --info Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.24) ================================================================= System uname: 2.4.24 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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/init.d /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://192.168.0.254/gentoo-portage" USE="acl acpi apm berkdb crypt directfb fastcgi fbcon gdbm innodb ipv6 jpeg libwww mmx ncurses nls pam perl php python readline samba slang snmp sse ssl unicode x86 xml xml2 zlib" Bye
the homepage for this package doesn't even exist any more...
a added a new ebuild for a newer version, but it's still having the same problem... looks liek it's probably because of the new version of gcc... the bug is upstream.
there is a patch available at: http://gd.tuwien.ac.at/opsys/linux/lunar/patches/teknap-1.4-gcc3.3.patch . to compile with gcc-3.4 some more, minor changes are needed in 2 files (iirc). I made a patch for these tiny changes, which I could provide. I packed the whole thing up for my friends at: http://faerber.no-ip.org/~sven/teknap-1.4.1-r1.ebuild.tar.bz2 . btw it also works fine with amd64.
I was able to successfully build teknap with your ebuild though there were many warnings during compilation. Thank you Sven :) I just had to change KEYWORDS from -x86 to ~x86 and add net-p2p/teknap to my /etc/portage/package.umask to get this merging. Reopened this bug. Poly
bouncing back to herd... squinky86 is doing net-p2p now.
please provide your patch and updates here in bugzilla
Created attachment 33791 [details] patch for TekNap-1.4 This is the patch from http://www.cactuz.org/jnbek/teknap/ You can also find TekNap-1.4 there. As far as I could see on the debian-hp this patch is also used in their packages. Poly
Created attachment 33793 [details] gcc-3.3 patch
Created attachment 33794 [details] gcc-3.4 patch Alright. I was a little bit too fast in #7. These two patches are also necessary to make TekNap compile with the corresponding gcc-versions. I only checked this with gcc-3.3.2 and 3.3.3 thus I don't have a gcc-3.4 system atm. The patches are taken from teknap-1.4.1-r1.ebuild.tar.bz2 posted in #3 Poly
can anyone verify that this program is _working_? I seem to get random segfaults.
I got it running on two machines atm. # emerge --info Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26) ================================================================= System uname: 2.4.26 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.254/gentoo-portage" USE="acl acpi apache2 apm berkdb crypt directfb fastcgi fbcon gdbm innodb ipv6 jpeg libwww maildir mmx ncurses nls pam perl php python readline samba slang snmp sse ssl unicode x86 xml xml2 zlib" # emerge --info Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) XP 2800+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/X11/gdm /etc/gconf /etc/gnome /etc/gnome-vfs-2.0 /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/home/portage/packages" PORTAGE_TMPDIR="/home/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.254/gentoo-portage" USE="3dnow X acpi alsa apm avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif gtk gtk2 imlib java jpeg kde libg++ libwww linguas_de mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml xml2 xmms xv zlib" on the pentium machine TekNap is running 24h/day as a bot. No segfaults so far but some weird problems with resolving DNS names after a line disconnect. Poly P.S.: I'll try it on my gcc-3.4 installation when it finished building of kde
Created attachment 33948 [details] packed ebuild with all previous attached patches applied Alright, teknap also compiled with gcc-3.4 $ emerge --info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.4.20040605-r1, 2.6.6-r1) ================================================================= System uname: 2.6.6-r1 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/X11/gdm /etc/gconf /etc/gnome /etc/gnome-vfs-2.0 /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.254/gentoo-portage" USE="3dnow X acl acpi alsa apm avi berkdb cdr crypt cups dvd dvdr encode foomaticdb gdbm gif gtk gtk2 imlib jpeg kde libg++ libwww linguas_de mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tiff truetype x86 xml xml2 xmms xv zlib" I used the attached ebuild to build teknap on all three machines. Poly
now in portage :). Thank you!