[syslog-ng] Solaris 2.5.1

Balazs Scheidler bazsi@balabit.hu
Mon, 22 May 2000 14:34:33 +0200


> I've got problems to compile syslog-ng 1.4.3 under solaris 2.5.1
> (using gcc 2.95.1):
> 
> [make...]
> 
> gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng-1.4.3/src -I. -O2
> -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c snprintf.c
> 
> snprintf.c: In function `dopr':
> snprintf.c:200: warning: subscript has type `char'
> snprintf.c:224: warning: subscript has type `char'
> snprintf.c: In function `snprintf':
> snprintf.c:715: argument `__builtin_va_alist' doesn't match prototype
> snprintf.c:95: prototype declaration
> snprintf.c:715: number of arguments doesn't match prototype
> snprintf.c:95: prototype declaration
> make[3]: *** [snprintf.o] Error 1

If you have stdarg.h, define HAVE_STDARG_H at the beginning of snprintf.c

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt