Bug 158176 - linking errors in slideshow tool (missing -lXrandr)
Summary: linking errors in slideshow tool (missing -lXrandr)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-Presentation (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-21 19:09 UTC by Rex Dieter
Modified: 2018-03-23 12:08 UTC (History)
1 user (show)

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


Attachments
add -lXrandr to slideshow plugin linking (915 bytes, patch)
2008-02-21 19:10 UTC, Rex Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rex Dieter 2008-02-21 19:09:46 UTC
Version:           0.1.5 rc2 (using KDE 3.5.9)
Installed from:    Fedora RPMs
Compiler:          gcc version 4.1.2 20070925 (Red Hat 4.1.2-27) 
OS:                Linux

Trying to build kipi-plugins-0.1.5rc2 (on fedora) fails:

/bin/sh ../../libtool --silent --tag=CXX   --mode=link g++  -DNDEBUG -DNO_DEBUG -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -L../../kipi-plugins/common/libkipiplugins -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined   -L/usr/lib64/qt-3.3/lib -L/usr/lib64 -Wl,--as-needed -Wl,--enable-new-dtags  -lkipiplugins -lgpod -lgobject-2.0 -lglib-2.0   -o kipiplugin_slideshow.la -rpath /usr/lib64/kde3 listimageitems.lo plugin_slideshow.lo slideshow.lo slideshowconfig.lo slideshowgl.lo slideshowloader.lo toolbar.lo imageloadthread.lo kbeffect.lo screenproperties.lo slideshowkb.lo slideshowconfigbase.lo -lkdefx -lGL -lkipi   -lkdcraw   -lkdeui -lkdecore -lkio -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread 
.libs/screenproperties.o: In function `KIPISlideShowPlugin::ScreenProperties::suggestFrameRate()':
/builddir/build/BUILD/kipi-plugins-0.1.5-rc2/kipi-plugins/slideshow/screenproperties.cpp:50: undefined reference to `XRRQueryExtension'
/builddir/build/BUILD/kipi-plugins-0.1.5-rc2/kipi-plugins/slideshow/screenproperties.cpp:60: undefined reference to `XRRGetScreenInfo'
/builddir/build/BUILD/kipi-plugins-0.1.5-rc2/kipi-plugins/slideshow/screenproperties.cpp:61: undefined reference to `XRRConfigCurrentRate'
/builddir/build/BUILD/kipi-plugins-0.1.5-rc2/kipi-plugins/slideshow/screenproperties.cpp:62: undefined reference to `XRRFreeScreenConfigInfo'
collect2: ld returned 1 exit status
make[3]: *** [kipiplugin_slideshow.la] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/kipi-plugins-0.1.5-rc2/kipi-plugins/slideshow'
make[2]: *** [all-recursive] Error 1

Would appear that a missing -lXrandr is the culprit.
Comment 1 Rex Dieter 2008-02-21 19:10:54 UTC
Created attachment 23653 [details]
add -lXrandr to slideshow plugin linking

Using this quick-n-dirty patch fixed the build issue for me.
Comment 2 caulier.gilles 2008-02-21 20:23:27 UTC
Angelo,

Another candidate patch to apply before to release kipi-plugins...

Gilles
Comment 3 Valerio Fuoglio 2008-02-21 21:22:41 UTC
SVN commit 777878 by vfuoglio:

Fixed linking error in slideshow/Makefile.am (missing -lXrandr).

Thanks to Rex Dieter for his patch.

CCMAIL: kde-imaging@kde.org
BUG: 158176



 M  +2 -1      NEWS  
 M  +1 -1      slideshow/Makefile.am  


WebSVN link: http://websvn.kde.org/?view=rev&revision=777878
Comment 4 Valerio Fuoglio 2008-02-21 21:24:56 UTC
Fixed in SVN, thanks for your contribution :)

Regards, 
Valerio