Share

pam_krb5

Tracker: Bugs

5 building against heimdal on debian - ID: 1183264
Last Update: Comment added ( jablko )

To build against the heimdal version contained in
debian sarge, acinclude.m4 should be changed to check
for the heimdal_version symbol instead of
__heimdal_version(). This doesn't seem to be suppoerted
in heimdal 0.6x The following patch fixes this.

diff -Nru pam_krb5.orig/acinclude.m4 pam_krb5/acinclude.m4
--- pam_krb5.orig/acinclude.m4 2003-08-12
10:52:18.083348400 +0200
+++ pam_krb5/acinclude.m4 2005-04-14
19:50:42.384158115 +0200
@@ -411,7 +411,7 @@
fi

AC_MSG_CHECKING([which implementation of Kerberos
we have])
-
AC_TRY_LINK_FUNC(__heimdal_version,KRB5IMPL="heimdal",KRB5IMPL="mit")
+
AC_CHECK_DECL(heimdal_version,KRB5IMPL="heimdal",KRB5IMPL="mit",[#include
<krb5.h>])
AC_MSG_RESULT([looks like $KRB5IMPL])

dnl if $ac_cv_krb5_libs was not set we defaulted
to Heimdal libraries,


Moreover, the tree should contain a tools directory to
allow building with the automake version contained in
Debian woody.

Attached is a script which summarizes these changes and
builds the current cvs.


DiePinguine ( ospelkau ) - 2005-04-14 19:17

5

Open

None

Nobody/Anonymous

Build System

None

Public


Comment ( 1 )




Date: 2005-08-27 18:57
Sender: jablkoAccepting Donations

Logged In: YES
user_id=626583

Without this fix for acinclude.m4, I get -


[...]
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include
-I/usr/include -I/usr/include -I
/usr/include -g -O2 -c pam_krb5afs.c -fPIC -DPIC -o
.libs/pam_krb5.o
pam_krb5afs.c: In function 'get_config':
pam_krb5afs.c:1197: warning: passing argument 2 of
'krb5_free_addresses' from in
compatible pointer type
pam_krb5afs.c:1212: warning: passing argument 2 of
'krb5_free_addresses' from in
compatible pointer type
pam_krb5afs.c:1223: warning: passing argument 2 of
'krb5_free_addresses' from in
compatible pointer type
pam_krb5afs.c:1229: warning: passing argument 2 of
'krb5_get_init_creds_opt_set_
address_list' from incompatible pointer type
pam_krb5afs.c: In function 'pam_sm_setcred':
pam_krb5afs.c:2924: error: request for member 'length' in
something not a structure or union
pam_krb5afs.c:2925: error: request for member 'data' in
something not a structure or union
pam_krb5afs.c:2927: error: request for member 'data' in
something not a structure or union
[...]


With it, the module builds successfully

Many thanks for your work on Kerberos authentication!

Jack


Log in to comment.

Attached File ( 1 )

Filename Description Download
compile_pam-krb5_cvs Script to build current cvs (includes patch) Download

Change ( 1 )

Field Old Value Date By
File Added 129878: compile_pam-krb5_cvs 2005-04-14 19:17 ospelkau