Author |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Tue 26 Feb '08 22:52 Post subject: where can i find mod security source code |
|
|
hi all,
i need source code of visual studio 2005 of mod security so ,where can i find it ? ,what to do ? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Feb '08 22:57 Post subject: |
|
|
Source is at http://www.modsecurity.org/download/direct.html a Makefile.win is included.
Instruction:
CD {mod_security2 \apache2 directory}
NMAKE -f Makefile.win
MT -manifest mod_security2.so.manifest -outputresource:mod_security2.so;2 |
|
Back to top |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Wed 27 Feb '08 10:20 Post subject: where can i find mod security source code |
|
|
i got the address you sent ,but there's files with names :
* modsecurity-apache_2.5.0.tar.gz (PGP MD5)
* modsecurity-core-rules_2.5-1.6.0.tar.gz
which belongs to linux ,i need windows based ,sorry i'm new |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 27 Feb '08 10:34 Post subject: |
|
|
Just download the modsecurity-apache_2.5.0.tar.gz That file contains the source. You can unpack it with 7-zip, winzip or something like that |
|
Back to top |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Tue 11 Mar '08 20:50 Post subject: |
|
|
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
cL -MD -I. -IC:\work\httpd-2.2.8\srclib\pcre\include -IC:\work\httpd-2
2.8\srclib\pcre -IC:\work\libxml2-2.6.31\include -IC:\work\lua-5.1.3\include
IC:\work\lua-5.1.3 -IC:\Apache2\include /nologo /O2 /LD /W3 /wd4244 -DWIN32 -D
INNT -Dinline=APR_INLINE -c mod_security2.c -Fomod_security2.obj
'cL' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINVISTA\system32\cmd.exe' : return code '0x1'
Stop. |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Tue 11 Mar '08 21:53 Post subject: |
|
|
CL.EXE is the Microsoft C++ compiler. The error: Code: | 'cl' is not recognized as an internal or external command | means that the compiler couldn't be found on your system.
Do you have Visual C++ 2005 installed? Did you open a Visual Studio 2005 Command Prompt fom the [Start] menu?
Also, the version of NMAKE you are running is version 1.50, from about 1994. (DOS/Windows 95).
Visual Studio 2005 has NMAKE version 8.00.
You can download Windows binaries of mod_security, versions 2.1.6 or 2.5.0, from the Apache Lounge Downloads page.
Perhaps if you told us why you want to build mod_security from source code we could be more help.
-tom- |
|
Back to top |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Fri 14 Mar '08 23:45 Post subject: |
|
|
the new prompt
cL -MD -I. -IC:\work\httpd-2.2.8\srclib\pcre\include -IC:\work\httpd-2.
2.8\srclib\pcre -IC:\work\libxml2-2.6.31\include -IC:\work\lua-5.1.3\include -
IC:\work\lua-5.1.3 -IC:\Apache2\include /nologo /O2 /LD /W3 /wd4244 -DWIN32 -DW
INNT -Dinline=APR_INLINE -c mod_security2.c -Fomod_security2.obj
Command line warning D4002 : ignoring unknown option '/wd4244'
mod_security2.c
msc_xml.h(17) : fatal error C1083: Cannot open include file: 'libxml/xmlschemas.
h': No such file or directory
NMAKE : fatal error U1077: 'C:\WINVISTA\system32\cmd.exe' : return code '0x2'
Stop. |
|
Back to top |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Mon 17 Mar '08 17:28 Post subject: new errors |
|
|
cL -MD -I. -IC:\work\httpd-2.2.8\srclib\pcre\include -IC:\work\httpd-2.
2.8\srclib\pcre -IC:\work\libxml2-2.6.31\include -IC:\work\lua-5.1.3\include -
IC:\work\lua-5.1.3 -IC:\Apache2\include /nologo /O2 /LD /W3 /wd4244 -DWIN32 -DW
INNT -Dinline=APR_INLINE -c mod_security2.c -Fomod_security2.obj
Command line warning D4002 : ignoring unknown option '/wd4244'
mod_security2.c
.\sys/cdefs.h(101) : warning C4005: 'inline' : macro redefinition
unknown(0) : see previous definition of 'inline'
.\iconv.h(14) : error C2061: syntax error : identifier '__THROW'
.\iconv.h(14) : error C2059: syntax error : ';'
.\iconv.h(22) : error C2061: syntax error : identifier '__THROW'
.\iconv.h(22) : error C2059: syntax error : ';'
.\iconv.h(25) : error C2061: syntax error : identifier '__THROW'
.\iconv.h(25) : error C2059: syntax error : ';'
mod_security2.c(341) : warning C4090: '=' : different 'const' qualifiers
mod_security2.c(345) : warning C4090: '=' : different 'const' qualifiers
mod_security2.c(455) : warning C4090: 'function' : different 'const' qualifiers
mod_security2.c(455) : warning C4024: 'apr_pstrdup' : different types for formal
and actual parameter 2
mod_security2.c(880) : warning C4090: '=' : different 'const' qualifiers
mod_security2.c(883) : warning C4090: '=' : different 'const' qualifiers
mod_security2.c(889) : warning C4090: '=' : different 'const' qualifiers
NMAKE : fatal error U1077: 'C:\WINVISTA\system32\cmd.exe' : return code '0x2'
Stop. |
|
Back to top |
|