Bugzilla – Bug 356
compilation fails on Solaris with BSM auditing enabled
Last modified: 2009-06-05 08:59:22 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.
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.