| Summary: | KOffice-1.2 fails to build on KDE-3.0.99 on Qt-3.1 | ||
|---|---|---|---|
| Product: | [Applications] calligrachart | Reporter: | colesen |
| Component: | general | Assignee: | Kalle Dalheimer <kalle> |
| Status: | CLOSED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
I have also experienced (probably) the same issue and fixed it by adding #include <limits.h> as new line 34 in kchart/kdchart/KDDrawText.h INT_MAX is defined in limits.h, and was not getting included. There may be a more elegant way of fixing this! (Slackware 8.1, latest KDE 3.0.99 / Qt 3.1 compiled from source using gcc 2.95.3) I closed #50545 as a duplicate of this bug This bug is fixed in cvs as well as in KChart 1.2.1. Thanks for the report, Philipp |
Version: (using KDE KDE 3.0.99) Installed from: Compiled From Sources OS: Linux make install of KOffice-1.2 on KDE-3.0.99 on Qt-3.1 exits prematurely because KChart fails to build. Building without KChart completes normally. Excerpt from build.log: Making all in kchart make[2]: Entering directory `/home/colesen/download/koffice-1.2/kchart' Making all in kdchart make[3]: Entering directory `/home/colesen/download/koffice-1.2/kchart/kdchart' source='KDChart.cpp' object='KDChart.lo' libtool=yes \ depfile='.deps/KDChart.Plo' tmpdepfile='.deps/KDChart.TPlo' \ depmode=gcc3 /bin/sh ../../admin/depcomp \ /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I/opt/kde/include -I/opt/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DKDE_NO_COMPAT -c -o KDChart.lo `test -f KDChart.cpp || echo './'`KDChart.cpp source='KDChartAreaPainter.cpp' object='KDChartAreaPainter.lo' libtool=yes \ depfile='.deps/KDChartAreaPainter.Plo' tmpdepfile='.deps/KDChartAreaPainter.TPlo' \ depmode=gcc3 /bin/sh ../../admin/depcomp \ /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I/opt/kde/include -I/opt/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DKDE_NO_COMPAT -c -o KDChartAreaPainter.lo `test -f KDChartAreaPainter.cpp || echo './'`KDChartAreaPainter.cpp source='KDChartAxesPainter.cpp' object='KDChartAxesPainter.lo' libtool=yes \ depfile='.deps/KDChartAxesPainter.Plo' tmpdepfile='.deps/KDChartAxesPainter.TPlo' \ depmode=gcc3 /bin/sh ../../admin/depcomp \ /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I/opt/kde/include -I/opt/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DKDE_NO_COMPAT -c -o KDChartAxesPainter.lo `test -f KDChartAxesPainter.cpp || echo './'`KDChartAxesPainter.cpp In file included from KDChartAxesPainter.cpp:32: KDDrawText.h:93: `INT_MAX' was not declared in this scope KDDrawText.h:93: warning: invalid type `{type error}' for default argument to `int' KDDrawText.h:93: `INT_MAX' was not declared in this scope KDDrawText.h:93: warning: invalid type `{type error}' for default argument to `int' KDChartAxesPainter.cpp: In method `void KDChartAxesPainter::paintAxes (QPainter *, KDChartTableDataBase *)': KDChartAxesPainter.cpp:284: warning: passing `double' for argument 1 of `QPoint::setY (int)' KDChartAxesPainter.cpp:285: warning: passing `double' for argument 1 of `QPoint::setY (int)' KDChartAxesPainter.cpp:292: warning: passing `double' for argument 1 of `QPoint::setX (int)' ... about 100 similar lines omitted KDChartAxesPainter.cpp:737: warning: passing `double' for argument 2 of `QPoint::QPoint (int, int)' KDChartAxesPainter.cpp:741: warning: passing `double' for argument 1 of `QPoint::QPoint (int, int)' KDChartAxesPainter.cpp:741: warning: passing `double' for argument 2 of `QPoint::QPoint (int, int)' make[3]: *** [KDChartAxesPainter.lo] Error 1 make[3]: Leaving directory `/home/colesen/download/koffice-1.2/kchart/kdchart' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/colesen/download/koffice-1.2/kchart' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/colesen/download/koffice-1.2' make: *** [all] Error 2 ... lines omitted Making install in kchart make[1]: Entering directory `/home/colesen/download/koffice-1.2/kchart' Making install in kdchart make[2]: Entering directory `/home/colesen/download/koffice-1.2/kchart/kdchart' source='KDChartAxesPainter.cpp' object='KDChartAxesPainter.lo' libtool=yes \ depfile='.deps/KDChartAxesPainter.Plo' tmpdepfile='.deps/KDChartAxesPainter.TPlo' \ depmode=gcc3 /bin/sh ../../admin/depcomp \ /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I/opt/kde/include -I/opt/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DKDE_NO_COMPAT -c -o KDChartAxesPainter.lo `test -f KDChartAxesPainter.cpp || echo './'`KDChartAxesPainter.cpp In file included from KDChartAxesPainter.cpp:32: KDDrawText.h:93: `INT_MAX' was not declared in this scope KDDrawText.h:93: warning: invalid type `{type error}' for default argument to `int' KDDrawText.h:93: `INT_MAX' was not declared in this scope KDDrawText.h:93: warning: invalid type `{type error}' for default argument to `int' KDChartAxesPainter.cpp: In method `void KDChartAxesPainter::paintAxes (QPainter *, KDChartTableDataBase *)': KDChartAxesPainter.cpp:284: warning: passing `double' for argument 1 of `QPoint::setY (int)' KDChartAxesPainter.cpp:285: warning: passing `double' for argument 1 of `QPoint::setY (int)' KDChartAxesPainter.cpp:292: warning: passing `double' for argument 1 of `QPoint::setX (int)' ... lines omitted KDChartAxesPainter.cpp:737: warning: passing `double' for argument 2 of `QPoint::QPoint (int, int)' KDChartAxesPainter.cpp:741: warning: passing `double' for argument 1 of `QPoint::QPoint (int, int)' KDChartAxesPainter.cpp:741: warning: passing `double' for argument 2 of `QPoint::QPoint (int, int)' make[2]: *** [KDChartAxesPainter.lo] Error 1 make[2]: Leaving directory `/home/colesen/download/koffice-1.2/kchart/kdchart' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/colesen/download/koffice-1.2/kchart' make: *** [install-recursive] Error 1