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

build problems on Solaris 2.6 / 7 (sig_atomic_t)

When compiling today's cvs version of openldap on Solaris 2.6 and 7, I get compilation
errors like the following from slurpd:

gcc -g -O2 -I../../include        -I../../include   -DHAVE_CONFIG_H     -c args.c -o args.o
In file included from args.c:30:
globals.h:32: parse error before `sig_atomic_t'
globals.h:32: warning: no semicolon at end of struct or union
globals.h:65: parse error before `}'
globals.h:65: warning: data definition has no type or storage class
globals.h:68: parse error before `*'
globals.h:68: conflicting types for `sglob'

The problem seems to be that while configure actually does detect that <signal.h>
declares sig_atomic_t, <signal.h> does not get included in the appropriate lpap
sources. I leave to those more knowledgeable in openldaps build system to find out
in which header, <signal.h> should be included (or in a lot of .c files).

If you do include <signal.h> in those .c files giving the above cited diagnostic,
openldap does actually build.

- Erik Bertelsen, UNI-C