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

Re: OpenLDAP-2.0-alpha & varargs or stdarg



Here's more information...

...
>What happens when you:
>	env CPPFLAGS=-DHAVE_STDARG ./configure

It still doesn't work. It just as if part of the software expected varargs
and the rest expected stdargs (functions are defined with a "varargs
prototype" in the include file and with an "stdargs prototype" in the
source file or something like that).

...
>Does stdarg.h exist?  is HAVE_STDARG_H defined in portable.h?

Yes it is defined.
Changing "#define HAVE_STDARG_H 1" to "#undef HAVE_STDARG_H" does not even
allow me to compile OpenLDAP:
"debug.c", line 41.6: 1506-343 (S) Redeclaration of lutil_debug differs
from previous declaration on line 76 of "../../include/ldap_log.h".
"debug.c", line 41.6: 1506-378 (I) Prototype for function lutil_debug
cannot contain "..." when mixed with a nonprototype declaration.
"debug.c", line 62.21: 1506-215 (E) Too many arguments specified for macro
va_start.
"debug.c", line 62.9: 1506-045 (S) Undeclared identifier va_alist.
make: 1254-004 The error code from the last command is 1.

I also have the following warning:
"/usr/include/string.h", line 138.25: 1506-343 (S) Redeclaration of
strerror_r differs from previous declaration on line 31 of
"../../include/ac/errno.h".
"/usr/include/string.h", line 138.25: 1506-050 (I) Return type "int" in
redeclaration is not compatible with the previous return type "unsigned
char*".
(strerror_r returns "int" on AIX 4.2.1).

>Kurt

Frederic.