Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Building mod_fcgid and other modules |
|
Author |
|
0mni
Joined: 30 Apr 2011 Posts: 2
|
Posted: Sat 30 Apr '11 17:05 Post subject: Building mod_fcgid and other modules |
|
|
I am trying to figure out the proper way to build modules for apache. This is my first experience building with Windows, I am familiar and comfortable with linux build system.
I am building in VS2008 (VC9). Apache has been built successfully, and appears to be operation. It has not crashed or died on me.
The documentation is very unclear as to how to build for modules for VC9 and no matter what I try, I just run into road blocks.
Here is the output from my latest attempts in command prompt.
Code: | C:\apache-sdk\httpd-2.2.17\modules\fcgid>set APACHE2_HOME=C:\apache-sdk\httpd-2.
2.17
C:\apache-sdk\httpd-2.2.17\modules\fcgid>NMAKE /f "mod_fcgid.mak" CFG="mod_fcgid
- Win32 Release"
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
if not exist ".\Release/" mkdir ".\Release"
tempfile.bat
rc.exe /l 0x409 /fo".\Release\mod_fcgid.res" /i "../../srclib/apr/includ
e" /i "C:\apache-sdk\httpd-2.2.17/include" /d "NDEBUG" .\mod_fcgid.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm994D.tmp
fcgid_bridge.c
fcgid_bucket.c
fcgid_conf.c
fcgid_filter.c
fcgid_pm_main.c
fcgid_pm_win.c
fcgid_proc_win.c
fcgid_proctbl_win.c
fcgid_protocol.c
fcgid_spawn_ctl.c
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
C:\apache-sdk\httpd-2.2.17\modules\fcgid>nmake /f makefile.nt
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1052: file 'makefile.nt' not found
Stop.
C:\apache-sdk\httpd-2.2.17\modules\fcgid>cd ../../
C:\apache-sdk\httpd-2.2.17>set APACHE2_HOME=C:\apache-sdk\httpd-2.2.17
C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win INSTDIR=C:\apache2 insta
llr
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
INSTDIR = C:\apache2
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17
To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
cd modules\fcgid
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm4127.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
INSTDIR = \Apache22
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17
To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
cd modules\fcgid
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm4092.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win INSTDIR=C:\apache2
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
INSTDIR = C:\apache2
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17
To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
cd modules\fcgid
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm7C7D.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win INSTDIR=C:\apache-sdk\htt
pd-2.2.17
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
INSTDIR = C:\apache-sdk\httpd-2.2.17
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17
To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win
Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include. It must
include apr and apr-util. mod_fcgid cannot build without these files!
echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
cd modules\fcgid
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nmE4E2.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
C:\apache-sdk\httpd-2.2.17> |
What is the right way to build modules for VC9 and is it easier/best to build them with apache or seperately. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
|
|
|
|
|