Version: 1.7.0 (using KDE 4.1.0) OS: Linux Installed from: Fedora RPMs make check fails in the healpix directory: make[4]: Entering directory `/home/matt/fedora/kst/devel/kst-1.7.0/kst/tests/healpix' g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../kst/src/libkst -I../../../kst/src/datasources/healpix -I../../../kst/src/libkst -I../../../kst/src/libkstmath -I../../../kst/tests -I/usr/include/kde -I/usr/lib/qt-3.3/include -I. -I/usr/include/cfitsio -I/usr/include/netcdf-3 -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -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 testhealpix.o testhealpix.cpp In file included from ../../../kst/src/libkst/kstdatasource.h:31, from ../../../kst/src/libkst/kstdatacollection.h:22, from ../../../kst/tests/ksttestcase.h:10, from testhealpix.cpp:8: ../../../kst/src/libkst/kstdateparser.h:21:28: error: kstextdatetime.h: No such file or directory In file included from ../../../kst/src/libkst/kstdatasource.h:31, from ../../../kst/src/libkst/kstdatacollection.h:22, from ../../../kst/tests/ksttestcase.h:10, from testhealpix.cpp:8: ../../../kst/src/libkst/kstdateparser.h:30: error: ‘ExtDateTime’ does not name a type ../../../kst/src/libkst/kstdateparser.h:31: error: expected ‘,’ or ‘...’ before ‘&’ token ../../../kst/src/libkst/kstdateparser.h:31: error: ISO C++ forbids declaration of ‘ExtDateTime’ with no type ../../../kst/src/libkst/kstdateparser.h:32: error: ‘ExtDateTime’ does not name a type In file included from ../../../kst/src/libkst/kstdatacollection.h:22, from ../../../kst/tests/ksttestcase.h:10, from testhealpix.cpp:8: ../../../kst/src/libkst/kstdatasource.h:206: error: expected unqualified-id before ‘&’ token ../../../kst/src/libkst/kstdatasource.h:206: error: expected ‘,’ or ‘...’ before ‘&’ token ../../../kst/src/libkst/kstdatasource.h:210: error: ‘ExtDateTime’ in namespace ‘KST’ does not name a type In file included from ../../../kst/src/libkst/kstdatacollection.h:24, from ../../../kst/tests/ksttestcase.h:10, from testhealpix.cpp:8: ../../../kst/src/libkst/kstvector.h:143: warning: type qualifiers ignored on function return type testhealpix.cpp: In function ‘int main(int, char**)’: testhealpix.cpp:307: warning: ‘KApplication::KApplication(int&, char**, const QCString&, bool, bool)’ is deprecated (declared at /usr/include/kde/kapplication.h:205) make[4]: *** [testhealpix.o] Error 1 make[4]: Leaving directory `/home/matt/fedora/kst/devel/kst-1.7.0/kst/tests/healpix' make[3]: *** [check-am] Error 2 make[3]: Leaving directory `/home/matt/fedora/kst/devel/kst-1.7.0/kst/tests/healpix' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/home/matt/fedora/kst/devel/kst-1.7.0/kst/tests' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/matt/fedora/kst/devel/kst-1.7.0/kst' make: *** [check-recursive] Error 1
The build fails in the tests/healpix directory. Ideally this would not even be included as part of the distribution as it is for internal testing only. Matt, this will likely only build correctly if you have already done a make install for kst 1.7.0 - in which case you should have a /usr/include/kstextdatetime.h file and no build error.
I would argue that this should be included (as it is now) and working in a standalone build (without make install done first). In other packages I have worked on, some bugs have been found by the test suites as they were run on very different compilers and architectures as the 'common' case.
SVN commit 875257 by arwalker: CCBUG:171386 add necessary include directory to the tests/healpix build M +1 -1 Makefile.am WebSVN link: http://websvn.kde.org/?view=rev&revision=875257