Version: 1.8.0 (using KDE 4.0.5) OS: Linux The following build error is reported: make[6]: Entering directory `/builddir/build/BUILD/kst-1.8.0/kst/src/plugins/fits_nonlinear/general_levenberg_marquardt' /bin/sh ../../../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../kst/src/libkst -I./../../../kst -I/usr/include/kde -I/usr/lib/qt-3.3/include -I. -I/usr/include/cfitsio -I/usr/include/netcdf -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=i686 -mtune=atom -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 kstfit_general_levenberg_marquardt.lo kstfit_general_levenberg_marquardt.cpp kstfit_general_levenberg_marquardt.cpp: In function 'int kstfit_general_levenberg_marquardt(const double* const*, const int*, const double*, double**, int*, double*, const char**, char**)': kstfit_general_levenberg_marquardt.cpp:174: error: exception handling disabled, use -fexceptions to enable make[6]: Leaving directory `/builddir/build/BUILD/kst-1.8.0/kst/src/plugins/fits_nonlinear/general_levenberg_marquardt' make[6]: *** [kstfit_general_levenberg_marquardt.lo] Error 1 make[5]: *** [all-recursive] Error 1
This seems to be caused by the presence of exception handling in the plugins/fits_nonlinear/general_levenberg_marquardt module, together with the -fno-exceptions flag in the compiler options. It is worth noting though that this module has had exception handling since it was added to the build in Feb 2008, and it is known to build correctly on at least some platforms.
I have never gotten it to build, and didn't know it worked.
It has worked since at least Feb 2008 and I've never seen any build problems with it on my machine. Given the number of distributions and compilers though this isn't saying very much.
Fedora devel (rawhide), with gcc 4.4.0. -fno-exceptions seems to be added by configure to the CFLAGS.
The same problem can be seen in Fedora 11 with a default install from DVD - with muparser and gsl installed.
SVN commit 1000694 by arwalker: BUG:200919 the following is necessary on some distributions to ensure exception-handling M +1 -0 Makefile.am WebSVN link: http://websvn.kde.org/?view=rev&revision=1000694