Summary: | kdemultimedia-3.1.4-r1 failed to recompile after kernel-headers-2.4.21 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Philipp Lopaur <fips> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Fixed ebuild for kdemultimedia-3.1.4-r1 |
Description
Philipp Lopaur
2003-10-25 10:31:03 UTC
article about this problem: http://lwn.net/Articles/38384/ duplicate of 26981 *** This bug has been marked as a duplicate of 26981 *** this patch fixes the problem for me. but kernel-headers or kdemultimedia have to be patched. are the kde developers aware of this problem or is it gentoo specific? diff -Naur /usr/src/linux-2.4.22/include/asm-i386/byteorder.h /usr/include/asm/byteorder.h --- /usr/src/linux-2.4.22/include/asm-i386/byteorder.h 2003-09-27 18:03:50.000000000 +0200 +++ /usr/include/asm/byteorder.h 2003-10-28 23:10:41.000000000 +0100 @@ -34,7 +34,7 @@ return x; } - +#if !defined(__STRICT_ANSI__) || defined(__KERNEL__) static inline __u64 ___arch__swab64(__u64 val) { union { @@ -54,12 +54,16 @@ return v.u; } + + #define __arch__swab64(x) ___arch__swab64(x) +#define __BYTEORDER_HAS_U64__ +#endif + + #define __arch__swab32(x) ___arch__swab32(x) #define __arch__swab16(x) ___arch__swab16(x) -#define __BYTEORDER_HAS_U64__ - #endif /* __GNUC__ */ #include <linux/byteorder/little_endian.h> *** This bug has been marked as a duplicate of 32246 *** it's not prudent to hack the headers... the cleanest solution is to modify the ebuild by appending " --disable-strict --disable-warnings" to the myconf variable as follows:- #myconf="$myconf --enable-xaw --enable-ncurses" myconf="$myconf --enable-xaw --enable-ncurses --disable-strict --disable-warnings" the above will ensure that the configure script will generate makefiles without the -ansi and -pedantic CFALGS Created attachment 19945 [details]
Fixed ebuild for kdemultimedia-3.1.4-r1
Fixed ebuild for kdemultimedia-3.1.4-r1 to ensure that makefiles
are generated free of the -ansi and -pedentic CFLAGS
This was achieved by apending "--disable-strict --disable-warnings" to
the myconf variable in the ebuild.
This is much cleaner than hacking the headers
|