compiling sspi branch

  • Cel

    what you have done at seems truly fantastic, so im trying to build the branch

    however, i am a complete beginner to c, and cannot seem to get the compiling to work.

    firstly i have modified the make.bat to work with Win7 and VS2010 as below. notice that i have not been able to locate setenv so that could be causing the problems.

    the fatal error from nmake i get is appended below below. where does the prepend cl to the command come from?? this seems to be the frontmost error.

    also, i am not sure what the meaning of this paramater is APACHE22_HOME=..\httpd
    what is it used for, do i need to point to apache source code or apache server to compile, i dont know what this is needed for at all. at the moment the directory ..\httpd or blabla\branches\httpd does not exist (assuming the relativity starts from batch file path)

    i would really appreciate any help on getting this branch to build or if it is easier, access to the compiled branch.

    thank you!

    Modified make.bat

    echo off
    ::Configuration Area
    set PLATSDKDIR=C:\Program Files\Microsoft SDKs\Windows\v7.0A
    REM I could not find SetEnv anywhere for Win7 / VS2010:
    REM set SDK_Init=c:\Programs\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd
    REM maybe could use setx XXX somehow for the above?
    set MSVCDIR=C:\Program Files\Microsoft Visual Studio 10.0\VC
    set NMAKE_Opts=/NOLOGO
    set APACHE22_HOME=..\httpd
    set APSRC=1
    set NMAKEHOME=C:\Program Files\Microsoft Visual Studio 10.0\VC\bin
    if /i "%1"=="/Debug" goto Do_Debug
    if /i "%1"=="/Release" goto Do_Release
    if /i "%1"=="" goto Do_Release
    ECHO Unknown command-line switch: %~1
    GOTO ERROR_Usage
    set BUILD_TYPE=Release
    set DEBUG=0
    goto Build
    set BUILD_TYPE=Debug
    set DEBUG=1
    goto Build
    REM %SDK_Init% not set so have commented this out 
    REM call "%SDK_Init%" /%BUILD_TYPE%
    color f0
    if "%ERRORLEVEL%"=="0" @echo %BUILD_TYPE% module written to %CD%\bin\
    goto Done
    ECHO Usage: "build [/Debug | /Release]"
    set SDK_Init=
    set MSVCDIR=
    set NMAKE_Opts=
    set APACHE22_HOME=
    set APSRC=
    set BUILD_TYPE=
    set DEBUG=

    Batch call output:

            cl /nologo /W3 /WX /LD /MT /Ot /Ox /Oi /Oy /Ob2 /GF /Gy /I include  /I "..\httpd\i
    nclude" /I "..\httpd\srclib\apr\include" /I "..\httpd\srclib\apr-util\include" /I "..\http
    d\os\win32" /I "C:\Program Files\Microsoft SDKs\Windows\v7.0A\include" /I "C:\Program File
    s\Microsoft Visual Studio 10.0\VC\include" /D WIN32 /c %CD%\src\mod_auth_sspi.c /FoRelease
    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    NMAKE : fatal error U1077: 'cl' : return code '0x1'
  • Cel

    some progress: i added C:\Program Files\Microsoft Visual Studio 10.0\VC\bin to the system environment variable PATH and ran the batch file as administrator: the cl is now recognised !!! more details at

    however, i get a new error now?:

    NMAKE : fatal error U1073: don't know how to make 'dist'

  • Mandeep

    Did you manage to get the mod_authnz_sspi working on Apache2.4 ? If you did, please post a link to the download file and instructions.
    Many Thanks