[Digikam-devel] Bug#455406: FTBFS with GCC 4.3: #define redefined

Martin Michlmayr tbm at cyrius.com
Mon Dec 10 00:11:26 GMT 2007


Package: digikam
Version: 2:0.9.2-5
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  GCC 4.3 has converted a number
of warnings into errors.  With GCC 4.3, you're no longer to
just redefine a previous #define.  You need to either avoid
redefinitions directly or to use #ifndef to make sure that something
has not been defined already.  See
http://www.cyrius.com/journal/gcc/gcc-4.3-pedwarn.html

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of digikam_2:0.9.2-5 on em64t by sbuild/amd64 0.53
...
> creating libdigikam_la.all_cpp.cpp ...
> /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/build/tbm/digikam-0.9.2/./digikam/digikam -I../.. -I/build/tbm/digikam-0.9.2/./digikam/sqlite -I/build/tbm/digikam-0.9.2/./digikam/libs/histogram -I/build/tbm/digikam-0.9.2/./digikam/libs/levels -I/build/tbm/digikam-0.9.2/./digikam/libs/curves -I/build/tbm/digikam-0.9.2/./digikam/libs/themeengine -I/build/tbm/digikam-0.9.2/./digikam/libs/widgets/common -I/build/tbm/digikam-0.9.2/./digikam/libs/thumbbar -I/build/tbm/digikam-0.9.2/./digikam/libs/jpegutils -I/build/tbm/digikam-0.9.2/./digikam/libs/dcraw -I/build/tbm/digikam-0.9.2/./digikam/libs/dimg -I/build/tbm/digikam-0.9.2/./digikam/libs/dmetadata -I/build/tbm/digikam-0.9.2/./digikam/libs/imageproperties -I/build/tbm/digikam-0.9.2/./digikam/libs/threadimageio -I../../digikam/libs/dialogs -I/build/tbm/digikam-0.9.2/./digikam/libs/dialogs -I/build/tbm/digikam-0.9.2/./digikam/utilities/cameragui -I/build/tbm/digikam-0.9.2/./digikam/utilities/imageeditor/editor -I/build/tbm/digikam-0.9.2/./digikam/utilities/imageeditor/canvas -I/build/tbm/digikam-0.9.2/./digikam/utilities/splashscreen -I/build/tbm/digikam-0.9.2/./digikam/utilities/setup -I/build/tbm/digikam-0.9.2/./digikam/utilities/slideshow -I/build/tbm/digikam-0.9.2/./digikam/utilities/batch -I/build/tbm/digikam-0.9.2/./digikam/utilities/lighttable -I/usr/include/kde   -I/usr/include/kde   -I/usr/include/kde   -I/usr/include/gphoto2 -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 -fno-builtin -g3 -fno-inline -g -Wall -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  -c -o libdigikam_la.all_cpp.lo libdigikam_la.all_cpp.cpp
> In file included from /build/tbm/digikam-0.9.2/./digikam/digikam/albumdb_sqlite2.cpp:28,
>                  from libdigikam_la.all_cpp.cpp:7:
> /build/tbm/digikam-0.9.2/./digikam/sqlite/sqlite.h:31:1: error: "SQLITE_VERSION" redefined
> In file included from /build/tbm/digikam-0.9.2/./digikam/digikam/albumdb.cpp:32,
>                  from libdigikam_la.all_cpp.cpp:6:
> /usr/include/sqlite3.h:91:1: error: this is the location of the previous definition
> In file included from /build/tbm/digikam-0.9.2/./digikam/digikam/albumdb_sqlite2.cpp:28,
>                  from libdigikam_la.all_cpp.cpp:7:
> /build/tbm/digikam-0.9.2/./digikam/sqlite/sqlite.h:486:1: error: "SQLITE_TEXT" redefined
> In file included from /build/tbm/digikam-0.9.2/./digikam/digikam/albumdb.cpp:32,
>                  from libdigikam_la.all_cpp.cpp:6:
> /usr/include/sqlite3.h:1431:1: error: this is the location of the previous definition

-- 
Martin Michlmayr
http://www.cyrius.com/






More information about the Digikam-devel mailing list