levellimit-1.1 fails to compile.

These are old archives. They are kept for historic purposes only.
Post Reply
dotslasher
Posts: 12
Joined: Tue Jan 11, 2005 7:51 pm

levellimit-1.1 fails to compile.

Post by dotslasher »

link: http://unrealircd.com/index.php?page=mo ... dule&id=48

Fails to compile on my Unreal3.2.2, Shell: freebsd

Code: Select all

gcc -I../include -I/home/xtech/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -DZIP_LINKS -export-dynamic   -fPIC -DPIC -shared  -DDYNAMIC_LINKING  -o levellimit.so levellimit.c
levellimit.c: In function `levelToMode':
levellimit.c:205: `mustHaveMode' undeclared (first use in this function)
levellimit.c:205: (Each undeclared identifier is reported only once
levellimit.c:205: for each function it appears in.)
*** Error code 1

Stop in /home/xtech/Unreal3.2/src/modules.
*** Error code 1

Stop in /home/xtech/Unreal3.2/src.
*** Error code 1

Stop in /home/xtech/Unreal3.2.
Last edited by dotslasher on Tue Mar 08, 2005 12:54 am, edited 1 time in total.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Try updating to 1.1, the latest.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

It seems 1.1 has this error.
Mail codemastr? :P
dotslasher
Posts: 12
Joined: Tue Jan 11, 2005 7:51 pm

Post by dotslasher »

its version 1.1 but the filename says 1.0 ;)

and i'll try :D
DeadNotBuried
Posts: 44
Joined: Wed Mar 10, 2004 5:30 am
Location: irc.majestic-liaisons.com
Contact:

Post by DeadNotBuried »

this may or may not work but you could try it if you wanted to (no i haven't tested it)

at line 200
you could try changing
int levelToMode(char level)
{
switch (level)
{
case 'o':
mustHaveMode |= UMODE_OPER;

to
int levelToMode(char level)
{
int mustHaveMode;
switch (level)
{
case 'o':
mustHaveMode |= UMODE_OPER;

it should at least compile ok then, even if this does work grab any fix codemastr puts out though.
Majestic Liaisons Adult Chat - [url=irc://irc.majestic-liaisons.com:6667]IRC[/url] , Java
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Yes, that fix is correct. I wonder how the hell it compiled/ran in my test! Without the variable, it definately shouldn't have compiled... I'll get a fix out tomorrow.
-- codemastr
Post Reply