Bug 139216 - Doesn't build with gcc pre-releases.
Summary: Doesn't build with gcc pre-releases.
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Runtime (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-25 18:59 UTC by Arkadiusz Miskiewicz
Modified: 2022-01-22 17:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arkadiusz Miskiewicz 2006-12-25 18:59:15 UTC
Version:           0.9 (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
Compiler:          gcc version 4.2.0 20061206 (prerelease) 
OS:                Linux

The problem is:  undefined reference to `cimg_library::cimg::t_normal'

make[3]: Wejście do katalogu `/home/users/arekm/rpm/BUILD/digikamimageplugins-0.9.0/digikamimageplugins/restoration'
/bin/sh ../../libtool --silent --tag=CXX   --mode=compile x86_64-pld-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../digikamimageplugins/common/include -I../../digikamimageplugins/common/cimgiface -I../../digikamimageplugins/common/widgets -I/usr/include/qt -I.    -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 -O2 -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-2 -g2 -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 -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -MT imageeffect_restoration.lo -MD -MP -MF .deps/imageeffect_restoration.Tpo -c -o imageeffect_restoration.lo imageeffect_restoration.cpp
In file included from ../../digikamimageplugins/common/cimgiface/cimgiface.h:34,
                 from imageeffect_restoration.cpp:52:
../../digikamimageplugins/common/cimgiface/CImg.h: In constructor 'cimg_library::CImgException::CImgException(const char*, ...)':
../../digikamimageplugins/common/cimgiface/CImg.h:623: warning: function might be possible candidate for 'printf' format attribute
../../digikamimageplugins/common/cimgiface/CImg.h: In constructor 'cimg_library::CImgInstanceException::CImgInstanceException(const char*, ...)':
../../digikamimageplugins/common/cimgiface/CImg.h:643: warning: function might be possible candidate for 'printf' format attribute
../../digikamimageplugins/common/cimgiface/CImg.h: In constructor 'cimg_library::CImgArgumentException::CImgArgumentException(const char*, ...)':
../../digikamimageplugins/common/cimgiface/CImg.h:663: warning: function might be possible candidate for 'printf' format attribute
../../digikamimageplugins/common/cimgiface/CImg.h: In constructor 'cimg_library::CImgIOException::CImgIOException(const char*, ...)':
../../digikamimageplugins/common/cimgiface/CImg.h:681: warning: function might be possible candidate for 'printf' format attribute
../../digikamimageplugins/common/cimgiface/CImg.h: In constructor 'cimg_library::CImgDisplayException::CImgDisplayException(const char*, ...)':
../../digikamimageplugins/common/cimgiface/CImg.h:697: warning: function might be possible candidate for 'printf' format attribute
../../digikamimageplugins/common/cimgiface/CImg.h: In function 'void cimg_library::cimg::warn(bool, const char*, ...)':
../../digikamimageplugins/common/cimgiface/CImg.h:1183: warning: function might be possible candidate for 'printf' format attribute
../../digikamimageplugins/common/cimgiface/CImg.h: At global scope:
../../digikamimageplugins/common/cimgiface/CImg.h:2280: warning: unused parameter 'arg'
mv -f .deps/imageeffect_restoration.Tpo .deps/imageeffect_restoration.Plo
/bin/sh ../../libtool --silent --tag=CXX   --mode=link x86_64-pld-linux-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-2 -g2 -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 -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib64 -R /usr/lib64 -R /usr/lib64 -R /usr/lib64  -L/usr/lib64    -no-undefined -Wl,--as-needed  -o digikamimageplugin_restoration.la -rpath /usr/lib64/kde3 imageplugin_restoration.lo imageeffect_restoration.lo -lkparts -ldigikam ../../digikamimageplugins/common/cimgiface/libcimgiface.la ../../digikamimageplugins/common/widgets/libdigikamimagepluginswidget.la
../../digikamimageplugins/common/cimgiface/.libs/libcimgiface.a(cimgiface.o):(.debug_info+0x53ca5): undefined reference to `cimg_library::cimg::t_normal'
../../digikamimageplugins/common/cimgiface/.libs/libcimgiface.a(cimgiface.o):(.debug_info+0x53cb3): undefined reference to `cimg_library::cimg::t_normal'
../../digikamimageplugins/common/cimgiface/.libs/libcimgiface.a(cimgiface.o):(.debug_info+0x53cc1): undefined reference to `cimg_library::cimg::t_normal'
collect2: ld returned 1 exit status
make[3]: *** [digikamimageplugin_restoration.la] Błąd 1
make[3]: Opuszczenie katalogu `/home/users/arekm/rpm/BUILD/digikamimageplugins-0.9.0/digikamimageplugins/restoration'
Comment 1 Arkadiusz Miskiewicz 2006-12-27 18:59:52 UTC
Patch here:
http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/digikamimageplugins-gcc4.patch
Comment 2 Marcel Wiesweg 2006-12-27 21:37:35 UTC
This patch fixes the cimg_library::cimg::t_normal problem?
Comment 3 Arkadiusz Miskiewicz 2006-12-28 22:41:21 UTC
No, that's additional gcc 4.2 patch required to build the thing. min/max macros are too generic and preprocessor replaces all min/max occurences in libstdc++ include files which breaks build.

Here is t_normal problem in gcc bugzilla:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27657
Not a digikamimageplugins problem :)
Comment 4 caulier.gilles 2007-03-12 09:32:51 UTC
Arkadiusz,

This problem still valid since digiKam 0.9.1 is out ?

Gilles
Comment 5 Arkadiusz Miskiewicz 2007-03-12 09:44:59 UTC
The problem no longer occurs.
Comment 6 caulier.gilles 2007-03-12 09:49:28 UTC
ok, well i close this file now...

Gilles