This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Odd compile error and quick fix (linux/1.6.15)

Old posts that have not been replied to for several years.
Locked
a
afazio

Odd compile error and quick fix (linux/1.6.15)

Post by afazio »

If while running 'make' you (like me) run into the following errors:

Code: Select all

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
[/color]

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.
Locked