Bugzilla – Bug 681
sample plugin build failed
Last modified: 2015-02-09 15:11:32 MST
After i download sudo source file,i just try to build sudo and install sudo plugin following the "INTALL" file under sudo-1.8.11p2. then i find there is no sample.so file under /usr/local/libexec/sudo, but we can see group_file.so,sudoers.so,system_group.so. then i try to build sample plugin separately,it is still not working. Error in compile. In file included from ./sample_plugin.c:58: ../../include/sudo_util.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ ../../include/sudo_util.h:142: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
Created attachment 441 [details] Fix include order to get __dso_public define The attached patch will fix the compilation problem.
Fixed in sudo 1.8.12, available now.