Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Not able to compile/build/make...anything.  (Read 6463 times)

0 Members and 1 Guest are viewing this topic.

kslice917

  • Anope User
  • Offline Offline
  • Posts: 3
Not able to compile/build/make...anything.
« on: July 14, 2008, 12:35:32 PM »

Now, I don't know much about compiling files or anything (yet).  However, I've been reading for 7+ hours straight and I'm not sure what I'm doing wrong at this point.

I'm trying to compile a module for Anope.  Now, from what I've read; I need to first download the source for Anope and compile Anope itself.  Well, I can't really do that; cause here's what I get:

Quote
C:\Users\Kevin\Desktop\anope-1.7.21>Config.bat
   ___
  / _ \  http://www.anope.org
 | /_\ | _ __  _ _  _ _   ___
 |  _  || '_ \/ _ \/ _ \ / _ \
 | | | || | |  |_|  |_| |  __/
 |_| |_||_| |_\___/|  _/ \___|
                   | |
                   |_| IRC Services
                             1.7.21.1341
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.

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


Press Enter to Begin...


Do you want to compile Anope with MySQL Support?
NOTE: You will need to have installed MySQL 3.23 or Above

Available Options: yes, no
Default Answer: no

Enable MySQL Support?
no


Looking for a suitable compiler...

Looking for: Microsoft Visual Studio 2008 (New PSDK)...
ERROR: Cannot find wsock32.lib - Probably missing PlatformSDK...

Looking for: Microsoft Visual Studio 2005 (New PSDK)...
ERROR: Cannot find MSVCRT.lib - This version is probably not installed...

Looking for: Microsoft Visual Studio 2005 (Old PSDK)...
ERROR: Cannot find MSVCRT.lib - This version is probably not installed...

Looking for: Microsoft Visual Studio .NET 2003...
ERROR: Cannot find MSVCRT.lib - This version is probably not installed...

Looking for: Microsoft Visual Studio 98...
ERROR: Cannot find MSVCRT.lib - This version is probably not installed...

Some of the build tools were detected on your computer, but the essential Platfo
rmSDK components were missing.
You will need to download the PlatformSDK from the URL below, ensuring that the
Core Windows files, and Debugging Tools are installed.
For more details on installing the PlatformSDK, visit http://windows.anope.org

PSDK: http://download.microsoft.com/download/a/5/f/a5f0d781-e201-4ab6-8c6a-9bb4e
fed1e1a/PSDK-x86.exe


ERROR: No suitable build tools were found!
Please ensure you have downloaded and installed a version of Visual C++ and/or P
latformSDK.

For more information on the tools needed to build Anope on Windows, see:
http://windows.anope.org

Keep in mind, this is RIGHT after I installed the Platform SDK as mentioned (and reboot my PC).  As well, I have Visual Studio 2008 installed.

Now, I've also read ahead and tried to compile a .c file just to see what I get.  Here's the results:

Quote
C:\Users\Kevin\Desktop\anope-1.7.21\src\modules>nmake -f Makefile.win32

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

        cl /LD /MD /D MODULE_COMPILE /nologo   /O2 /MD /I"../include" /I"../../i
nclude"  cs_disablexop.c ..\mod_version.c /link ../anope.lib wsock32.lib wsock32
.lib advapi32.lib /NODEFAULTLIB:libcmtd.lib   /export:AnopeInit /export:AnopeFin
i
cs_disablexop.c
c:\users\kevin\desktop\anope-1.7.21\include\services.h(19) : fatal error C1083:
Cannot open include file: 'sysconf.h': No such file or directory
mod_version.c
..\mod_version.c(1) : fatal error C1083: Cannot open include file: 'version.h':
No such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.

Keep in mind, my original intention is ONLY to compile that source file.  I know some of you may want to say this is in the wrong place; but it's not anope I'm trying to get to work, it's the module compilation.

Detailed Information:

Operating System: Windows XP SP3
Compilation Source: cs_disablexop.c
Visual Studio Version: Microsoft Visual Studio 2008
Anope Version: 1.7.21
IRCd: Unreal 3.2

Any ideas?  I just want to be able to compile the .c source files so I can make them into a usable module.  Thank you.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
Re: Not able to compile/build/make...anything.
« Reply #1 on: July 14, 2008, 05:30:15 PM »

You are aware it would probably be simpler to unload cs_xop and comment out CSDefXop in services.conf right?
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

kslice917

  • Anope User
  • Offline Offline
  • Posts: 3
Re: Not able to compile/build/make...anything.
« Reply #2 on: July 14, 2008, 07:34:59 PM »

I am perfectly aware of that.  You see, I'm actually trying to compile this module for a friend.  I've told him you could do it via the services.config file, but he insists on having the module instead.

