Bug 681 - sample plugin build failed
sample plugin build failed
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.8.11
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-09 00:30 MST by xiaofei
Modified: 2015-02-09 15:11 MST (History)
0 users

See Also:


Attachments
Fix include order to get __dso_public define (430 bytes, patch)
2015-02-09 08:51 MST, Todd C. Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.