[sudo-users] kerb5 + sudo build problem

Eric Schoeller eschoeller at users.sourceforge.net
Mon Apr 18 01:26:39 EDT 2011


I'm having a bit of a problem building sudo with kerb5 support on RHEL6. 
The last version of sudo that built correctly with our options was 
1.6.9p9. Our configure options are as follows:

./configure --prefix=/usr/local/sudo --sysconfdir=/usr/local/sudo/etc 
--with-logfac=auth --with-ignore-dot --with-kerb5 --without-passwd 
--disable-shadow --with-logfac=auth  --with-linux-audit

(we only use kerb5 for authentication)

The build error:

/bin/sh ../../libtool --mode=compile gcc -c -I../../include -I../.. -I. 
-I../..   -g -O2 -D_GNU_SOURCE 
-D_PATH_SUDOERS=\"/usr/local/sudo/etc/sudoers\" -DSUDOERS_UID=0 
-DSUDOERS_GID=0 -DSUDOERS_MODE=0440 ./auth/kerb5.c
libtool: compile:  gcc -c -I../../include -I../.. -I. -I../.. -g -O2 
-D_GNU_SOURCE -D_PATH_SUDOERS=\"/usr/local/sudo/etc/sudoers\" 
-DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440 ./auth/kerb5.c  
-fPIC -DPIC -o .libs/kerb5.o
./auth/kerb5.c:75: error: static declaration of 
'krb5_get_init_creds_opt_alloc' follows non-static declaration
/usr/include/krb5/krb5.h:2238: note: previous declaration of 
'krb5_get_init_creds_opt_alloc' was here
./auth/kerb5.c:84: error: conflicting types for 
/usr/include/krb5/krb5.h:2242: note: previous declaration of 
'krb5_get_init_creds_opt_free' was here
make[1]: *** [kerb5.lo] Error 1
make[1]: Leaving directory `/src/sudo/sudo-1.8.1p1/plugins/sudoers'
make: *** [all] Error 2

I commented the declarations in /usr/include/krb5/krb5.h (which is 
provided by krb5-devel-1.8.2-3.el6_0.7.x86_64) and sudo builds 
completely with no errors. I certainly don't believe this is a good fix!!

Any advice?


Eric Schoeller
University of Colorado Boulder
Information Technology Services

More information about the sudo-users mailing list