Bug 96251

Summary: linking fails (missing -limlib2)
Product: [Applications] digikam Reporter: Rex Dieter <rdieter>
Component: Plugin-Editor-RotationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.7.1   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0

Description Rex Dieter 2005-01-03 21:18:51 UTC
Version:           0.7.1 (using KDE KDE 3.3.2)
Installed from:    RedHat RPMs
Compiler:          gcc-3.2.2 
OS:                Linux

if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../digikamimageplugins/ -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include  -I/usr/X11R6/include     -DQT_THREAD_SUPPORT  -D_REENTRANT  -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i386 -mcpu=i686 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT freerotationwidget.lo -MD -MP -MF ".deps/freerotationwidget.Tpo" -c -o freerotationwidget.lo freerotationwidget.cpp; \
then mv -f ".deps/freerotationwidget.Tpo" ".deps/freerotationwidget.Plo"; else rm -f ".deps/freerotationwidget.Tpo"; exit 1; fi
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i386 -mcpu=i686 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o digikamimageplugin_freerotation.la -rpath /usr/lib/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined   -L/usr/lib -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib  -Wl,--enable-new-dtags   imageplugin_freerotation.lo imageeffect_freerotation.lo freerotationwidget.lo -lkparts -ldigikam
.libs/imageeffect_freerotation.o(.text+0x1d2d): In function `DigikamFreeRotationImagesPlugin::ImageEffect_FreeRotation::slotEffect()':
: undefined reference to `imlib_context_new'

(and lots and lots more errors of the same type)
Comment 1 Rex Dieter 2005-01-03 21:22:45 UTC
Patch (I can inlude it as an attachment if this copy-n-paste is insufficient)

--- digikamimageplugins-0.7.1/digikamimageplugins/freerotation/Makefile.am.imlib2       2005-01-03 14:16:13.000000000 -0600
+++ digikamimageplugins-0.7.1/digikamimageplugins/freerotation/Makefile.am      2005-01-03 14:16:34.000000000 -0600
@@ -10,7 +10,7 @@
        imageplugin_freerotation.cpp \
        imageeffect_freerotation.cpp freerotationwidget.cpp

-digikamimageplugin_freerotation_la_LIBADD = $(LIB_KPARTS) -ldigikam 
+digikamimageplugin_freerotation_la_LIBADD = $(LIB_KPARTS) $(LIB_IMLIB2) -ldigikam 

 digikamimageplugin_freerotation_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
Comment 2 caulier.gilles 2005-02-04 13:23:46 UTC
Fixed in CVS

Gilles Caulier