Bug 145936 - dmetedata svn compile error
Summary: dmetedata svn compile error
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 06:42 UTC by Sath
Modified: 2021-05-09 15:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sath 2007-05-25 06:42:05 UTC
Version:           svn (2007-05-24) (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
Compiler:          gcc 4.1 
OS:                Linux

Using the latest svn checkout of the unstable digikam (2007-05-24), compile fails with gcc 4.1.  I have reproduced this compile-time crash three separate times (twice with unsermake and once with make).  All svn versions of required digikam libraries (checked out just minutes before digikam) compiled and are installed to prefix=/usr.  digikam(svn) is configured for prefix=/opt, but also fails with prefix=/usr.

Making all in dmetadata
make[4]: Entering directory `/home/*****/currentversion/graphics/digikam/libs/dmetadata'
/bin/bash ../../../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../digikam/libs/dimg -I../../../digikam/digikam   -I/usr/include/kde -I/usr/share/qt3/include -I.   -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 -O2 -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  -MT dmetadata.lo -MD -MP -MF .deps/dmetadata.Tpo -c -o dmetadata.lo dmetadata.cpp
dmetadata.cpp: In member function 'int Digikam::DMetadata::getImageRating() const':
dmetadata.cpp:216: error: passing 'const Digikam::DMetadata' as 'this' argument of 'bool KExiv2Iface::KExiv2::getExifTagLong(const char*, long int&)' discards qualifiers
make[4]: *** [dmetadata.lo] Error 1
make[4]: Leaving directory `/home/*****/currentversion/graphics/digikam/libs/dmetadata'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/*****/currentversion/graphics/digikam/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/*****/currentversion/graphics/digikam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/*****/currentversion/graphics'
make: *** [all] Error 2
Comment 1 caulier.gilles 2007-05-25 07:42:51 UTC
Sath,

Update and compile libkexiv2 from extragear/libs and all will be fine.


Nota : Use unsermake as your risk. We don't support it and we will never support it. This tool is completly bugous. Later, we will port all to CMake...

Gilles Caulier