Eggheads: compiling problem
Will Buckner
wcc at techmonkeys.org
Wed Nov 30 13:08:43 CST 2005
Joker wrote:
> Hi, i got the following compiling error, tryed both eggdrop1.6.17 and
> latest CVS version on a OSF1 V5.1 machine but got same problem on both version
>
> gcc -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H
> -DSTATIC -c snprintf.c
> snprintf.c: In function `dopr':
> snprintf.c:280: `short int' is promoted to `int' when passed through `...'
> snprintf.c:280: (so you should pass `int' not `short int' to `va_arg')
> snprintf.c:293: `short unsigned int' is promoted to `int' when passed
> through `...'
> snprintf.c:306: `short unsigned int' is promoted to `int' when passed
> through `...'
> snprintf.c:321: `short unsigned int' is promoted to `int' when passed
> through `...'
> *** Exit 1
> Stop.
> *** Exit 1
> Stop.
> *** Exit 1
> Stop.
>
Try this patch on latest CVS. This is how the guys at NMAP fixed it.
$ wget http://cracked.eggheads.org/~wcc/OSF-snprintf.patch
$ patch -p0 < OSF-snprintf.patch
Let us know if it works.
> Joker
>
>
Thanks,
Will
More information about the Eggheads
mailing list