Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348260 - gnome-extra/evolution-data-server-2.32.1 fails to build with USE="doc -kerberos": undefined reference to `camel_sasl_gssapi_get_type'
Summary: gnome-extra/evolution-data-server-2.32.1 fails to build with USE="doc -kerber...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://git.gnome.org/browse/evolution...
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.32
  Show dependency tree
 
Reported: 2010-12-09 11:59 UTC by Stephan Friedrichs
Modified: 2011-01-03 14:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (1291892126-install-gnome-extra_evolution-data-server-2.32.1:0::gentoo.out,156.67 KB, text/plain)
2010-12-09 12:02 UTC, Stephan Friedrichs
Details
cave info evolution-data-server (eds-info,15.39 KB, text/plain)
2010-12-09 12:05 UTC, Stephan Friedrichs
Details
gnome-extra/evolution-data-server/files/evolution-data-server-2.32.1_register-camelsaslgssapi-without-kerberos.patch (f6a1d8754a83fe147ef89cc29dcff4cf8c19ce0c.diff,2.58 KB, patch)
2010-12-17 13:43 UTC, Jonathan-Christofer Demay
Details | Diff
1.patch (1.patch,2.53 KB, patch)
2011-01-01 15:47 UTC, Pacho Ramos
Details | Diff
gnome-extra/evolution-data-server/files/evolution-data-server-2.32.1_register-camelsaslgssapi-without-kerberos.patch (evolution-data-server-2.32.1_register-camelsaslgssapi-without-kerberos.patch,2.57 KB, patch)
2011-01-03 10:17 UTC, Jonathan-Christofer Demay
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Friedrichs 2010-12-09 11:59:55 UTC
Compiling gnome-extra/evolution-data-server-2.32.1 fails to build and gives the following error message:

undefined reference to `camel_sasl_gssapi_get_type'

(attaching details)

Reproducible: Always

Steps to Reproduce:
Comment 1 Stephan Friedrichs 2010-12-09 12:02:01 UTC
Created attachment 256730 [details]
build log
Comment 2 Stephan Friedrichs 2010-12-09 12:05:02 UTC
Created attachment 256731 [details]
cave info evolution-data-server
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-09 13:49:54 UTC

*** This bug has been marked as a duplicate of bug 298560 ***
Comment 4 Jonathan-Christofer Demay 2010-12-17 09:49:35 UTC
I don't think this issue is a duplicate of bug 298560. In fact, it's a known bug of evolution-data-server when building without kerberos support and a fix has already been commited upstream: http://git.gnome.org/browse/evolution-data-server/commit/?id=f6a1d8754a83fe147ef89cc29dcff4cf8c19ce0c
Comment 5 Pacho Ramos gentoo-dev 2010-12-17 09:58:18 UTC
Reporters, please try to build it with USE="-doc", if it succeeds, it is bug 298560
Comment 6 Jonathan-Christofer Demay 2010-12-17 10:09:42 UTC
Did you read the comment that come with the commit I just linked ? I quote: "Apparently when building without Kerberos support the entire contents of camel-sasl-gssapi.c is omitted, which breaks generating API docs because camel-scan.c expects a camel_sasl_gssapi_get_type() regardless."

So yes, this bug happens when generating API docs, but not because of gtk-doc (bug 298560). It's because of buggy C code in camel/camel-sasl-gssapi.c.

In fact, I had no problem building gnome-extra/evolution-data-server-2.32.1 including the docs before I dropped the kerberos USE flag and applying the commited patch fixed this issue.
Comment 7 Stephan Friedrichs 2010-12-17 12:58:40 UTC
Jonathan is right, gnome-extra/evolution-data-server-2.32.1:0::gentoo builds with USE="doc kerberos" and USE="-doc -kerberos", but not with USE="doc -kerberos" (which was my setup when I filed this report).
Comment 8 Jonathan-Christofer Demay 2010-12-17 13:38:47 UTC
It will be fixed in the next minor version bump, but in the mean time, here is the patch...
Comment 9 Jonathan-Christofer Demay 2010-12-17 13:43:07 UTC
Created attachment 257418 [details, diff]
gnome-extra/evolution-data-server/files/evolution-data-server-2.32.1_register-camelsaslgssapi-without-kerberos.patch
Comment 10 Pacho Ramos gentoo-dev 2010-12-19 12:06:11 UTC
Thanks for find the patch, we will need to carry it since upstream only committed it to "master" and not 2.32 branch.
Comment 11 Pacho Ramos gentoo-dev 2011-01-01 14:52:41 UTC
(In reply to comment #6)
> In fact, I had no problem building gnome-extra/evolution-data-server-2.32.1
> including the docs before I dropped the kerberos USE flag and applying the
> commited patch fixed this issue.
> 

Well, looks surprising to me how could you apply that patch that cannot be applied :-/
Comment 12 Pacho Ramos gentoo-dev 2011-01-01 15:47:19 UTC
Created attachment 258575 [details, diff]
1.patch

This is a try to backport it, but compilation fails :-(
Comment 14 Jonathan-Christofer Demay 2011-01-03 10:17:46 UTC
Created attachment 258720 [details, diff]
  	gnome-extra/evolution-data-server/files/evolution-data-server-2.32.1_register-camelsaslgssapi-without-kerberos.patch 

Oops, I forgot that sasl_gssapi_challenge was renamed sasl_gssapi_challenge_sync before submitting the patch. Here is a backported patch.
Comment 15 Pacho Ramos gentoo-dev 2011-01-03 14:15:42 UTC
Works fine, thanks a lot :-D

+  03 Jan 2011; Pacho Ramos <pacho@gentoo.org>
+  evolution-data-server-2.32.1-r1.ebuild,
+  +files/evolution-data-server-2.32.1-no-kerberos.patch:
+  Fix building without kerberos, bug #348260 by Stephan Friedrichs and
+  backported patch from Jonathan-Christofer Demay.
+