Bug 168359

Summary: klipper and kfind doesn't compile due missing link dependencies
Product: [I don't know] kde Reporter: Stephan Wezel <s.wezel>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch to add the missing link dependencies in kdebase for the apps kfind and klipper

Description Stephan Wezel 2008-08-04 20:30:41 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.4 
OS:                Linux

klipper and kfind doesn't compile in latest trunk.
I'm using the kde4-split svn ebuilds from http://genkdesvn.mailstation.de/

both fails on the linking stage.

klipper fails with an unresolved symbol to crc32
and kfind fails with unresolved symbols to kpart

The problem for klipper is as follows:
klipper needs to be linked against zlib. The CMakelist.txt for klipper has ${ZLIB_LIBRARY} in the target_link_libraries line.
But this variable doesn't get filled because the missing 

find_package(ZLIB REQUIRED)

line in the kdebase/workspace/CMakelist.txt file.

For kfind:
The CMakefile.txt in the kdebase/apps/kfind directory doesn't have

${KDE4_KPARTS_LIBS}

in the target_link_libraries line.
Comment 1 Stephan Wezel 2008-08-04 20:32:01 UTC
Created attachment 26633 [details]
patch to add the missing link dependencies in kdebase for the apps kfind and klipper
Comment 2 Urs Wolfer 2008-08-04 20:47:25 UTC
SVN commit 842119 by uwolfer:

Link fixes according to #168359.
Patch by Stephan Wezel, thanks.
BUG:168359

 M  +1 -1      apps/kfind/CMakeLists.txt  
 M  +1 -0      workspace/CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=842119