Other than that, I would really like to know how to be able to compile the .c source files into modules for other modules I found that I would like to use.
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Not able to compile/build/make...anything.
« Reply #3 on: July 14, 2008, 09:37:23 PM »

In a command prompt, the output of the command "set" should be pasted in a post here so we can better help you.

If it helps, I have my build environment here (which is what Anope Windows Releases are built on...) so we can compare some stuff if need be.

Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Not able to compile/build/make...anything.
« Reply #4 on: July 14, 2008, 09:47:15 PM »

Quote
C:\Documents and Settings\chaz>set

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\chaz\Application Data
Basemake=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\BKOffice.Mak
Bkoffice=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\.
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=TEST-AA4BBBD844
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\chaz
INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\.
INETSDK=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\.
LIB=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\.
LOGONSERVER=\\TEST-AA4BBBD844
MSSdk=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\.
Mstools=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\.
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\.;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\WinNT\.;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\.;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bi
\WinNT\.
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 107 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=6b02
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\chaz\LOCALS~1\Temp
TMP=C:\DOCUME~1\chaz\LOCALS~1\Temp
USERDOMAIN=TEST-AA4BBBD844
USERNAME=chaz
USERPROFILE=C:\Documents and Settings\chaz
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
windir=C:\WINDOWS

C:\Documents and Settings\chaz>

Yours should look similar otherwise you've not followed the instructions properly.
Logged

katsklaw

  • Guest
Re: Not able to compile/build/make...anything.
« Reply #5 on: July 14, 2008, 10:41:32 PM »

1> the PSDK needs to be detected first and foremost. Once that's resolved we can work on the compile error.

2> cs_disablexop is a very old module and may not even compile on 1.7 without src code editing.
« Last Edit: July 14, 2008, 11:07:12 PM by katsklaw »
Logged

kslice917

  • Anope User
  • Offline Offline
  • Posts: 3
Re: Not able to compile/build/make...anything.
« Reply #6 on: July 15, 2008, 04:39:09 AM »

In a command prompt, the output of the command "set" should be pasted in a post here so we can better help you.

If it helps, I have my build environment here (which is what Anope Windows Releases are built on...) so we can compare some stuff if need be.

Here's mine, there are some differences and some things the same:

Quote
ALKY=C:\WINDOWS\System32\Libraries\
ALLUSERSPROFILE=C:\Users\All Users
APPDATA=C:\Users\Kevin\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=KEVIN
ComSpec=C:\WINDOWS\system32\cmd.exe
DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
FP_NO_HOST_CHECK=NO
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkVersion=v2.0.50727
HOMEDRIVE=C:
HOMEPATH=\Users\Kevin
INCLUDE=C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;C:\Progra
m Files\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\Program Files\\Microsoft SDKs\
Windows\v6.0A\include;
LIB=C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;C:\Program Files\
Microsoft Visual Studio 9.0\VC\LIB;C:\Program Files\\Microsoft SDKs\Windows\v6.0
A\lib;
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framewo
rk\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;C:\Prog
ram Files\Microsoft Visual Studio 9.0\VC\LIB;
LOGONSERVER=\\KEVIN
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\M
icrosoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\C
ommon7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Fr
amework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:
\Program Files\\Microsoft SDKs\Windows\v6.0A\bin;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Libraries;C:\Program Files\ESTsoft\
ALZip;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\ESTs
oft\ALZip;C:\Program Files\Common Files\Nero\Lib\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0604
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\Kevin\LOCALS~1\Temp
TMP=C:\Users\Kevin\LOCALS~1\Temp
USERDOMAIN=KEVIN
USERNAME=Kevin
USERPROFILE=C:\Users\Kevin
VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0\VC
VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
windir=C:\WINDOWS
WindowsSdkDir=C:\Program Files\\Microsoft SDKs\Windows\v6.0A\

1> the PSDK needs to be detected first and foremost. Once that's resolved we can work on the compile error.

2> cs_disablexop is a very old module and may not even compile on 1.7 without src code editing.

Yeah, the main purpose of this post is to get help with getting the PSDK detected, I just didn't want it to seem like it's a question of compiling Anope.  My main goal is compiling modules; so, help with that would be great.
Logged

katsklaw

  • Guest
Re: Not able to compile/build/make...anything.
« Reply #7 on: July 15, 2008, 10:36:48 AM »

WindowsSdkDir=C:\Program Files\\Microsoft SDKs\Windows\v6.0A\ <--

There is the problem. Anope-1.7.21 doesn't support the MS PSDK 2008 just yet. I know the script says new PSDK, but it's refering to Microsoft Platform SDK for Windows Server 2003 R2, not PSDK 2008. This is something I've been meaning to add to the install.js script before the next release as well as x64 support that I've already added in svn. Install the 2003 version of the PSDK and it should work ;)

http://www.microsoft.com/downloads/details.aspx?familyid=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en
Logged
Pages: [1]   Go Up