#emerge --update kde ... Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge --update kdenetwork Actual Results: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:428: than previous declaration `int fputc_unlocked(int, FILE*) throw ()' /usr/include/bits/stdio.h: In function `int putc_unlocked(int, FILE*)': /usr/include/bits/stdio.h:86: declaration of `int putc_unlocked(int, FILE*)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:433: than previous declaration `int putc_unlocked(int, FILE*) throw ()' /usr/include/bits/stdio.h: In function `int putchar_unlocked(int)': /usr/include/bits/stdio.h:93: declaration of `int putchar_unlocked(int)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:434: than previous declaration `int putchar_unlocked(int) throw ()' /usr/include/bits/stdio.h: In function `__ssize_t getline(char**, size_t*, FILE*)': /usr/include/bits/stdio.h:103: declaration of `__ssize_t getline(char**, size_t*, FILE*)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:480: than previous declaration `__ssize_t getline(char**, size_t*, FILE*) throw ()' make[3]: *** [ksprogress.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [ksprogressdata.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdenetwork-3.1.5/work/kdenetwork-3.1.5/ksirc/KSProgress' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdenetwork-3.1.5/work/kdenetwork-3.1.5/ksirc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdenetwork-3.1.5/work/kdenetwork-3.1.5' make: *** [all] Error 2 !!! ERROR: kde-base/kdenetwork-3.1.5 failed. !!! Function kde_src_compile, Line 123, Exitcode 2 !!! died running emake, kde_src_compile:make Expected Results: succsessful emerge # emerge info Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-gentoo) ================================================================= System uname: 2.6.1-gentoo i686 Intel(R) Pentium(R) 4 CPU 1.70GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo cdr crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
I don't have a stdio.h file in /usr/lib/gcc-lib/... like your error is implying. What package has provided that file? I suspect a problem with your gcc installation.
have the same problem! don't know which (or how to find out which) package provides this file may help?: #emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.22-gentoo-r4) ================================================================= System uname: 2.4.22-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi acpi4linux alsa apache2 apm arts artswrappersuid avi berkdb cdr crypt cups dedicated dga dnd dvd dvdr encode esd fbcon ffmpeg flash foomaticdb freetype fs gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 i8x0 imap imlib java javascript joystick jpeg kde kerberos krb4 ldap libdsk libg++ libwww ltsp mad mcal mdb mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline samba scanner sdl slang speedo spell ssl svga tcltk tcpd tiff truetype type1 usb x86 xml2 xmms xosd xv xvid zlib video_cards_i810 video_cards_i830"
I have latest version of gcc. Maybe lower my flags? ;)
*** Bug 38791 has been marked as a duplicate of this bug. ***
*** Bug 38375 has been marked as a duplicate of this bug. ***
Could it be that you have a different version of linux-headers installed than the kernel you're running. It looks to me like a re-emerge of your linux-headers, followed by an update of glibc and gcc will work. I'm guessing you're all using 2.6 kernels?
I've found a similair problem http://lists.xwt.org/pipermail/core/2003-September/001520.html And I think it is a conflict of 2 stdio.h files
How to re-emerge linux-headers? Yes, I am using kernel 2.6.1 (I have a standard old 2.4.20-gentoo-r6 from GRP also installed)
http://forums.gentoo.org/viewtopic.php?t=126411
I'm getting the same error on 2.4.24, here's my info: Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24) ================================================================= System uname: 2.4.24 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo ftp://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://stargate/gentoo-portage" USE="X alsa apache2 apm arts avi berkdb cdr crypt cups dv dvd dvdr encode esd foomaticdb gdbm gif glut gnome gpm gstreamer gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby scanner sdl slang spell sse ssl svga tcpd transcode truetype usb wxwindows x86 xinerama xml2 xmms xv zlib"
seems like #emerge glibc gcc worked for me
#emerge linux-headers glibc gcc worked for me too! But why? What was the problem? Because it is a stupid way to fix bugs - "windows reinstalling way" P.S> Why linux-headers only for kernel 2.4.x?
*** Bug 38919 has been marked as a duplicate of this bug. ***
*** Bug 38950 has been marked as a duplicate of this bug. ***
*** Bug 39138 has been marked as a duplicate of this bug. ***
*** Bug 39288 has been marked as a duplicate of this bug. ***
this is actually not a bug in KDE, but a bug thats been fixed in gcc
*** This bug has been marked as a duplicate of 30701 ***