Compiling UnrealIRCd3.2.4 win32

These are old archives. They are kept for historic purposes only.
Post Reply
Rebellion_Network

Compiling UnrealIRCd3.2.4 win32

Post by Rebellion_Network »

Im trying to compile UnrealIRCd inorder to compile a few modules source codes that I have. This is the first time I have ever tried to do this but I do understand the concept, being that i compile with borland c++ all the time...

I downloaded all the software i needed to compile Unreal and anope but while compiling unreal i get this error:
-------------------------------------------------------------------------------------
src\support.c(2404) : error C2065: 'WSASYSCALLFAILURE' : undeclared identifier
src\support.c(2404) : error C2099: initializer is not a constant
src\support.c(2404) : warning C4047: 'initializing' : 'int' differs in levels of
indirection from 'unsigned char [20]'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
-------------------------------------------------------------------------------------
I read somewhere to download dlltool and place it in winnt\system32 then type nmake -f makefile.win32 SYMBOLFILE , I have windows xp so i placed it in Windows\system32, and that gave me another error:
-------------------------------------------------------------------------------------
/out:def-clean.exe
def-clean.obj
dlltool --output-def wircd.def.in --export-all-symbols SRC/CHANNEL.OBJ S
RC/SEND.OBJ SRC/SOCKET.OBJ SRC/S_CONF.OBJ SRC/FDLIST.OBJ SRC/DBUF.OBJ SRC/CLO
AK.OBJ SRC/HASH.OBJ SRC/PARSE.OBJ SRC/IRCD.OBJ SRC/S_NUMERIC.OBJ SRC/WHOWAS.OBJ
SRC/S_AUTH.OBJ SRC/HELP.OBJ SRC/S_MISC.OBJ SRC/MATCH.OBJ SRC/CRULE.OBJ SRC/S
_DEBUG.OBJ SRC/SUPPORT.OBJ SRC/LIST.OBJ SRC/S_ERR.OBJ SRC/PACKET.OBJ SRC/S_BSD
.OBJ SRC/S_SERV.OBJ SRC/S_USER.OBJ SRC/CHARSYS.OBJ SRC/VERSION.OBJ SRC/S_KLINE
.OBJ SRC/S_EXTRA.OBJ SRC/IRCSPRINTF.OBJ SRC/LUSERS.OBJ SRC/SCACHE.OBJ SRC/ALN.O
BJ SRC/BADWORDS.OBJ SRC/WEBTV.OBJ SRC/RES.OBJ SRC/MODULES.OBJ SRC/S_SVS.OBJ SRC
/EVENTS.OBJ SRC/UMODES.OBJ SRC/AUTH.OBJ SRC/CIDR.OBJ SRC/SSL.OBJ SRC/RANDOM.OBJ
SRC/EXTCMODES.OBJ SRC/MD5.OBJ SRC/API-ISUPPORT.OBJ SRC/API-COMMAND.OBJ SRC/EXT
BANS.OBJ
dlltool: Unable to open object file: SRC/CHANNEL.OBJ
NMAKE : fatal error U1077: 'dlltool' : return code '0x1'
Stop.
-------------------------------------------------------------------------------------
Can anyone please help me? Thanks
wax
Posts: 72
Joined: Tue Oct 04, 2005 6:32 am
Location: ByNets@Belarus
Contact:

Post by wax »

http://www.vulnscan.org/UnrealIRCd/faq/#76
Then this is because the wircd.def file is not up to date with your compile settings. Fixing this is simple, you need to download dlltool.exe and place it in your path (eg: c:\winnt\system32). Then, for compiling you use something like this:
nmake -f makefile.win32 [your other options here]
nmake -f makefile.win32 SYMBOLFILE
nmake -f makefile.win32 [your other options here]
So basically you just run nmake -f makefile.win32 SYMBOLFILE and then restart compiling again.

If that didn't help, then this is a different problem (eg: old compiler, too new compiler, invalid compile environment, etc).
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Post by nate »

Interestingly enough, I'm getting similar errors after getting the dlltool.exe into the System32:

Code: Select all

Creating library wircd.lib and object wircd.exp
ARESLIB.LIB(windows_port.obj) : error LNK2001: unresolved external symbol __alld
vrm
WIRCD.EXE : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
However i'm doing it exactly as how the 'Compiling_win32.txt' walkthrough states, even using the same format of Compiler and such o_O
Syzop
UnrealIRCd head coder
Posts: 2116
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

platform sdk !
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Post by nate »

Syzop wrote:platform sdk !
Done and installed here o_O

Atleast the one which was required for Visual C++ 6, which was the February 2003 Build of the PSDK. Is there some reason that one wouldn't work, where as it did in the past?
Syzop
UnrealIRCd head coder
Posts: 2116
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

ha!.. vc6! ;p
Well as mentioned in compiling_win32.txt it _might_ work ;p.


There's an updated (but untested) new compiling_win32.txt
I wished a link to "head" would work, but anyway, this is the current version of compiling_win32.txt in cvs as we speak: link

Maybe it helps.

That said, some people have complained with *too new* compilers as well (yell at microsoft, not me :P)... so you'll have to test and see
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Post by nate »

Bah, my problem is being able to afford anything new, haha.

I'll try to see if I can get myself Visual C++ 7 perhaps, that seems to be the average recommended setup or the stuff from your new guide.
Syzop
UnrealIRCd head coder
Posts: 2116
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

As mentioned in the link I gave, it is free ;p.

But yes, Visual C++ 7 will work for sure, since I'm using that myself.
Post Reply