Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25249 - k3b fails to compile with gcc 3.3
Summary: k3b fails to compile with gcc 3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-25 05:15 UTC by Paper
Modified: 2003-10-02 08:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
k3b ebuild for gcc3.3 (k3b-0.9.ebuild,1.49 KB, text/plain)
2003-09-08 16:55 UTC, Andreas Pokorny
Details
New ebuild which patches mp3module for GCC3 (k3b-0.9.ebuild,1.41 KB, text/plain)
2003-09-11 15:05 UTC, Martin Diers
Details
Patch for the above Ebuild (mp3decoder_fix.diff,731 bytes, patch)
2003-09-11 15:06 UTC, Martin Diers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paper 2003-07-25 05:15:41 UTC
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
Comment 1 maor 2003-07-29 22:53:09 UTC
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. 
Comment 2 Andreas Pokorny 2003-09-08 16:55:50 UTC
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.
Comment 3 Martin Diers 2003-09-11 15:05:02 UTC
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
Comment 4 Martin Diers 2003-09-11 15:06:08 UTC
Created attachment 17526 [details, diff]
Patch for the above Ebuild

Here is the diff file itself for the mp3module
Comment 5 Matt Chorman 2003-09-16 17:24:02 UTC
The updated ebuild and patch provided by Martin Diers work great for me! Thank 
you! 
Comment 6 Mystilleef 2003-09-29 04:57:51 UTC
Errr...how do I use the patch?
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2003-10-02 08:40:26 UTC
added k3b-0.9-r1 which has these fixes in it.