It compiles with gcc3.4.6 but not with gcc4.1.1 thats all
As i use gentoo i can switch the compiler with one commandline to gcc3.4 as i have installed both (sloted). It isn't related to incompatibilities with anope nor have i overseen the requirement of MySQL.
GCC3.4.x (and lower): compiles
GCC4: following error ->
gcc -pipe -O3 -s -pipe -march=pentium4 -mfpmath=sse -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -funit-at-a-time -I/usr/include/mysql -s -pipe -march=pentium4 -mfpmath=sse -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -funit-at-a-time -DHAVE_ERRNO_AS_DEFINE=1 -export-dynamic -rdynamic -Wall -fPIC -DPIC -shared -I../../include -c unreal_addon.c
unreal_addon.c:273: Fehler: Statische Deklaration von »mysql« folgt nicht-statischer Deklaration
../../include/extern.h:1118: Fehler: Vorherige Deklaration von »mysql« war hier
unreal_addon.c: In Funktion »do_on_identify«:
unreal_addon.c:1284: Warnung: Implizite Deklaration der Funktion »strcasestr«
unreal_addon.c:1267: Warnung: Variable »buf« wird nicht verwendet
unreal_addon.c: In Funktion »do_info2«:
unreal_addon.c:1398: Warnung: Variable »query« wird nicht verwendet
make[1]: *** [unreal_addon.o] Fehler 1
make[1]: Leaving directory `/home/ftp/anope-1.7.15/src/modules'
make: *** [modules] Fehler 2
Sorry about the german, but it says: "static declaration of 'mysql' after not-static declaration" (roughly translated)
Line 1118 of includes/extern.h clashes with line 273 of unreal_addon.c
If i would posses some coding skills i would fix it and make it available for others. I guess(!) the fix isn't very complicated, but as i'm no C/C++ coder ....