Bug 96251 - linking fails (missing -limlib2)
Summary: linking fails (missing -limlib2)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-Rotation (show other bugs)
Version: 0.7.1
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-03 21:18 UTC by Rex Dieter
Modified: 2022-01-17 22:15 UTC (History)
0 users

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 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