Bug 64418

Summary: compile error in kdemultimedia
Product: [Unmaintained] kdemultimedia Reporter: FRLinux <frlinux>
Component: generalAssignee: Multimedia Developers <kde-multimedia>
Status: RESOLVED NOT A BUG    
Severity: normal CC: alfons.hoogervorst
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description FRLinux 2003-09-17 10:32:23 UTC
Version:            (using KDE KDE 3.1.91)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.1 LFS, compiler compiled using the LFS standard
OS:          Linux

After having compiled the base (qt 3.2.1, glib 2.2.3, arts and kdelibs/base 3.1.93), i compiled kdemultimedia and it barfed half way with this message. Have to say my LFS perfectly 
compiled previous versions of KDE : 

if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++
-DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/local/kde/include
-I/usr/local/qt/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT 
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W
-Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -Wchar-subscripts -fno-builtin -g -O2 -z
combreloc -Wformat-security -Wmissing-format-attribute -fno-exceptions
-fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT cdromAccess.lo -MD -MP
-MF ".deps/cdromAccess.Tpo" \
  -c -o cdromAccess.lo `test -f 'cdromAccess.cpp' || echo
'./'`cdromAccess.cpp; \
then mv ".deps/cdromAccess.Tpo" ".deps/cdromAccess.Plo"; \
else rm -f ".deps/cdromAccess.Tpo"; exit 1; \
fi
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:45,
                 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
/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] Error 1
make[4]: Leaving directory
`/mnt/gentoo/root/build/lfs/kde/kdemultimedia-3.1.91/mpeglib/lib/input'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/mnt/gentoo/root/build/lfs/kde/kdemultimedia-3.1.91/mpeglib/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/mnt/gentoo/root/build/lfs/kde/kdemultimedia-3.1.91/mpeglib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/gentoo/root/build/lfs/kde/kdemultimedia-3.1.91'
make: *** [all] Error 2
Comment 1 Stefan Gehn 2003-09-17 10:49:38 UTC
same here 
gcc 3.3.2 
glibc 2.3.2 
linux 2.4.21 
I think removing -pedantic "helps", gcc is getting way too strict lately 
Comment 2 Thiago Macieira 2003-09-17 16:21:49 UTC
Please do not report CVS compilation errors to bugs.kde.org. Instead, tell them in the IRC 
channel or to one of the development mailing lists. 
 
This error is caused by g++ 3.3 being stricter than the previous versions. The error is in 
glibc and in the kernel, not in KDE code. Please report to the appropriate maintainers. 
 
And as Stefan suggested, removing the -pedantic option really solves the problem. 
Comment 3 Thiago Macieira 2003-11-23 05:32:20 UTC
*** Bug 68828 has been marked as a duplicate of this bug. ***