I've wanted to load this sheep module and learn from it and make my own modules. The problem is that duno how to make it's makefile. I've copied the woobie's makefile and replaced inside from woobie to sheep. Did a ./configure make config and make and finaly I'm getting some errors:
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE_CONFIG_H -DMAKING_MODS -c .././sheep.mod/sheep.c
../sheep.mod/sheep.c:121: parse error before "static"
../sheep.mod/sheep.c:125: warning: type defaults to `int' in declaration of `table'
../sheep.mod/sheep.c:125: warning: initialization makes integer from pointer without a cast
../sheep.mod/sheep.c:125: initializer element is not constant
../sheep.mod/sheep.c:125: warning: data definition has no type or storage class
../sheep.mod/sheep.c:126: parse error before "if"
../sheep.mod/sheep.c:127: warning: type defaults to `int' in declaration of `table'
../sheep.mod/sheep.c:127: redefinition of `table'
../sheep.mod/sheep.c:125: `table' previously defined here
../sheep.mod/sheep.c:127: warning: initialization makes integer from pointer without a cast
../sheep.mod/sheep.c:127: initializer element is not constant
../sheep.mod/sheep.c:127: warning: data definition has no type or storage class
../sheep.mod/sheep.c:128: parse error before "if"
../sheep.mod/sheep.c:130: parse error before "int"
../sheep.mod/sheep.c:148: `sheep_close' undeclared here (not in a function)
../sheep.mod/sheep.c:148: initializer element is not constant
../sheep.mod/sheep.c:148: (near initialization for `sheep_table[1]')
{standard input}: Assembler messages:
{standard input}:425: Error: symbol `table' is already defined
make[2]: *** [../sheep.o] Error 1
make[2]: Leaving directory `/home/irc/temp/eggdrop1.6.13/src/mod/sheep.mod'
make[1]: *** [sheep.mod_so] Error 2
make[1]: Leaving directory `/home/irc/temp/eggdrop1.6.13/src/mod'
make: *** [modules] Error 2
What I'm doing wrong? I'm a newbie with the modules so I don't know.
Once the game is over, the king and the pawn go back in the same box.