[389-users] Problem compiling sample plugin

Juan Asensio Sánchez okelet at gmail.com
Mon Aug 20 11:32:30 UTC 2012


Hi

I am trying to compile a sample plugin, based on the documentation
from https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Directory_Server/9.0/html/Plug-in_Guide/Plugin_Programming_Guide-An_Example_Plug_in.html#Plugin_Programming_Guide-An_Example_Pre_Operation_Plug_in-Writing_the_Plug_in_Example

I have created the .c, makefile, and installed required packages in
centos 5.5 i386 (gcc, kernel-devel, kernel-headers,
389-ds-base-devel), but when i try to make, I get

gcc -fPIC -c smbattrsync.c
In file included from smbattrsync.c:3:
/usr/include/dirsrv/slapi-plugin.h:65:21: error: prtypes.h: No such
file or directory
/usr/include/dirsrv/slapi-plugin.h:66:18: error: ldap.h: No such file
or directory
/usr/include/dirsrv/slapi-plugin.h:67:19: error: prprf.h: No such file
or directory
In file included from smbattrsync.c:3:
/usr/include/dirsrv/slapi-plugin.h: In function 'NSPR_API':

In my machine, I have prtypes.h in /usr/include/nspr4/, not in
/usr/include/dirsrv, neither /usr/include, and so compiler does not
find it. I am not a experienced programmer; this looks something
basic, but I can not get it to work. Any idea?

Regards.



More information about the 389-users mailing list