Thorben Kröger
However, some programs do not compile anymore (in this case kdemultimedia) because of errors in a glibc-devel file:
Compiling kdemultimedia CVS: In file included from /usr/include/linux/byteorder/little_endian.h:11, from /usr/include/asm/byteorder.h:32, from /usr/include/linux/cdrom.h:14, from cdromAccess_Linux.cpp:17, from cdromAccess.cpp:30: /usr/include/linux/byteorder/swab.h: In function `const __u32 __fswab24(unsigned int)': /usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups within expressions
For the time being try editing the file yourself. First make a backup copy of the file. Then change these macros #define ___swab16(x) \ ({ \ __u16 __x = (x); \ ((__u16)( \ (((__u16)(__x) & (__u16)0x00ffU) << 8) | \ (((__u16)(__x) & (__u16)0xff00U) >> 8) )); \ }) So they look like this: #define ___swab16(x) \ (__extension__{ \ __u16 __x = (x); \ ((__u16)( \ (((__u16)(__x) & (__u16)0x00ffU) << 8) | \ (((__u16)(__x) & (__u16)0xff00U) >> 8) )); \ }) i.e. add __extension__ before the braced group. This should do the trick. I'll talk with my colleague whether or not to put a modified glibc-devel in /pub/projects/gcc/8.2 sometime next week. In the future *please* report things like this at http://www.suse.de/feedback as I clearly stated in the READMEs (if you haven't already done so)! Otherwise chances are very high that we'll never notice it. Philipp
/usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups within expressions /usr/include/linux/byteorder/swab.h: In function `__u32 __swab24p(__u32*)': /usr/include/linux/byteorder/swab.h:178: error: ISO C++ forbids braced-groups within expressions /usr/include/linux/byteorder/swab.h:178: error: ISO C++ forbids braced-groups within expressions /usr/include/linux/byteorder/swab.h: In function `void __swab24s(__u32*)': /usr/include/linux/byteorder/swab.h:182: error: ISO C++ forbids braced-groups within expressions /usr/include/linux/byteorder/swab.h:182: error: ISO C++ forbids braced-groups within expressions make[4]: *** [cdromAccess.lo] Fehler 1
I didn't find an up-to-date SuSE rpm for glibc and glibc-devel. The version shipped with 8.2 is 2.3.2-6...
Who can help me here? I don't know what to do...
Please CC me, I'm not in this list. Thanks a lot in advance :-)
Thorben
-- Philipp Thomas work: pthomas@suse.de private: philipp.thomas@t-link.de