Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36643 - Kmc fails to compile with gcc 3.3.x
Summary: Kmc fails to compile with gcc 3.3.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-28 06:19 UTC by Ronald Hummelink
Modified: 2004-01-03 23:45 UTC (History)
0 users

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


Attachments
remove undefined entity (kmc-docbook.patch,285 bytes, patch)
2003-12-28 06:35 UTC, Ronald Hummelink
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Hummelink 2003-12-28 06:19:34 UTC
Compiling kmc/kperl.cpp with gcc 3.3.2-r4 fails with ISO C++ errors:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl5/5.8.2/i686-linux/CORE   -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes  -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -pipe -fno-exceptions -fno-check-new -Wno-write-strings -Wno-unused  -c -o kperl.o `test -f 'kperl.cpp' || echo './'`kperl.cpp
cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++
kperl.cpp: In function `QString str_execute_perl(SV*, const char**)':
kperl.cpp:321: error: ISO C++ forbids braced-groups within expressions
kperl.cpp:334: error: ISO C++ forbids braced-groups within expressions

The SvTRUE is a #define in /usr/lib/perl5/5.8.2/i686-linux/CORE/sv.h

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Build does succeed with -fpermissive added to the CXXFLAGS
This downgrades the error spawned to a warning.
Comment 1 Ronald Hummelink 2003-12-28 06:35:17 UTC
Created attachment 22741 [details, diff]
remove undefined entity

Additionally my build got stuck on an undefined entity in doc/en/index.docbook
patch to simply remove the entity.
Comment 2 SpanKY gentoo-dev 2004-01-03 14:45:59 UTC
i fixed the compile error in cvs but my build didnt experience an error on the docbook stuff ...
Comment 3 Ronald Hummelink 2004-01-03 23:45:59 UTC
Build works, as well my second system doesn't have the docbook error so i'll assume something broke on the first (much faster) system.