Bug 356

Summary: compilation fails on Solaris with BSM auditing enabled
Product: Sudo Reporter: River Tarnell <river>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: low    
Version: 1.7.1   
Hardware: PC   
OS: Solaris 2.x   

Description River Tarnell 2009-06-05 02:46:26 MDT
when configured with BSM auditing on Solaris, sudo fails to compile:

$ gmake
cc -c -I. -I. -I/opt/ts/include -I/opt/ts/openldap/2.4/include  -D__EXTENSIONS__ -D_PATH_SUDOERS=\"/etc/opt/ts/sudoers\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  ./bsm_audit.c
"./bsm_audit.c", line 52: undefined symbol: AUE_sudo
"./bsm_audit.c", line 112: undefined symbol: AUE_sudo
"./bsm_audit.c", line 132: warning: argument #2 is incompatible with prototype:
        prototype: pointer to char : "/usr/include/bsm/libbsm.h", line 217
        argument : pointer to long
"./bsm_audit.c", line 171: undefined symbol: AUE_sudo
cc: acomp failed for ./bsm_audit.c
gmake: *** [bsm_audit.o] Error 2

Tested on Solaris 10 Update 7.
Comment 1 Todd C. Miller 2009-06-05 08:59:22 MDT
Solaris does not provide a sudo audit record type so sudo cannot use BSM auditing on solaris.  This is a limitation of solaris BSM, not a sudo bug.