I compiled exact the same mod (its simply a copy from the folder of eggdrop1.6/...) without such an error.make[2]: Entering directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'
gcc -pipe -mwin32 -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHA
VE_CONFIG_H -DSTATIC -DMAKING_MODS -c stats.c
In file included from stats.c:144:
user.c: In function `stats_autoadd':
user.c:58: error: too few arguments to function
make[2]: *** [../stats.o] Error 1
make[2]: Leaving directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'
make[1]: *** [stats.mod_o] Error 2
Ah, I just figured out some more:
user.c:58: maskhost(s, host);
function maskhost is declared in misc.c in 1.7, but i can find only a _maskhost (void _maskhost(const char *s, char *nw, int host)) in the 1.6 version (but it must be somewhere, since it would have given an error about a non declared function ).
This function needs 3 arguments (void maskhost(const char *s, char *new, int host)), LOL. what shall I add in user.c? ^^
Just adding "", seems to satisfy the compiler, but it gives me a warning that leaves the question to me, if it is really a good idea ^^.
OS: CYGWIN_NT-5.1 1.5.12(0.116/4/2)make[2]: Entering directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'
gcc -pipe -mwin32 -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHA
VE_CONFIG_H -DSTATIC -DMAKING_MODS -c stats.c
In file included from stats.c:144:
user.c: In function `stats_autoadd':
user.c:58: warning: passing arg 3 of pointer to function makes integer from poin
ter without a cast
rm -f ../stats.o
mv stats.o ../
make[2]: Leaving directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'
stats version: 1.3.3.dev1 (edited MAKEFILE with .so -> .$(MOD_EXT) and added $(XLIBS) in $(LD) line of course)
last know success eggdrop version: latest 1.6 cvs nightly snapshot aka v1.6.18+asuka