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

Re: AIX build problems (ITS#527)

> Full_Name: Armin Kunaschik
> Version: 1.2.10
> OS: AIX 4.3.3
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> I'm building with threads and with gdbm.
> OS is AIX 4.3.3, Compiler xlC 3.6.6.
> Error message:
> Target "libbackends.a" is up to date.
>         make  slapd
>         xlc_r -g -I../../include -I../../include   -I/usr/local/include
> -DHAVE_CONFIG_H  -c daemon.c
> "daemon.c", line 39.12: 1506-334 (S) Identifier slapd_shutdown has already been
> defined on line 252 of "proto-slap.h".
> I tried a fix in proto-slap.h:
> /* extern int           slapd_shutdown; */
> I'm not sure whether this is OK or not. Compile runs OK but I don't know
> about side effects.

You did the right thing.  'slapd_shutdown' should not be declared at all
in proto-slap.h.  It is static in daemon.c, and does not appear to be used
anywhere else.  I will commit a fix (this appears to be relavent only to 1.2).
Apparently most compilers ignore this.  I'm not sure if this is even illegal