Bug 252300 - kdepimlibs does not find libical
Summary: kdepimlibs does not find libical
Status: RESOLVED FIXED
Alias: None
Product: kdepimlibs
Classification: Applications
Component: kcal (show other bugs)
Version: 4.5
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-25 03:00 UTC by felix-kde
Modified: 2010-09-25 06:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description felix-kde 2010-09-25 03:00:51 UTC
Version:           4.5 (using KDE 4.5.1) 
OS:                Linux

It's installed in /usr, include files in /usr/include/libical, libraries in /usr/lib64, the .pc file is installed in /usr/lib64/pkg-config, which is in my $PKG_CONFIG_PATH.

I have version 0.46, the current version.

Once I patch in the paths manually into CMakeCache.txt (WTF, guys, really?  REALLY?), the build still fails:


/tmp/kdepimlibs-4.5.1/kcal/icalformat_p.cpp: In member function ‘icalproperty* KCal::ICalFormatImpl::writeAttachment(KCal::Attachment*)’:
/tmp/kdepimlibs-4.5.1/kcal/icalformat_p.cpp:787:78: error: invalid conversion from ‘unsigned char*’ to ‘const char*’
/tmp/kdepimlibs-4.5.1/kcal/icalformat_p.cpp:787:78: error:   initializing argument 1 of ‘icalattach* icalattach_new_from_data(const char*, void (*)(unsigned char*, void*), void*)’
make[2]: *** [kcal/CMakeFiles/kcal.dir/icalformat_p.o] Error 1
make[1]: *** [kcal/CMakeFiles/kcal.dir/all] Error 2
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
try to build kdepimlibs

Actual Results:  
fails

Expected Results:  
not fail

gcc 4.5.1, qt 4.6.2
Comment 1 Raphael Kubo da Costa 2010-09-25 06:09:09 UTC
From your build error message, libical _is_ being found.

This problem is caused because a function in libical has had its signature changed in version 0.46, which was released after KDE SC 4.5.1. A fix for this has already been committed, and will be available in the next stable release.

Meanwhile, you can apply this commit: http://websvn.kde.org/?view=revision&revision=1173187