Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Compile module Win32  (Read 3582 times)

0 Members and 1 Guest are viewing this topic.

surfinusa555

  • Guest
Compile module Win32
« on: June 16, 2006, 03:44:28 AM »

When I tried to compile Anope using the Visual Studio Command Prompt as instructed in the Wiki I got errors, this is what happened:


Quote

Setting environment for using Microsoft Visual Studio 2005 x86 tools.

C:Program FilesMicrosoft Visual Studio 8VC>cd ..

C:Program FilesMicrosoft Visual Studio 8>cd ..

C:Program Files>cd anope

C:Program FilesAnope>cd sources

C:Program FilesAnopesources>cd anope-1.7.14

C:Program FilesAnopesourcesanope-1.7.14>cscript /nologo install.vbs

   ___
  / _   http://www.anope.org
 | /_ | _ __  _ _  _ _   ___
 |  _  || '_ / _ / _  / _
 | | | || | |  |_|  |_| |  __/
 |_| |_||_| |____/|  _/ ___|
                   | |
                   |_| IRC Services
                        v1.7.14


This program will help you to compile your Services, and ask you
questions regarding the compile-time settings of it during the
process.

Anope is a set of Services for IRC networks that allows users to
manage their nicks and channels in a secure and efficient way,
and administrators to manage their network with powerful tools.

Do not forget to read all the documents located in docs/,
especially the README and INSTALL files.

For all your Anope needs please visit our portal at
http://www.anope.org/

Press Enter to Continue...

Would you like to compile Anope with MySQL Support?
(NOTE: You must have MySQL 3.23 or Later installed)

Yes / No (Default)
n

MySQL Support Disabled..

Would you like to enable Database Encryption?
(NOTE: If you enable encryption, you will NOT be able to recover
passwords at a later date. GETPASS and SENDPASS will also be useless)

Yes / No (Default)
n

Database Encryption Disabled..

I will now check you have all the things I need...

I found a copy of Microsoft Visual Studio .NET 2003..
Looks like you've got all the libraries I need..
Configuration Complete!

Type make to Compile Anope

C:Program FilesAnopesourcesanope-1.7.14>make

Microsoft (R) Program Maintenance Utility Version 8.00.50215.44
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd src && nmake -f Makefile.win32 && cd ..

Microsoft (R) Program Maintenance Utility Version 8.00.50215.44
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /nologo   /O2 /MD  /I "C:Program FilesMicrosoft Visual Studio .NET
2003VC7Include" /I "C:Program FilesMicrosoft Visual Studio .NET 2003Vc7Pla
tformSDKInclude" /I"../include" -c botserv.c
botserv.c
        cl /nologo   /O2 /MD  /I "C:Program FilesMicrosoft Visual Studio .NET
2003VC7Include" /I "C:Program FilesMicrosoft Visual Studio .NET 2003Vc7Pla
tformSDKInclude" /I"../include" -c chanserv.c
chanserv.c
        cl /nologo   /O2 /MD  /I "C:Program FilesMicrosoft Visual Studio .NET
2003VC7Include" /I "C:Program FilesMicrosoft Visual Studio .NET 2003Vc7Pla
tformSDKInclude" /I"../include" -c hostserv.c
hostserv.c
        cl /nologo   /O2 /MD  /I "C:Program FilesMicrosoft Visual Studio .NET
2003VC7Include" /I "C:Program FilesMicrosoft Visual Studio .NET 2003Vc7Pla
tformSDKInclude" /I"../include" -c log.c
log.c
        cl /nologo   /O2 /MD  /I "C:Program FilesMicrosoft Visual Studio .NET
2003VC7Include" /I "C:Program FilesMicrosoft Visual Studio .NET 2003Vc7Pla
tformSDKInclude" /I"../include" -c memoserv.c
memoserv.c
        cl /nologo   /O2 /MD  /I "C:Program FilesMicrosoft Visual Studio .NET
2003VC7Include" /I "C:Program FilesMicrosoft Visual Studio .NET 2003Vc7Pla
tformSDKInclude" /I"../include" -c misc.c
misc.c
misc.c(1228) : error C2065: 'VER_SUITE_COMPUTE_SERVER' : undeclared identifier
NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 8VCBINc
l.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

C:Program FilesAnopesourcesanope-1.7.14>


So I downloaded the precompiled version and installed that and it is running fine, but now I want to be able to compile some modules (I'm just trying to do the bs_fantasytemplate.c for now) and every time I do I get this:

Quote

Setting environment for using Microsoft Visual Studio 2005 x86 tools.

C:Program FilesMicrosoft Visual Studio 8VC>cd ..

C:Program FilesMicrosoft Visual Studio 8>cd ..

C:Program Files>cd anopesourcesanope-1.7.14srcmodules

C:Program FilesAnopesourcesanope-1.7.14srcmodules>nmake -f Makefile.win32

Microsoft (R) Program Maintenance Utility Version 8.00.50215.44
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /LD /MD /D MODULE_COMPILE /nologo   /O2 /MD  /I "C:Program FilesMic
rosoft Visual Studio .NET 2003VC7Include" /I "C:Program FilesMicrosoft Visua
l Studio .NET 2003Vc7PlatformSDKInclude" /I"../include" /I"../../include"  bs
_fantasytemplate.c /link ../anope.lib wsock32.lib wsock32.lib advapi32.lib /NODE
FAULTLIB:libcmtd.lib /LIBPATH:"C:Program FilesMicrosoft Visual Studio .NET 200
3Vc7PlatformSDKLib" /LIBPATH:"C:Program FilesMicrosoft Visual Studio .NET 2
003VC7Lib"  /export:AnopeInit /export:AnopeFini
bs_fantasytemplate.c
bs_fantasytemplate.c(39) : warning C4273: 'mod_current_buffer' : inconsistent dl
l linkage
        c:program filesanopesourcesanope-1.7.14includemodules.h(299) : see
 previous definition of 'mod_current_buffer'
LINK : fatal error LNK1181: cannot open input file '../anope.lib'
NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 8VCBINc
l.exe"' : return code '0x2'
Stop.

C:Program FilesAnopesourcesanope-1.7.14srcmodules>



I tried it with both VS.NET 2003 and VS.NET 2005 both gave me the same errors.  Can anyone help me?

[Edited on 16-6-2006 by surfinusa555]
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #1 on: June 16, 2006, 08:30:39 AM »

VS 2005 will not work yet.
VS 2003 should work fine, as thats what I tend to use.

Try downloading the files as documented in WIN32.txt and try using them. Also make sure yo uare using 1.1 (.net) and not 2.0.

If not, I'm still trying to get my windows box back up and I'll compile them.
Logged
Pages: [1]   Go Up