Bug 277

Summary: Can not compile 1.6.9p12 with Kerberos support on a Solaris 8 or 9.
Product: Sudo Reporter: Mark Maynard <mmaynard>
Component: ConfigureAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.6.9   
Hardware: Sun   
OS: Solaris 2.x   
Attachments: Avoid heimdal specific interfaces
Avoid heimdal specific interfaces

Description Mark Maynard 2008-02-12 10:46:53 MST
Hello,

	When attempting to compile Sudo 1.6.9p12 with Kerberos support on a Solaris 8 or 9 server (see configure options below) using Kerberos 5 version 1.6.3 libraries I get the below error.  Sudo 1.6.9p11 compiles, installs and authenticates against Kerberos perfectly given the same configure options, platform and Kerberos libraries.

	Please let me know if there is any other information I should provide.

Mark Maynard
mmaynard@newcorp.com


./configure  --disable-shadow --without-passwd --sysconfdir=/usr/local/etc --with-kerb5=/usr/local
make

gcc -c -I. -I.  -I/usr/local/include -O2 -D__EXTENSIONS__ -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\" -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  ./auth/kerb5.c
./auth/kerb5.c: In function `kerb5_verify':
./auth/kerb5.c:221: warning: passing arg 1 of `krb5_get_init_creds_opt_free' from incompatible pointer type
./auth/kerb5.c:221: error: too few arguments to function `krb5_get_init_creds_opt_free'
*** Error code 1
make: Fatal error: Command failed for target `kerb5.o'
Comment 1 Todd C. Miller 2008-02-13 17:04:57 MST
Looks like some heimdal-specific things crept in.
Comment 2 Todd C. Miller 2008-02-13 17:06:47 MST
Created attachment 219 [details]
Avoid heimdal specific interfaces

With the following patch sudo 1.6.9p12 compiles using MIT Kerberos 5.
Comment 3 Todd C. Miller 2008-02-13 17:08:17 MST
The content of attachment 219 [details] has been deleted by
    Todd C Miller <Todd.Miller@courtesan.com>
who provided the following reason:

Included unrelated diffs

The token used to delete this attachment was generated at 2008-02-13 17:07:59 EST5EDT.
Comment 4 Todd C. Miller 2008-02-13 17:09:05 MST
Created attachment 220 [details]
Avoid heimdal specific interfaces

With the following patch sudo 1.6.9p12 compiles using MIT Kerberos 5.
Comment 5 Todd C. Miller 2008-03-06 16:11:29 MST
Fixed in sudo 1.6.9p13