View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004051 | unreal | module api | public | 2011-11-12 01:56 | 2012-12-15 20:45 |
| Reporter | warg | Assigned To | syzop | ||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.2.9 | ||||
| Summary | 0004051: 3rd party module levellimit.c from unrealircd.org/modules.php fails to compile | ||||
| Description | The 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 Information | The attached patch simply initializes the mustHaveMode variable to remedy the error. | ||||
| Attached Files | levellimit.c.patch (343 bytes) | ||||
| 3rd party modules | levellimit.c - http://www.unrealircd.com/modules/view/35 | ||||
| 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 |