Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27439 - koffice-1.3_beta3 doesn't build with gcc 3.3.1
Summary: koffice-1.3_beta3 doesn't build with gcc 3.3.1
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-08-27 12:26 UTC by Jan Gutter
Modified: 2003-09-07 19:32 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Gutter 2003-08-27 12:26:22 UTC
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...
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2003-08-27 14:06:29 UTC
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. 
Comment 2 Marc Cousin 2003-08-29 06:55:32 UTC
Same problem here (gcc 3.3.1) ... removing pedantic for kspread didn't change 
anything 
Comment 3 Marc Cousin 2003-08-30 04:27:34 UTC
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 
Comment 4 Volker Hemmann 2003-08-31 17:53:14 UTC
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 
Comment 5 SpanKY gentoo-dev 2003-09-05 13:34:54 UTC
the mentioned patch fixed it on my box also ... this is just a *poke* to get the
kde peeps to add this patch ;)
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2003-09-07 19:32:59 UTC
the patch is now in portage; thanks for the report.