That's error I get: make[6]: Entering directory `/var/tmp/portage/k3b-0.9/work/k3b-0.9/src/audio/input/mp3' /usr/qt/3/bin/moc ./k3bmp3module.h -o k3bmp3module.moc /bin/sh ../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I./../../../core -I./libmad -I./../../.. -I/usr/kde/3.1/include -I/usr/qt/3/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 -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -mmmx -msse -msse2 -mfpmath=sse,387 -frerun-cse-after-loop -frerun-loop-opt -funroll-loops -fforce-addr -falign-functions=4 -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 -c -o k3bmp3module.lo `test -f 'k3bmp3module.cpp' || echo './'`k3bmp3module.cpp k3bmp3module.cpp: In member function `unsigned int K3bMp3Module::resampleBlock(const mad_fixed_t*, unsigned int, mad_fixed_t*, mad_fixed_t&, mad_fixed_t&)': k3bmp3module.cpp:428: error: ISO C++ forbids braced-groups within expressions k3bmp3module.cpp:428: error: ISO C++ forbids braced-groups within expressions k3bmp3module.cpp:445: error: ISO C++ forbids braced-groups within expressions k3bmp3module.cpp:445: error: ISO C++ forbids braced-groups within expressions make[6]: *** [k3bmp3module.lo] Error 1 make[6]: Leaving directory `/var/tmp/portage/k3b-0.9/work/k3b-0.9/src/audio/input/mp3' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/var/tmp/portage/k3b-0.9/work/k3b-0.9/src/audio/input/mp3' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/k3b-0.9/work/k3b-0.9/src/audio/input' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/k3b-0.9/work/k3b-0.9/src/audio' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/k3b-0.9/work/k3b-0.9/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/k3b-0.9/work/k3b-0.9' make: *** [all] Error 2 !!! ERROR: app-cdr/k3b-0.9 failed. !!! Function kde_src_compile, Line 138, Exitcode 2 !!! died running emake, kde_src_compile:make It seems like been caused by one of the new strict syntax check of gcc 3.3 ... I don't think my CFLAGS are causing this. Btw, here they are: CFLAGS="-march=pentium4 -O3 -pipe -mmmx -msse -msse2 -mfpmath=sse,387 -frerun-cse-after-loop -frerun-loop-opt -funroll-loops -fforce-addr -falign-functions=4" I'm using gcc-3.3-r1, glibc-2.3.2-r2 and binutils-2.14.90.0.5
ok i succesfully compiled k3b with gcc 3.3 u need to get out the flag -pedantic from the compiler and than it will compiled.
Created attachment 17297 [details] k3b ebuild for gcc3.3 This is the current ebuild with a small sed statement that removes -pedantic from the Makefile in the audio/input/mp3/ subfolder.
Created attachment 17525 [details] New ebuild which patches mp3module for GCC3 This problem is caused by an error in the libmad headers, which are embedded in the k3b source, (Not sure if these are the same as the ones included in the libmad ebuild in portage). This alternate ebuild patches the mp3 module to work around the problem. The patched file is: src/audio/input/k3bmp3module.cpp
Created attachment 17526 [details, diff] Patch for the above Ebuild Here is the diff file itself for the mp3module
The updated ebuild and patch provided by Martin Diers work great for me! Thank you!
Errr...how do I use the patch?
added k3b-0.9-r1 which has these fixes in it.