owasp-modsecurity / ModSecurity

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis.
https://www.modsecurity.org
Apache License 2.0
8.06k stars 1.58k forks source link

Compilation error on Windows #551

Closed rcbarnett-zz closed 10 years ago

rcbarnett-zz commented 10 years ago

MODSEC-403: I'm receiving fatal errors during compilation in a Windows environment, when following the installation guide: https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#windows-ms-vc-8. The "http_core.h" file referenced in the error is there so I'm not sure why the error.

C:\wamp\bin\apache\apache2.4.2\modules\mod_security2\apache2>NMAKE -f Makefile.w in APACHE=C:\wamp\bin\apache\apache2.4.2\bin PCRE=C:\wamp\bin\apache\apache2.4. 2\bin LIBXML2=C:\wamp\bin\apache\apache2.4.2\bin

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

    CL -MD -I. -I..  -IC:\wamp\bin\apache\apache2.4.2\bin\include -IC:\wamp\

bin\apache\apache2.4.2\bin -IC:\wamp\bin\apache\apache2.4.2\bin\include -IC:\w amp\bin\apache\apache2.4.2\bin\include /nologo /O2 /LD /W3 /wd4244 /wd4018 -DWIN 32 -DWINNT -Dinline=APR_INLINE -D -c mod_security2.c -Fomod_security2.obj mod_security2.c mod_security2.c(17) : fatal error C1083: Cannot open include file: 'http_core.h' : No such file or directory NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0 \VC\BIN\CL.EXE"' : return code '0x2' Stop.

rcbarnett-zz commented 10 years ago

Original reporter: skiglades

rcbarnett-zz commented 10 years ago

bpinto: Hello,

If you want we have a windows binary version already compiled at http://www.apachelounge.com/download/

Let me know if it solve your issue

Thanks

rcbarnett-zz commented 10 years ago

skiglades: That's an easy fix, thank you.