Module compiling error (Unrealircd 3.2.5)

These are old archives. They are kept for historic purposes only.
Post Reply
cascada
Posts: 4
Joined: Thu Oct 19, 2006 7:42 am
Location: Estonia

Module compiling error (Unrealircd 3.2.5)

Post 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
wax
Posts: 72
Joined: Tue Oct 04, 2005 6:32 am
Location: ByNets@Belarus
Contact:

Post by wax »

you must compice unreal before compile module.
cascada
Posts: 4
Joined: Thu Oct 19, 2006 7:42 am
Location: Estonia

Post 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.
wax
Posts: 72
Joined: Tue Oct 04, 2005 6:32 am
Location: ByNets@Belarus
Contact:

Post 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).
cascada
Posts: 4
Joined: Thu Oct 19, 2006 7:42 am
Location: Estonia

Post 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?
wax
Posts: 72
Joined: Tue Oct 04, 2005 6:32 am
Location: ByNets@Belarus
Contact:

Post by wax »

Code: Select all

nmake -f makefile.win32 SYMBOLFILE
read carefully FAQ
cascada
Posts: 4
Joined: Thu Oct 19, 2006 7:42 am
Location: Estonia

Post 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.
Post Reply