Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10604 - kdesdk failes to build
Summary: kdesdk failes to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-11 17:04 UTC by Jeld The Dark Elf
Modified: 2003-02-04 19:42 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeld The Dark Elf 2002-11-11 17:04:58 UTC
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
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-12 04:26:36 UTC
/usr/include/libio.h is from glibc, which version of glibc is installed? 
Comment 2 Jeld The Dark Elf 2002-11-12 08:36:32 UTC
glibc-2.3.1-r2
Comment 3 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-13 13:39:08 UTC
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.    
Comment 4 Jeld The Dark Elf 2002-11-16 03:47:07 UTC
The MD5 checksum of my /usr/include/libio.h is the same.
Comment 5 Dylan Carlson (RETIRED) gentoo-dev 2002-11-16 23:33:48 UTC
I have this same problem.  same md5sum.  same gcc/glibc. 
Comment 6 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-17 10:10:15 UTC
please append the ouput of emerge info 
Comment 7 Dylan Carlson (RETIRED) gentoo-dev 2002-11-17 10:49:33 UTC
It's exactly the same. 
Comment 8 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-17 12:09:29 UTC
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. 
Comment 9 Jeld The Dark Elf 2002-11-17 13:52:03 UTC
db-3.2.9-r1
Comment 10 Dylan Carlson (RETIRED) gentoo-dev 2002-11-17 17:59:36 UTC
db-3.2.9-r1 
Comment 11 Dylan Carlson (RETIRED) gentoo-dev 2002-11-17 18:01:50 UTC
sorry- i also have db-1.85-r1 installed as well. 
Comment 12 atom 2002-11-20 07:23:34 UTC
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"



Comment 13 Dan Armak (RETIRED) gentoo-dev 2002-11-28 12:19:08 UTC
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 :-( 
Comment 14 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-29 22:19:44 UTC
please do a 'grep  IO_stdin /lib/libc-2.3.1.so' and report if this matches or not. 
Comment 15 Dylan Carlson (RETIRED) gentoo-dev 2002-11-30 07:17:57 UTC
That matches for me. 
Comment 16 Hannes Mehnert (RETIRED) gentoo-dev 2002-12-02 16:10:05 UTC
anyone tried kdesdk-3.1_rc3? maybe this resolves this problem? 
i also can't reproduce... 
Comment 17 atom 2002-12-18 02:17:51 UTC
# grep  IO_stdin /lib/libc-2.3.1.so
Binary file /lib/libc-2.3.1.so matches
Comment 18 Georgios E. Kylafas 2002-12-19 08:01:18 UTC
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...  
Comment 19 Dan Armak (RETIRED) gentoo-dev 2003-01-02 11:47:35 UTC
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? 
Comment 20 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-02 16:05:06 UTC
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 ?
Comment 21 Jeld The Dark Elf 2003-01-02 17:53:23 UTC
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.
Comment 22 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-06 03:39:24 UTC
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. 
Comment 23 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 13:00:10 UTC
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 ... ?
Comment 24 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-08 11:35:16 UTC
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 ;) 
Comment 25 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-11 05:11:24 UTC
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) 
Comment 26 Dan Armak (RETIRED) gentoo-dev 2003-01-30 09:24:37 UTC
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... 
Comment 27 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-30 11:45:29 UTC
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.