koffice-1.3_beta3 coughs up a C++ error with gcc 3.3.1 table.cc:272: error: ISO C++ forbids variable-size array `border' table.cc:328: error: ISO C++ forbids variable-size array 'border' in /var/tmp/portage/koffice-1.3_beta3/work/koffice-1.2.92/filters/kspread/latex/export Reproducible: Always Steps to Reproduce: 1. emerge gcc-3.3.1 glibc-2.3.2-r3 2. emerge koffice Actual Results: /bin/sh ../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I. -I../../../../lib/kofficeui -I../../../../lib/kofficeui -I../../../../lib/kofficecore -I../../../../lib/kofficecore -I../../../../lib/store -I../../../../lib/store -I../../../../lib/kwmf -I../../../../lib/kwmf -I../../../../lib/kformula -I../../../../lib/kformula -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 -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -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 table.lo `test -f 'table.cc' || echo './'`table.cc spreadsheet.cc: In member function `void Spreadsheet::analyse_attr(QDomNode)': spreadsheet.cc:64: warning: unused parameter `const QDomNode balise' spreadsheet.cc: In member function `void Spreadsheet::generateTypeHeader(QTextStream&)': spreadsheet.cc:139: warning: unused parameter `QTextStream&out' spreadsheet.cc: In member function `void Spreadsheet::generateTypeFooter(QTextStream&)': spreadsheet.cc:185: warning: unused parameter `QTextStream&out' /bin/sh ../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I. -I../../../../lib/kofficeui -I../../../../lib/kofficeui -I../../../../lib/kofficecore -I../../../../lib/kofficecore -I../../../../lib/store -I../../../../lib/store -I../../../../lib/kwmf -I../../../../lib/kwmf -I../../../../lib/kformula -I../../../../lib/kformula -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 -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -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 xmlparser.lo `test -f 'xmlparser.cc' || echo './'`xmlparser.cc table.cc: In member function `void Table::generateTopLineBorder(QTextStream&, int)': table.cc:272: error: ISO C++ forbids variable-size array `border' table.cc: In member function `void Table::generateBottomLineBorder(QTextStream&, int)': table.cc:328: error: ISO C++ forbids variable-size array `border' make[5]: *** [table.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... make[5]: Leaving directory `/var/tmp/portage/koffice-1.3_beta3/work/koffice-1.2.92/filters/kspread/latex/export' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/koffice-1.3_beta3/work/koffice-1.2.92/filters/kspread/latex' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/koffice-1.3_beta3/work/koffice-1.2.92/filters/kspread' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/koffice-1.3_beta3/work/koffice-1.2.92/filters' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/koffice-1.3_beta3/work/koffice-1.2.92' make: *** [all] Error 2 !!! ERROR: app-office/koffice-1.3_beta3 failed. !!! Function kde_src_compile, Line 137, Exitcode 2 !!! died running emake, kde_src_compile:make I'm not sure if this is a gcc 3.3.1-only bug, but it seems it should definitely be fixed upstream...
Yes, I'd recommend informing the koffice folks about this too. Note: the problem may go away if you strip out the "-pedantic" flag from the compile.
Same problem here (gcc 3.3.1) ... removing pedantic for kspread didn't change anything
I just found that. I'm trying the attached patch right now. I'll keep you informed ... http://bugs.kde.org/show_bug.cgi?id=62984
Hi, I just build successfully koffice-1.3_beta3 withgcc-3.3.1 and this patch: http://bugs.kde.org/attachment.cgi?id=2279&action=view
the mentioned patch fixed it on my box also ... this is just a *poke* to get the kde peeps to add this patch ;)
the patch is now in portage; thanks for the report.