View Issue Details

IDProjectCategoryView StatusLast Update
0004051unrealmodule apipublic2012-12-15 20:45
Reporterwarg Assigned Tosyzop  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version3.2.9 
Summary0004051: 3rd party module levellimit.c from unrealircd.org/modules.php fails to compile
DescriptionThe 3rd party module levellimit.c from unrealircd.org/modules.php fails to compile because mustHaveMode is not initialized.


cd src; make 'CFLAGS=-I../include -I/usr/src/Unreal3.2/extras/regexp/include -I/usr/src/Unreal3.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -export-dynamic -I/root/curl/include ' 'CC=gcc' 'IRCDLIBS=-lcrypt -lnsl -lz -ldl -L/root/curl/lib -lcurl -lcares -lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz /usr/src/Unreal3.2/extras/regexp/lib/libtre.a -L../extras/c-ares/lib /usr/src/Unreal3.2/extras/c-ares/lib/libcares.a -lrt ' 'LDFLAGS=' 'IRCDMODE=711' 'RES=' 'BINDIR=/usr/src/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/usr/src/Unreal3.2' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/touch' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=-lssl -lcrypto' 'CRYPTOINCLUDES=' 'URL=url.o' MODULEFILE=levellimit 'EXLIBS=' custommodule
make[1]: Entering directory `/usr/src/Unreal3.2/src'
cd modules; make 'CFLAGS=-I../include -I/usr/src/Unreal3.2/extras/regexp/include -I/usr/src/Unreal3.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -export-dynamic -I/root/curl/include ' 'CC=gcc' 'IRCDLIBS=-lcrypt -lnsl -lz -ldl -L/root/curl/lib -lcurl -lcares -lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz /usr/src/Unreal3.2/extras/regexp/lib/libtre.a -L../extras/c-ares/lib /usr/src/Unreal3.2/extras/c-ares/lib/libcares.a -lrt ' 'LDFLAGS=' 'IRCDMODE=711' 'BINDIR=/usr/src/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/usr/src/Unreal3.2' 'MANDIR=' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/touch' 'RES=' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=-lssl -lcrypto' 'CRYPTOINCLUDES=' 'URL=url.o' MODULEFILE=levellimit 'EXLIBS=' custommodule
make[2]: Entering directory `/usr/src/Unreal3.2/src/modules'
gcc -I../include -I/usr/src/Unreal3.2/extras/regexp/include -I/usr/src/Unreal3.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -export-dynamic -I/root/curl/include -fPIC -DPIC -shared -DDYNAMIC_LINKING \
                -o levellimit.so levellimit.c
levellimit.c: In function âlevelToModeâ:
levellimit.c:205: error: âmustHaveModeâ undeclared (first use in this function)
levellimit.c:205: error: (Each undeclared identifier is reported only once
levellimit.c:205: error: for each function it appears in.)
make[2]: *** [custommodule] Error 1
make[2]: Leaving directory `/usr/src/Unreal3.2/src/modules'
make[1]: *** [custommodule] Error 2
make[1]: Leaving directory `/usr/src/Unreal3.2/src'
make: *** [custommodule] Error 2
Additional InformationThe attached patch simply initializes the mustHaveMode variable to remedy the error.
Attached Files
levellimit.c.patch (343 bytes)
3rd party moduleslevellimit.c - http://www.unrealircd.com/modules/view/35

Activities

syzop

2012-12-15 20:45

administrator   ~0017264

This module is no longer on the modules site.
If you feel the module is useful and want to re-submit a fixed version, then feel free to do so (at modules.unrealircd.org).

Issue History

Date Modified Username Field Change
2011-11-12 01:56 warg New Issue
2011-11-12 01:56 warg File Added: levellimit.c.patch
2012-12-15 20:45 syzop Note Added: 0017264
2012-12-15 20:45 syzop Status new => closed
2012-12-15 20:45 syzop Assigned To => syzop
2012-12-15 20:45 syzop Resolution open => fixed
2017-01-06 15:48 syzop Category module => module api