| View previous topic :: View next topic |
| Author |
Message |
afazio Guest
|
Posted: Wed Nov 05, 2003 1:40 am Post subject: Odd compile error and quick fix (linux/1.6.15) |
|
|
If while running 'make' you (like me) run into the following errors:
| Code: | snprintf.c:722: parse error before "va_dcl"
snprintf.c:724: syntax error before '{' token
snprintf.c:730: warning: type defaults to `int' in declaration of `VA_LOCAL_DECL'
snprintf.c:730: warning: data definition has no type or storage class
snprintf.c:732: warning: type defaults to `int' in declaration of `VA_START'
snprintf.c:732: warning: parameter names (without types) in function declaration
snprintf.c:732: warning: data definition has no type or storage class
snprintf.c:733: parse error before "char"
snprintf.c:733: warning: type defaults to `int' in declaration of `VA_SHIFT'
snprintf.c:733: warning: data definition has no type or storage class
snprintf.c:735: parse error before "size_t"
snprintf.c:735: warning: type defaults to `int' in declaration of `VA_SHIFT'
snprintf.c:735: warning: data definition has no type or storage class
snprintf.c:736: parse error before "char"
snprintf.c:736: warning: type defaults to `int' in declaration of `VA_SHIFT'
snprintf.c:736: warning: data definition has no type or storage class
snprintf.c:738: parse error before "void"
snprintf.c:739: warning: type defaults to `int' in declaration of `VA_END'
snprintf.c:739: warning: data definition has no type or storage class
snprintf.c:740: parse error before "return"
make[2]: *** [snprintf.o] Error 1
make[2]: Leaving directory `/home/afazio/tmp/eggdrop1.6.15/src/compat'
make[1]: *** [compatability] Error 2
make[1]: Leaving directory `/home/afazio/tmp/eggdrop1.6.15/src'
make: *** [modegg] Error 2 |
then, with a text editor, comment out the two compiler statements on lines 89 and 715 in src/compat/snprintf.c. This fixed the problem for me. Cheers. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|