[Kde-extra-gear]

Sebastian Trueg trueg at k3b.org
Sun Aug 17 21:52:43 CEST 2003


On Sunday 17 August 2003 20:09, Petter E. Stokke wrote:
> 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.

Did you try to compile on a 2.5 or 2.6 kernel?
The problem is the cdrom.h include. It would be best to get rid of it some 
day...

Cheers,
Sebastian

-- 
----------------------------------
Find K3b 0.9 at http://www.k3b.org
----------------------------------



More information about the Kde-extra-gear mailing list