I have a system with compiled with ACCEPT_KEYWORDS="~x86" When attempting to merge kdesdk the following happens: Making all in kmtrace make[2]: Entering directory `/var/tmp/portage/kdesdk-3.0.4/work/kdesdk-3.0.4/kmtrace' i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_NO_ASCII_CAST -UQT_NO_COMPAT -O3 -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -c `test -f ktrace.c || echo './'`ktrace.c creating libktrace_la.all_cpp.cpp ... /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_NO_ASCII_CAST -UQT_NO_COMPAT -O3 -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -c -o ktrace.lo `test -f ktrace.c || echo './'`ktrace.c In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81, from ktrace.c:40: /usr/include/libio.h:340: parse error before "attribute_hidden" /usr/include/libio.h:341: parse error before "attribute_hidden" /usr/include/libio.h:342: parse error before "attribute_hidden" mkdir .libs i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_NO_ASCII_CAST -UQT_NO_COMPAT -O3 -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -c ktrace.c -fPIC -DPIC -o .libs/ktrace.o make[2]: *** [ktrace.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81, from ktrace.c:40: /usr/include/libio.h:340: parse error before "attribute_hidden" /usr/include/libio.h:341: parse error before "attribute_hidden" /usr/include/libio.h:342: parse error before "attribute_hidden" make[2]: *** [ktrace.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdesdk-3.0.4/work/kdesdk-3.0.4/kmtrace' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdesdk-3.0.4/work/kdesdk-3.0.4' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function kde_src_compile, Line 98, Exitcode 2 !!! died running emake, kde_src_compile:make
/usr/include/libio.h is from glibc, which version of glibc is installed?
glibc-2.3.1-r2
well, i have glibc-2.3.1-r1, my md5sum of /usr/include/libio.h is: fae6e4c72da1e72aa897482e33e51141 /usr/include/libio.h they should be the same (afaik). please post lines 340-342 of your /usr/include/libio.h.
The MD5 checksum of my /usr/include/libio.h is the same.
I have this same problem. same md5sum. same gcc/glibc.
please append the ouput of emerge info
It's exactly the same.
There is a similar issue: http://sources.redhat.com/ml/libc-alpha/2002-10/msg00073.html so, please post which sys-libs/db is installed.
db-3.2.9-r1
sorry- i also have db-1.85-r1 installed as well.
I have the the same setup, problem and emerge output. glibc-2.3.1-r2 db-3.2.9-r1 & db-1.85-r1 md5sum for /usr/include/libio.h is same and ACCEPT_KEYWORDS="~x86"
There are 2 bugreports of this kind on bugs.kde.org, both closed as WONTFIX with the developer pointing to the system headers as faulty/nonstandard/whatever. I can't reproduce this, so have no pointers :-(
please do a 'grep IO_stdin /lib/libc-2.3.1.so' and report if this matches or not.
That matches for me.
anyone tried kdesdk-3.1_rc3? maybe this resolves this problem? i also can't reproduce...
# grep IO_stdin /lib/libc-2.3.1.so Binary file /lib/libc-2.3.1.so matches
I had the same problem exactly. I managed to get kdesdk to compile though with this hack: --- ktrace.c~ 2002-12-19 15:16:49.000000000 +0200 +++ ktrace.c 2002-12-19 15:35:16.000000000 +0200 @@ -37,7 +37,9 @@ #include <dlfcn.h> +#undef _LIBC #include <stdio.h> +#define _LIBC #include <string.h> #include <stdlib.h> #include <execinfo.h> However, I am not sure that it does not brake anything...
I'm adding glibc guys to cc: as per seemant's direction. Can you help us? Also can someone test that this still happens with 3.0.5a and/or with 3.1rc5?
What is the story exactly ? It compile with gcc-3.2.1 and glibc-2.3.1, but not if you use gcc-3.2 ?
I just had a succesfull compile with gcc-3.2.1-r6, glibc-2.3.1-r3, binutils-2.13.90.0.16-r1, xfree-4.2.1-r2, kde-3.0.5a, kde-3.0.5a.
Martin: i can reproduce this on a glibc-2.3.1-r2/gcc-3.2.1 system during compiling kdesdk-2.2.2. feel free to ask if you need more information.
Hannes, can you try to update gcc to 3.2.1-r6, or if you do not want the gcc-config stuff yet, at least to 3.2.1-r1, as it have the same updates as -r6 ... ?
Azarah: will do, but first another note: i also tried kdesdk-3.0.5a on the same computer, and this does work (i emerged it again after the failing kdesdk-2.2.2). it seems that i have quite good conditions to trace this down ;)
back again: -kdesdk-3.0.5a should work. -kdesdk-3.1_rc6 should also work the patch in comment #18 should work (currently backporting to 2.2.2)
Hannes has committed the patch for 2.2.2 some time ago. Are there any problems left, anyone (with kde 3.1 final now)? I'm a little confused between all the comments and people...
this was fixed in kde-3.1, kde-3.0.5a also includes this fix and it is backported to kdesdk-2.2.2, so i'll mark as fixed, please reopen if it still fails for anyone.