Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314135 - [gnome-overlay] gnome-extra/evolution-data-server-2.30.0 fails to compile with heimdal
Summary: [gnome-overlay] gnome-extra/evolution-data-server-2.30.0 fails to compile wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-09 13:19 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2010-04-14 16:23 UTC (History)
1 user (show)

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


Attachments
patch to fix the bug (evolution-data-server-2.30.0-heimdal.patch,552 bytes, patch)
2010-04-09 13:22 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-04-09 13:19:04 UTC
With app-crypt/heimdal-1.2.1-r4 installed:

# USE=kerberos emerge evolution-data-server
[...]
  CC     libcamel_provider_1_2_la-camel-sasl-gssapi.lo
camel-sasl-gssapi.c:34:23: error: krb5/krb5.h: No such file or directory
camel-sasl-gssapi.c: In function ‘gssapi_challenge’:
camel-sasl-gssapi.c:340: error: ‘KRB5KRB_AP_ERR_TKT_EXPIRED’ undeclared (first use in this function)
camel-sasl-gssapi.c:340: error: (Each undeclared identifier is reported only once
camel-sasl-gssapi.c:340: error: for each function it appears in.)
camel-sasl-gssapi.c:341: error: ‘KRB5KDC_ERR_NEVER_VALID’ undeclared (first use in this function)
make[4]: *** [libcamel_provider_1_2_la-camel-sasl-gssapi.lo] Error 1

The bug occurs because camel-sasl-gssapi.c includes /usr/include/krb5/krb5.h (the header file installed by app-crypt/mit-krb5), while heimdal installs only /usr/include/krb5.h

Note that previous versions of evolution-data-server (e.g. 2.28) also included krb5/krb5.h but nevertheless compiled successfully since they apparently didn't actually use any of the macros defined in that file.

The solution is to include krb5.h instead of krb5/krb5.h when building against heimdal.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-04-09 13:22:35 UTC
Created attachment 227131 [details, diff]
patch to fix the bug
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-04-09 13:34:58 UTC
Reported the bug upstream at https://bugzilla.gnome.org/show_bug.cgi?id=615290
Comment 3 Priit Laes (IRC: plaes) 2010-04-14 16:21:33 UTC
I added patched ebuild to overlay.
Thank You for the bug report and patch :)
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-04-14 16:23:44 UTC
Fixed per previous comment