Page 1 of 1

Module compiling error (Unrealircd 3.2.5)

Posted: Thu Oct 19, 2006 7:56 am
by cascada
Hi,

When I am trying to compile a module I get this error.

Code: Select all

C:\dev\unreal3.2>nmake -f makefile.win32 custommodule MODULEFILE=netadmins

Microsoft (R) Program Maintenance Utility   Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.

        cl /LDd /MD /Zi    /J /Fesrc/modules/  /Fosrc/modules/ /nologo    /I ./INCLUDE /D  DYNAMIC_LINKING /D NOSPOOF /D MODULE_COMPILE /D_CRT_SECURE_NO_DEPRECATE /D _USE_32BIT_TIME_T src/modules/netadmins.c /link /def:src/modules/module.d
ef wircd.lib         /OUT:src/modules/netadmins.dll
netadmins.c
LINK : fatal error LNK1181: cannot open input file 'wircd.lib'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
System: Windows XP Pro, Visual C++ 2005 Express Edition and Microsoft Platform SDK for Windows Server 2003 SP1.

Can someone please help my how to resolve this problem.
Also, I get the same error when trying to compile any module.

Regards,
Lauri

Posted: Thu Oct 19, 2006 7:36 pm
by wax
you must compice unreal before compile module.

Posted: Fri Oct 20, 2006 9:28 am
by cascada
wax wrote:you must compice unreal before compile module.
I have tried but it gives lot's of errors.
Logfile: http://uus.aktiva.ee/redb_files/compile_results.log

Code: Select all

C:\dev\Unreal3.2>nmake -f makefile.win32 > c:\compile_results.log

Microsoft (R) Program Maintenance Utility   Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

Posted: Sat Oct 21, 2006 11:00 am
by wax
http://www.vulnscan.org/UnrealIrcd/faq/
Compiling - Windows: unresolved external symbol ..

This can mean multiple things, but if you get unresolved symbols in non-windows functions, such as:
Creating library L_COMMANDS.lib and object L_COMMANDS.exp
M_OPER.obj : error LNK2019: unresolved external symbol _sendto_snomask_global re
ferenced in function _m_oper
M_INVITE.obj : error LNK2001: unresolved external symbol _sendto_snomask_global
src/modules/commands.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
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).

Posted: Mon Oct 23, 2006 7:26 am
by cascada
I red the faq and tryed this, but it again gives error.

Code: Select all

C:\dev\Unreal3.2>nmake -f makefile.win32 add_remote_include

Microsoft (R) Program Maintenance Utility   Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'add_remote_include'
Stop.
Is there anything wrong with my compiler or other software that might be causeing this?

Posted: Tue Oct 24, 2006 11:43 am
by wax

Code: Select all

nmake -f makefile.win32 SYMBOLFILE
read carefully FAQ

Posted: Tue Oct 24, 2006 11:52 am
by cascada
wax wrote:

Code: Select all

nmake -f makefile.win32 SYMBOLFILE
read carefully FAQ
Jes, I got it working now.
I thought that I have to compile each symbolfile alone.

Thank you wax for this support.