Bug 133525 - digikam doesn't compile (KDE forces -fno-exception, digikam needs it)
Summary: digikam doesn't compile (KDE forces -fno-exception, digikam needs it)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 0.9.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-03 23:15 UTC by Patrick
Modified: 2017-08-19 20:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.9.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2006-09-03 23:15:45 UTC
Version:           0.9.0-beta1 (using KDE KDE 3.5.4)
Installed from:    Gentoo Packages
Compiler:          gcc-4.1.1 
OS:                Linux

KDE forces -fno-exception but digikam fails to compile when that option is set. This is what I have been told in gentoo's Bugzilla. One of gentoo's package maintainers for KDE (Ioannis Aslanidis aka deathwing00) says this could be an upstream bug, so I'm reporting it here. For details, please see https://bugs.gentoo.org/show_bug.cgi?id=145889

The error messages during the compile are as follows:

/bin/sh ../../../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include -I../../../../digikam/libs/dimg -I../../../../digikam/libs/dmetadata -I../../../../digikam/libs/dcraw -I../../../../digikam/digikam -I../../../../digikam  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium-m -msse3 -funroll-loops -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 -DQT_CLEAN_NAMESPACE  -c -o rawloader.lo rawloader.cpp
In file included from ../../../../digikam/digikam/digikam_export.h:25,
                 from ../../../../digikam/libs/dimg/dimg.h:36,
                 from jpegloader.cpp:52:
../../../../config.h:56:1: warning: "HAVE_STDLIB_H" redefined
In file included from /usr/include/jpeglib.h:28,
                 from iccjpeg.h:43,
                 from jpegloader.cpp:33:
/usr/include/jconfig.h:12:1: warning: this is the location of the previous definition
jpegloader.cpp:75: warning: unused parameter 'msg_level'
/usr/local/include/exiv2/exif.hpp: In member function 'virtual const Exiv2::Value& Exiv2::Exifdatum::value() const':
/usr/local/include/exiv2/exif.hpp:287: error: exception handling disabled, use -fexceptions to enable
make[5]: *** [tiffloader.lo] Fehler 1
make[5]: *** Warte auf noch nicht beendete Prozesse...
make[5]: Leaving directory `/var/tmp/portage/digikam-0.9.0_beta1-r2/work/digikam-0.9.0-beta1/digikam/libs/dimg/loaders'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/var/tmp/portage/digikam-0.9.0_beta1-r2/work/digikam-0.9.0-beta1/digikam/libs/dimg'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/digikam-0.9.0_beta1-r2/work/digikam-0.9.0-beta1/digikam/libs'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/digikam-0.9.0_beta1-r2/work/digikam-0.9.0-beta1/digikam'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/digikam-0.9.0_beta1-r2/work/digikam-0.9.0-beta1'
make: *** [all] Fehler 2

Cheers, Patrick.
Comment 1 caulier.gilles 2006-09-04 08:06:48 UTC
SVN commit 580635 by cgilles:

digiKam from trunk: fix C++ Exception rules require by Exiv2 library
BUG: 133525


 M  +1 -0      Makefile.am  


--- trunk/extragear/graphics/digikam/libs/dimg/loaders/Makefile.am #580634:580635
@@ -1,4 +1,5 @@
 METASOURCES = AUTO
+KDE_CXXFLAGS = $(USE_EXCEPTIONS)
 
 noinst_LTLIBRARIES = libdimgloaders.la