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

SCO compilation error slap.h



I have a problem compiling openldap-stable on SCO open server 5.0.4. I
remember this problem when I last looked at ldap 2 years ago with the
original umich version. I got it working but I cannot remember how.

It appears the compiler gcc v2.8.1 gets confused with the valid code in the
iterative structure. Ive also tried the native SCO cc and icc compilers.
Anyone had similar problems. Here's the segment.

gcc -I. -I../../include   -DSCO -DNEED_BSDREGEX -DSYSV -DNOTERMCAP -DLDAP_DE
BUG
       -DLDAP_REFERRALS          -DREVERSE_LOOKUP     -DLDAP_LDBM -DLDAP_SHE
LL -
DLDAP_PASSWD -DLDBM_USE_GDBM -I/usr/local/gdbm/include   -DNO_THREADS   -c
repl.
c -o repl.o
In file included from repl.c:8:
slap.h:73: warning: no semicolon at end of struct or union
slap.h:73: parse error before `.'
slap.h:74: warning: data definition has no type or storage class
slap.h:147: parse error before `Filter'
slap.h:147: warning: no semicolon at end of struct or union
slap.h:156: parse error before `}'
In file included from slap.h:278,
                 from repl.c:8:
proto-slap.h:114: parse error before `Filter'
proto-slap.h:115: parse error before `*'
proto-slap.h:116: parse error before `*'
proto-slap.h:123: parse error before `Filter'
proto-slap.h:188: parse error before `*'
proto-slap.h:188: warning: data definition has no type or storage class
gmake[3]: *** [repl.o] Error 1

Stephen Collier
IT Manager
Panavision Australia