What happened to the patch that Mike posted?
I saw it before, but now it's missing.
I was hoping to use it.
Obviously, compiling this module with Anope-1.7.22 fails since it's incompatible.
I'd love to have this module working as soon as possible!
Edit: Whoa. Ok, apparently logging in lets you see the patch. That blows, having to be logged in to even see it!
Patch time!
... Ok, I think the patch failed... not sure, but this is interesting.
ignore.h: At top level:
ignore.h:30: error: conflicting types for 'delete_ignore'
../../../include/extern.h:1014: error: previous declaration of 'delete_ignore' w as here
ignore.h:30: error: conflicting types for 'delete_ignore'
../../../include/extern.h:1014: error: previous declaration of 'delete_ignore' w as here
In file included from main.c:61:
ignore.c: In function `do_ignorelist':
ignore.c:97: error: incompatible types in assignment
ignore.c:102: error: structure has no member named `who'
ignore.c: In function `delete_ignore':
ignore.c:119: warning: assignment from incompatible pointer type
ignore.c:122: error: structure has no member named `who'
ignore.c: In function `do_clearignore':
ignore.c:141: error: incompatible types in assignment
ignore.c:145: error: incompatible types in assignment
*** Error code 1
Stop in /usr/home/keiro/anope-1.7.22/src/protocol/bs_fantasy_ext.
*** Error code 1
Stop in /usr/home/keiro/anope-1.7.22/src/protocol.
*** Error code 1
Stop in /usr/home/keiro/anope-1.7.22.
keiro@centaur:/home/keiro/anope-1.7.22>
This is on a shell host. >_>
Edit 2: I tried the patch again in binary mode. It succeeded, but I got the same errors as above.
Here's the patch output.
keiro@centaur:/home/keiro/anope-1.7.22/src/bs_fantasy_ext>patch -p1 < patch.txt
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur original/ban.c fixed/ban.c
|--- original/ban.c 2008-03-04 21:09:53.000000000 +0100
|+++ fixed/ban.c 2008-10-09 04:52:36.000000000 +0200
--------------------------
Patching file ban.c using Plan A...
Hunk #1 succeeded at 173.
Hunk #2 succeeded at 208.
Hunk #3 succeeded at 218.
Hunk #4 succeeded at 319.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur original/clear.c fixed/clear.c
|--- original/clear.c 2007-06-17 16:30:46.000000000 +0200
|+++ fixed/clear.c 2008-10-09 05:26:25.000000000 +0200
--------------------------
Patching file clear.c using Plan A...
Hunk #1 succeeded at 83.
Hunk #2 succeeded at 123.
Hunk #3 succeeded at 164.
Hunk #4 succeeded at 427.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur original/ignore.c fixed/ignore.c
|--- original/ignore.c 2007-06-17 16:38:52.000000000 +0200
|+++ fixed/ignore.c 2008-10-09 04:52:36.000000000 +0200
--------------------------
Patching file ignore.c using Plan A...
Hunk #1 succeeded at 73.
Hunk #2 succeeded at 94.
Hunk #3 succeeded at 108.
Hunk #4 succeeded at 124.
Hunk #5 succeeded at 134.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur original/ignore.h fixed/ignore.h
|--- original/ignore.h 2007-06-17 16:38:55.000000000 +0200
|+++ fixed/ignore.h 2008-10-09 04:52:36.000000000 +0200
--------------------------
Patching file ignore.h using Plan A...
Hunk #1 succeeded at 27.
done
keiro@centaur:/home/keiro/anope-1.7.22/src/bs_fantasy_ext>
Then... I tried recompiling anope after succeeding with the patch.
make all in bs_fantasy_ext...
gcc -pipe -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -export-dynamic -rdynamic -Wall -fPIC -DPIC -shared -I../ -I../../../include -c main.c
In file included from main.c:33:
ban.c: In function `do_unban':
ban.c:196: error: structure has no member named `bancount'
ban.c:213: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:214: error: incompatible type for argument 1 of `myStrGetToken'
ban.c:216: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:217: error: incompatible type for argument 1 of `myStrGetToken'
ban.c:225: error: incompatible types in assignment
ban.c:236: error: incompatible type for argument 2 of `delBan'
ban.c:244: error: incompatible type for argument 2 of `delBan'
ban.c:272: error: incompatible type for argument 2 of `delBan'
ban.c:311: error: structure has no member named `bancount'
ban.c:312: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:313: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:314: error: incompatible type for argument 2 of `delBan'
ban.c:325: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:326: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:327: error: incompatible type for argument 2 of `delBan'
ban.c:329: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:330: error: incompatible type for argument 2 of `my_match_wild_nocase'
ban.c:331: error: incompatible type for argument 2 of `delBan'
In file included from main.c:34:
shun.c: In function `do_shun':
shun.c:88: warning: long int format, time_t arg (arg 6)
shun.c:133: warning: long int format, time_t arg (arg 7)
In file included from main.c:37:
clear.c: In function `do_clear':
clear.c:88: error: structure has no member named `bancount'
clear.c:96: error: incompatible type for argument 1 of `sstrdup'
clear.c:124: error: structure has no member named `exceptcount'
clear.c:131: error: incompatible type for argument 1 of `sstrdup'
clear.c:161: error: structure has no member named `invitecount'
clear.c:168: error: structure has no member named `invite'
In file included from ignore.c:28,
from main.c:61:
ignore.h: At top level:
ignore.h:30: error: conflicting types for 'delete_ignore'
../../../include/extern.h:1014: error: previous declaration of 'delete_ignore' was here
ignore.h:30: error: conflicting types for 'delete_ignore'
../../../include/extern.h:1014: error: previous declaration of 'delete_ignore' was here
In file included from main.c:61:
ignore.c: In function `do_ignorelist':
ignore.c:97: error: incompatible types in assignment
ignore.c:102: error: structure has no member named `who'
ignore.c: In function `delete_ignore':
ignore.c:119: warning: assignment from incompatible pointer type
ignore.c:122: error: structure has no member named `who'
ignore.c: In function `do_clearignore':
ignore.c:141: error: incompatible types in assignment
ignore.c:145: error: incompatible types in assignment
*** Error code 1
Stop in /usr/home/keiro/anope-1.7.22/src/protocol/bs_fantasy_ext.
*** Error code 1
Stop in /usr/home/keiro/anope-1.7.22/src/protocol.
*** Error code 1
Stop in /usr/home/keiro/anope-1.7.22.
keiro@centaur:/home/keiro/anope-1.7.22>
Any ideas, guys?