Page 1 of 1

Unrealircd 3.2.3 cvs and CGIirc module

Posted: Mon Sep 26, 2005 7:55 am
by robbtek
I've tryed to compile CGIirc module on Unrealircd 3.2.3 but I receive this error :
[tester@linux Unreal3.2]$ make custommodule MODULEFILE=cgiirc
[tester@linux Unreal3.2]$ make custommodule MODULEFILE=cgiirc
cd src; make 'CFLAGS=-I../include -I/home/tester/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -DZIP_LINKS -export-dynamic ' 'CC=gcc' 'IRCDLIBS=-lcrypt -lnsl -lz -ldl -L../extras/regexp/lib -ltre' 'LDFLAGS=' 'IRCDMODE=711' 'RES=' 'BINDIR=/home/tester/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/home/tester/Unreal3.2' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/touch' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=' 'CRYPTOINCLUDES=' 'URL=' MODULEFILE=cgiirc 'EXLIBS=' custommodule
make[1]: Entering directory `/home/tester/Unreal3.2/src'
cd modules; make 'CFLAGS=-I../include -I/home/tester/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -DZIP_LINKS -export-dynamic ' 'CC=gcc' 'IRCDLIBS=-lcrypt -lnsl -lz -ldl -L../extras/regexp/lib -ltre' 'LDFLAGS=' 'IRCDMODE=711' 'BINDIR=/home/tester/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/home/tester/Unreal3.2' 'MANDIR=' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/touch' 'RES=' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=' 'CRYPTOINCLUDES=' 'URL=' MODULEFILE=cgiirc 'EXLIBS=' custommodule
make[2]: Entering directory `/home/tester/Unreal3.2/src/modules'
gcc -I../include -I/home/tester/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -DZIP_LINKS -export-dynamic -fPIC -DPIC -shared -DDYNAMIC_LINKING \
-o cgiirc.so cgiirc.c
cgiirc.c:46: error: âfind_tkline_matchâ redeclared as different kind of symbol
../include/h.h:730: error: previous declaration of âfind_tkline_matchâ was here
make[2]: *** [custommodule] Error 1
make[2]: Leaving directory `/home/tester/Unreal3.2/src/modules'
make[1]: *** [custommodule] Error 2
make[1]: Leaving directory `/home/tester/Unreal3.2/src'
make: *** [custommodule] Error 2
Can you help me ?

Posted: Mon Sep 26, 2005 11:43 am
by w00t
I'm guessing the module's had some problems with the newer Unreal's, I'll download a copy now and see what I can do.

Posted: Mon Sep 26, 2005 12:32 pm
by robbtek
I think that it's not a "professional" solution but I've solved by removing this line :

extern int find_tkline_match(aClient *, int);

:roll:

Posted: Mon Sep 26, 2005 1:41 pm
by w00t
I've not had the chance to look yet, but I'd say that that got marked external by Unreal, which would explain it, yes :)

[basically: you did the right thing, if it's what i think it is :p]