Bug 681

Summary: sample plugin build failed
Product: Sudo Reporter: xiaofei <fei.xiao>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.11   
Hardware: PC   
OS: Linux   
Attachments: Fix include order to get __dso_public define

Description xiaofei 2015-02-09 00:30:05 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’
Comment 1 Todd C. Miller 2015-02-09 08:51:15 MST
Created attachment 441 [details]
Fix include order to get __dso_public define

The attached patch will fix the compilation problem.
Comment 2 Todd C. Miller 2015-02-09 15:11:32 MST
Fixed in sudo 1.8.12, available now.