[Kde-extra-gear]

Petter E. Stokke gibreel at project23.no
Sun Aug 17 21:09:49 CEST 2003


On Sun, 2003-08-17 at 21:18, Giuseppe wrote:
> I can't compile k3b. This is what I get:
> 
> 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 k3bdevicemanager.cpp:57:
> /usr/include/linux/byteorder/swab.h: In function `const __u32 __fswab24(__u32)
>    ':
> /usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups
>    within expressions
> /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
> k3bdevicemanager.cpp: At global scope:
> k3bdevicemanager.cpp:79: error: extra semicolon
> make[5]: *** [k3bdevicemanager.lo] Error 1
> 
> Please help me

I've been having the same problem - it seems the Linux header files
don't like being compiled with g++ -pedantic. A quick fix is to remove
every occurrence of "-pedantic" and "-ansi" in the Makefiles for the
directories that fail, but it's only a stopgap measure; you'll have to
do it again every time the Makefiles are regenerated.

The same thing happens with cdbakeoven in the same extragear module.
Somebody responsible ought to try fixing it properly - I wish I could
offer a patch, but I can't think of a good way to do it.

-- 
Petter E. Stokke <gibreel at project23.no> http://www.gibreel.net/
PGP key: http://www.gibreel.net/key.asc
Fingerprint: 4FF3 12BD 692A 0FFF 984F  78DA 4776 81FB 1906 3A9F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.kde.org/pipermail/kde-extra-gear/attachments/20030817/59d91c43/attachment.bin


More information about the Kde-extra-gear mailing list