[Date Prev][Date Next] [Chronological] [Thread] [Top]

OpenLDAP 2.1.17 does not compile on HP Tru64 4.0F (ITS#2436)



Full_Name: Erik de Groot
Version: 2.1.17
OS: HP Tru64 4.0F Patchkit 7
URL: 
Submission from: (NULL) (212.136.56.8)


OpenLDAP 2.1.17 does not compile on HP Tru64 4.0F patchlevel 7 as can be seen in
the following compile output:

gcc -g -O2 -I../../include        -I../../include   -I/usr/local/db41/include   
 -c -o getpeereid.o getpeereid.c
In file included from getpeereid.c:19:
/usr/include/sys/ucred.h:86: `NGROUPS' undeclared here (not in a function)
gnumake[1]: *** [getpeereid.o] Error 1
gnumake[1]: Leaving directory `/var/tmp/openldap-2.1.17/libraries/liblutil'
gnumake: *** [all-common] Error 1

Apparently getpeereid.c makes use of /sys/ucred.h that uses the NGROUPS which is
not defined in ucred.h or any other included header file. When the ucred.h file
is not included in getpeereid.c, OpenLDAP compiles and runs fine on Tru64.