Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17.11n i686) ================================================================= System uname: 2.6.17.11n i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.12.4 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /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/run/dspam" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE@euro" LINGUAS="de" MAKEOPTS="-j2" 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="x86 X acl alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt cups dlloader dri dvd dvdr eds emboss encode esd flac foomaticdb fortran gdbm gif gnome gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde ldap libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png postgres pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl sqlite ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_de userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 96555 [details] output of emerge =netwatch-1.0a using gcc 3.4.6
Created attachment 96556 [details] output of emerge =netwatch-1.0a using gcc 3.4.6
Created attachment 96557 [details] output of emerge =netwatch-1.0a using gcc-4.1.1
Created attachment 96558 [details] output of emerge =netwatch-1.0b_pre4 using gcc 3.4.6
Created attachment 96559 [details] output of emerge =netwatch-1.0b_pre4 using gcc 4.1.1
I have upgraded gcc from 3.4.6 to 4.1.1, then issued the following commands: gcc-config i686-pc-linux-gnu-4.1.1 source /etc/profile fix_libtool_files.sh 3.4.6 emerge --oneshot -av libtool emerge -eav system emerge -eav world Now net-analyzer/netwatch fails to emerge. Both available versions fail to emerge with gcc 3.4.6 and gcc 4.1.1.
Compiles and works OK here using gcc-3.4.6/glibc-2.3.6-r4 A couple of things to try: * Clear the ccache - it maybe corrupt * Sane CFLAGS/CXXFLAGS - try removing '-funroll-loops' from your CFLAGS/CXXFLAGS, you may need to rebuild your entire system
BTW, CLK_TCK should be defined in /usr/include/bits/time.h as provided by glibc. This maybe a glibc-2.4 thing, `grep -r CLK_TCK /usr/include/*` to find out.
Apparently 'CLK_TCK' must be replaced with 'CLOCKS_PER_SEC' when using glibc 2.4, see https://bugs.gentoo.org/show_bug.cgi?id=135419#c2 I can now compile the source by issuing the following commands: ebuild /usr/portage/net-analyzer/netwatch/netwatch-1.0a.ebuild clean ebuild /usr/portage/net-analyzer/netwatch/netwatch-1.0a.ebuild unpack for i in `find /var/tmp/portage/netwatch-1.0a/ -type f -name "*.c"`; do sed 's/CLK_TCK/CLOCKS_PER_SEC/g' < $i > ${i}.new; mv ${i}.new ${i}; chown portage $i; done ebuild /usr/portage/net-analyzer/netwatch/netwatch-1.0a.ebuild compile
I can get it to compile using this fix, but it just quits on me when running it. Is this behavior to be expected? Also, the fix makes it segfault with glibc-2.3, methinks.
*** This bug has been marked as a duplicate of bug 167125 ***