Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245152 - net-nds/openldap-2.4.1* USE=kerberos should DEPEND on virtual/mit-krb5
Summary: net-nds/openldap-2.4.1* USE=kerberos should DEPEND on virtual/mit-krb5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 15:35 UTC by François Périchon
Modified: 2009-04-14 20:53 UTC (History)
0 users

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


Attachments
Adding virtual/krb5 to the ebuild fix the bug (openldap-2.4.11-r1-kerberos.diff,359 bytes, text/plain)
2008-11-01 15:44 UTC, François Périchon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Périchon 2008-11-01 15:35:31 UTC
openldap fails to build when the kerberos use is set

# emerge -av openldap

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-nds/openldap-2.4.11-r1 USE="crypt gnutls ipv6 kerberos perl ssl -berkdb -debug -experimental -iodbc -minimal -odbc -overlays -samba -sasl (-selinux) -slp -smbkrb5passwd -syslog -tcpd" 0 kB [0=>1]


 * Building contrib-module: pw-kerberos
/var/tmp/portage/net-nds/openldap-2.4.11-r3/temp/environment: line 3131: krb5-config: command not found
kerberos.c:23:18: error: krb5.h: No such file or directory
kerberos.c: In function 'chk_kerberos':
kerberos.c:100: error: 'krb5_context' undeclared (first use in this function)
kerberos.c:100: error: (Each undeclared identifier is reported only once
kerberos.c:100: error: for each function it appears in.)
kerberos.c:100: error: expected ';' before 'context'
kerberos.c:101: error: 'krb5_error_code' undeclared (first use in this function)
kerberos.c:101: error: expected ';' before 'ret'
kerberos.c:102: error: 'krb5_creds' undeclared (first use in this function)
kerberos.c:102: error: expected ';' before 'creds'
kerberos.c:103: error: 'krb5_get_init_creds_opt' undeclared (first use in this function)
kerberos.c:103: error: expected ';' before 'get_options'
kerberos.c:104: error: 'krb5_verify_init_creds_opt' undeclared (first use in this function)
kerberos.c:104: error: expected ';' before 'verify_options'
kerberos.c:105: error: 'krb5_principal' undeclared (first use in this function)
kerberos.c:105: error: expected ';' before 'client'
kerberos.c:110: error: 'ret' undeclared (first use in this function)
kerberos.c:110: error: 'context' undeclared (first use in this function)
kerberos.c:120: error: 'get_options' undeclared (first use in this function)
kerberos.c:122: error: 'verify_options' undeclared (first use in this function)
kerberos.c:124: error: 'client' undeclared (first use in this function)
kerberos.c:132: error: 'creds' undeclared (first use in this function)
kerberos.c:151: error: 'KRB5_NT_SRV_HST' undeclared (first use in this function)
kerberos.c:151: error: 'server' undeclared (first use in this function)
 * 
 * ERROR: net-nds/openldap-2.4.11-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3131:  Called die
 * The specific snippet of code:
 *               $(tc-getCC) -shared -I../../../include ${CFLAGS} $(krb5-config --cflags) -DHAVE_KRB5 -fPIC ${LDFLAGS} -o pw-kerberos.so kerberos.c || die "building pw-kerberos failed";
 *  The die message:
 *   building pw-kerberos failed


Reproducible: Always

Steps to Reproduce:
1.USE="kerberos" emerge openldap
2.
3.

Actual Results:  
fail to build the pw-kerberos contrib module
Comment 1 François Périchon 2008-11-01 15:44:40 UTC
Created attachment 170469 [details]
Adding virtual/krb5 to the ebuild fix the bug
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2009-04-14 20:53:52 UTC
Done in 2.4.16, thanks.