Bug 3808 - vCalendar plugin does not load due to undefined symbol icaltime_from_timet
Summary: vCalendar plugin does not load due to undefined symbol icaltime_from_timet
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/vCalendar (show other bugs)
Version: 3.15.0
Hardware: PC Linux
: P3 blocker
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2017-04-13 16:47 UTC by aprsa
Modified: 2017-04-14 12:54 UTC (History)
0 users

See Also:


Attachments

Description aprsa 2017-04-13 16:47:50 UTC
Ubuntu 16.04, installing from sources.

Installed libical-master or libical-2.0.0 from github, same result.

Configuring and building went without a problem; ldd on vcalendar.so shows:

libical.so.2 => /usr/local/lib/libical.so.2 (0x00007f8272df6000)

When trying to load the plugin, the following is reported:

The following error occurred while loading vcalendar.so:

/usr/local/lib/claws-mail/plugins/vcalendar.so: undefined symbol: icaltime_from_timet
Comment 1 Andrej Kacian 2017-04-14 01:39:25 UTC
You're probably using libical 3.0.0, where function icaltime_from_timet was deprecated and removed in that release. Try 2.0.0, it works over here on Debian Testing.
Comment 2 rezso 2017-04-14 01:55:25 UTC
Just a note: icaltime_from_timet is deprecated also in libical 2.0:
https://libical.github.io/libical/apidocs/icaltime_8h.html
The best way is replace it with icaltime_from_timet_with_zone.
Comment 3 aprsa 2017-04-14 02:08:52 UTC
Nope, this is libical-2.0. I did try the master git branch as well, same results. I could try a pre-2.0 version, but the claws release notes said 2.0+ was required. A patch suggested by rezso might indeed be best?
Comment 4 users 2017-04-14 12:48:03 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2017-04-14 12:48:03.363492320 +0200
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=489dce2d36ead88de5424ae267ebbc9871f8bbd1
Merge: 700a1bb 73d4891
Author: Colin Leroy <colin@colino.net>
Date:   Fri Apr 14 12:48:02 2017 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=73d48910780a64de0deec8fe59e87318618f049a
Author: Michael Rasmussen <mir@datanom.net>
Date:   Fri Apr 14 12:47:41 2017 +0200

    Fix bug #3808: Replace icaltime_from_timet with icaltime_from_timet_with_zone

Note You need to log in before you can comment on or make changes to this bug.