Re: New Windows build - Apache 2.2.3

2006-07-31 Thread Jorge Schrauwen

Oh sry that i wasn't very clear on the unix sournce ^^
It's a bit out dated but this should help you:
http://www.blackdot.be/?inc=apache/unix2win/index.htm

you need to manual add apr,apr-utils... and convert the source

On 7/30/06, hunter [EMAIL PROTECTED] wrote:

On 7/30/06, Jorge Schrauwen [EMAIL PROTECTED] wrote:
 ah using visual studio 2005?
 Try using the unix source instead... wrowe posted a notice about this.

 On 7/30/06, hunter [EMAIL PROTECTED] wrote:
  I am getting an error while building Apache 2.2.3 for Windows...
 
 Creating library .\Release\mod_unique_id.lib and object
  .\Release\mod_unique_id.exp
  nmake -nologo -f mod_usertrack.mak   CFG=mod_usertrack -
  Win32 Release RECURSE=0
  rc.exe /l 0x409 /foDebug/mod_usertrack.res /i
  ../../include /i ../../srclib/apr/include /i \asf
  -build\build-2.2.3\build\win32 /d _DEBUG /d
  BIN_NAME=mod_usertrack.so /d LONG_NAME=usertrack_module for Apache
  ..\..\build\win32\httpd.rc fatal error RC1109: error creating
  Debug/mod_usertrack.res
  NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
  Stop.
  NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
  Stop.
 
  Any suggestions...
 
  Chris Lewis
 


 --
 ~Jorge


I may not be correct but I understood Bill's email to say that the
problem affected those who compile with the IDE, while I compile from
the command line.

I tried compiling with SDK 2003 R2 (newer complier) but that made no
difference.

Trying to compile with unix source results with an immediate failure
to find srclib due to forward slashes that are not recognized by
Windows.

I think there is something wrong with mod_usertrack.mak - notice the /d _DEBUG.

I have tried to fix the makefile but I have still not fixed it.

Chris Lewis




--
~Jorge


Re: New Windows build - Apache 2.2.3

2006-07-31 Thread William A. Rowe, Jr.
Thanks Chris .. researching.

This is what I was talking about by having too many versions of Visual Studio,
each with peculiar quirky requirement for /d VAR=Long String Value syntax.

Only a custom build step, I'm thinking, will save us from this rc hell.

hunter wrote:
 I am getting an error while building Apache 2.2.3 for Windows...
 
rc.exe /l 0x409 /foDebug/mod_usertrack.res /i
 ../../include /i ../../srclib/apr/include /i \asf
 -build\build-2.2.3\build\win32 /d _DEBUG /d
 BIN_NAME=mod_usertrack.so /d LONG_NAME=usertrack_module for Apache
 ..\..\build\win32\httpd.rc fatal error RC1109: error creating
 Debug/mod_usertrack.res
 NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
 Stop.
 NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
 Stop.



Re: New Windows build - Apache 2.2.3

2006-07-31 Thread Steffen
At AL there are reports that also with VC2005-IDE the 2.2.3 Windows source 
gives issues.


Is it an idea to revert back to the 2.2.2 method ? there we had no reports 
like this.


Indeed the unix source builds fine with VC2005  IDE.

Steffen

- Original Message - 
From: William A. Rowe, Jr. [EMAIL PROTECTED]

To: dev@httpd.apache.org
Sent: Monday, July 31, 2006 08:55
Subject: Re: New Windows build - Apache 2.2.3



Thanks Chris .. researching.

This is what I was talking about by having too many versions of Visual 
Studio,
each with peculiar quirky requirement for /d VAR=Long String Value 
syntax.


Only a custom build step, I'm thinking, will save us from this rc hell.

hunter wrote:

I am getting an error while building Apache 2.2.3 for Windows...

   rc.exe /l 0x409 /foDebug/mod_usertrack.res /i
../../include /i ../../srclib/apr/include /i \asf
-build\build-2.2.3\build\win32 /d _DEBUG /d
BIN_NAME=mod_usertrack.so /d LONG_NAME=usertrack_module for Apache
..\..\build\win32\httpd.rc fatal error RC1109: error creating
Debug/mod_usertrack.res
NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code 
'0x2'

Stop.







Re: New Windows build - Apache 2.2.3

2006-07-31 Thread William A. Rowe, Jr.
Steffen wrote:
 At AL there are reports that also with VC2005-IDE the 2.2.3 Windows
 source gives issues.
 
 Is it an idea to revert back to the 2.2.2 method ? there we had no
 reports like this.

Nope - the old version required awk to -build- the sources.  Now, awk
is only needed to customize the .conf scripts, and in it's absense, well
do it yourself by hand.  awk's no longer required.

The solution as mentioned several times is a custom-build step to invoke
rc.exe, where none of the versions of visualstudio will corrupt the cmd.

 Indeed the unix source builds fine with VC2005  IDE.

So does the windows bundle; grab
http://svn.apache.org/repos/asf/apr/apr/trunk/build/cvtdsp.pl - and in the
httpd-2.2.3 tree, just invoke

perl cvtdsp.pl -2005

This won't be necessary in 2.2.4 - wouldn't have been in 2.2.3 if this
security issue hadn't popped up.

Bill


Re: New Windows build - Apache 2.2.3

2006-07-31 Thread Steffen

I understand now and I missed the script.

I have reports that all now is building fine with VC2005-IDE with the 
Windows source after executing the script.


Thanks!

Steffen

- Original Message - 
From: William A. Rowe, Jr. [EMAIL PROTECTED]

To: dev@httpd.apache.org
Sent: Monday, July 31, 2006 23:25
Subject: Re: New Windows build - Apache 2.2.3



Steffen wrote:

At AL there are reports that also with VC2005-IDE the 2.2.3 Windows
source gives issues.

Is it an idea to revert back to the 2.2.2 method ? there we had no
reports like this.


Nope - the old version required awk to -build- the sources.  Now, awk
is only needed to customize the .conf scripts, and in it's absense, well
do it yourself by hand.  awk's no longer required.

The solution as mentioned several times is a custom-build step to invoke
rc.exe, where none of the versions of visualstudio will corrupt the cmd.


Indeed the unix source builds fine with VC2005  IDE.


So does the windows bundle; grab
http://svn.apache.org/repos/asf/apr/apr/trunk/build/cvtdsp.pl - and in the
httpd-2.2.3 tree, just invoke

perl cvtdsp.pl -2005

This won't be necessary in 2.2.4 - wouldn't have been in 2.2.3 if this
security issue hadn't popped up.

Bill





Re: New Windows build - Apache 2.2.3

2006-07-31 Thread hunter

On 7/31/06, Steffen [EMAIL PROTECTED] wrote:

I understand now and I missed the script.

I have reports that all now is building fine with VC2005-IDE with the
Windows source after executing the script.

Thanks!

Steffen

- Original Message -
From: William A. Rowe, Jr. [EMAIL PROTECTED]
To: dev@httpd.apache.org
Sent: Monday, July 31, 2006 23:25
Subject: Re: New Windows build - Apache 2.2.3


 Steffen wrote:
 At AL there are reports that also with VC2005-IDE the 2.2.3 Windows
 source gives issues.

 Is it an idea to revert back to the 2.2.2 method ? there we had no
 reports like this.

 Nope - the old version required awk to -build- the sources.  Now, awk
 is only needed to customize the .conf scripts, and in it's absense, well
 do it yourself by hand.  awk's no longer required.

 The solution as mentioned several times is a custom-build step to invoke
 rc.exe, where none of the versions of visualstudio will corrupt the cmd.

 Indeed the unix source builds fine with VC2005  IDE.

 So does the windows bundle; grab
 http://svn.apache.org/repos/asf/apr/apr/trunk/build/cvtdsp.pl - and in the
 httpd-2.2.3 tree, just invoke

 perl cvtdsp.pl -2005

 This won't be necessary in 2.2.4 - wouldn't have been in 2.2.3 if this
 security issue hadn't popped up.

 Bill




The error(s) that I am getting are not caused by the defines.

I still get the error I indicated in my first email.

 Creating library .\Release\mod_unique_id.lib and object
.\Release\mod_unique_id.exp
  nmake -nologo -f mod_usertrack.mak   CFG=mod_usertrack -
Win32 Release RECURSE=0
  rc.exe /l 0x409 /foDebug/mod_usertrack.res /i
../../include /i ../../srclib/apr/include /i \asf
-build\build-2.2.3\build\win32 /d _DEBUG /d
BIN_NAME=mod_usertrack.so /d LONG_NAME=usertrack_module for Apache
..\..\build\win32\httpd.rc fatal error RC1109: error creating
Debug/mod_usertrack.res
NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
Stop.

Notice that it is trying to build debug during a release build.

I fixed the makefile and it continued until it got a similar error
with htpasswd.mak. I fixed this makefile and it failed in makefile.win
with this error message.

D:\build\httpd-2.2.3(copy docs\conf\extra\httpd-vhosts.conf.in
c:\apache\conf\extra\httpd-vhosts.conf.defaul
t   0.y   awk -f script.awk docs/conf/extra/httpd-vhosts.conf.in
c:\apache   1c:\apache\conf\extra\h
ttpd-vhosts.conf.default )
   1 file(s) copied.
NMAKE : fatal error U1077: 'for' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
Stop.

I have attached the fixed makefiles.

I still need help with the last error, I don't understand what the
makefile is doing - the build is complete and it is editing the confs.
But I am looking at to see if I can figure it out.

Chris Lewis
# Microsoft Developer Studio Generated NMAKE File, Based on mod_usertrack.dsp
!IF $(CFG) == 
CFG=mod_usertrack - Win32 Release
!MESSAGE No configuration specified. Defaulting to mod_usertrack - Win32 
Release.
!ENDIF

!IF $(CFG) != mod_usertrack - Win32 Release  $(CFG) != mod_usertrack - 
Win32 Debug
!MESSAGE Invalid configuration $(CFG) specified.
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f mod_usertrack.mak CFG=mod_usertrack - Win32 Release
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE mod_usertrack - Win32 Release (based on Win32 (x86) Dynamic-Link 
Library)
!MESSAGE mod_usertrack - Win32 Debug (based on Win32 (x86) Dynamic-Link 
Library)
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF

!IF $(OS) == Windows_NT
NULL=
!ELSE
NULL=nul
!ENDIF

!IF  $(CFG) == mod_usertrack - Win32 Release

OUTDIR=.\Release
INTDIR=.\Release
# Begin Custom Macros
OutDir=.\Release
# End Custom Macros

!IF $(RECURSE) == 0

ALL : $(OUTDIR)\mod_usertrack.so

!ELSE

ALL : libhttpd - Win32 Release libaprutil - Win32 Release libapr - Win32 
Release $(OUTDIR)\mod_usertrack.so

!ENDIF

!IF $(RECURSE) == 1
CLEAN :libapr - Win32 ReleaseCLEAN libaprutil - Win32 ReleaseCLEAN 
libhttpd - Win32 ReleaseCLEAN
!ELSE
CLEAN :
!ENDIF
[EMAIL PROTECTED] $(INTDIR)\mod_usertrack.obj
[EMAIL PROTECTED] $(INTDIR)\mod_usertrack.res
[EMAIL PROTECTED] $(INTDIR)\mod_usertrack_src.idb
[EMAIL PROTECTED] $(INTDIR)\mod_usertrack_src.pdb
[EMAIL PROTECTED] $(OUTDIR)\mod_usertrack.exp
[EMAIL PROTECTED] $(OUTDIR)\mod_usertrack.lib
[EMAIL PROTECTED] $(OUTDIR)\mod_usertrack.pdb
[EMAIL PROTECTED] $(OUTDIR)\mod_usertrack.so

$(OUTDIR) :
if not exist $(OUTDIR)/$(NULL) mkdir $(OUTDIR)

CPP=cl.exe
CPP_PROJ=/nologo /MD /W3 /Zi /O2 /Oy- /I ../../include /I 
../../srclib/apr/include /I ../../srclib/apr-util/include /D NDEBUG /D 
WIN32 /D

Re: New Windows build - Apache 2.2.3

2006-07-30 Thread Jorge Schrauwen

ah using visual studio 2005?
Try using the unix source instead... wrowe posted a notice about this.

On 7/30/06, hunter [EMAIL PROTECTED] wrote:

I am getting an error while building Apache 2.2.3 for Windows...

   Creating library .\Release\mod_unique_id.lib and object
.\Release\mod_unique_id.exp
nmake -nologo -f mod_usertrack.mak   CFG=mod_usertrack -
Win32 Release RECURSE=0
rc.exe /l 0x409 /foDebug/mod_usertrack.res /i
../../include /i ../../srclib/apr/include /i \asf
-build\build-2.2.3\build\win32 /d _DEBUG /d
BIN_NAME=mod_usertrack.so /d LONG_NAME=usertrack_module for Apache
..\..\build\win32\httpd.rc fatal error RC1109: error creating
Debug/mod_usertrack.res
NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
Stop.

Any suggestions...

Chris Lewis




--
~Jorge


Re: New Windows build - Apache 2.2.3

2006-07-30 Thread hunter

On 7/30/06, Jorge Schrauwen [EMAIL PROTECTED] wrote:

ah using visual studio 2005?
Try using the unix source instead... wrowe posted a notice about this.

On 7/30/06, hunter [EMAIL PROTECTED] wrote:
 I am getting an error while building Apache 2.2.3 for Windows...

Creating library .\Release\mod_unique_id.lib and object
 .\Release\mod_unique_id.exp
 nmake -nologo -f mod_usertrack.mak   CFG=mod_usertrack -
 Win32 Release RECURSE=0
 rc.exe /l 0x409 /foDebug/mod_usertrack.res /i
 ../../include /i ../../srclib/apr/include /i \asf
 -build\build-2.2.3\build\win32 /d _DEBUG /d
 BIN_NAME=mod_usertrack.so /d LONG_NAME=usertrack_module for Apache
 ..\..\build\win32\httpd.rc fatal error RC1109: error creating
 Debug/mod_usertrack.res
 NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
 Stop.
 NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
 Stop.
 NMAKE : fatal error U1077: 'C:\MSVC7\Vc7\bin\nmake.exe' : return code '0x2'
 Stop.

 Any suggestions...

 Chris Lewis



--
~Jorge



I may not be correct but I understood Bill's email to say that the
problem affected those who compile with the IDE, while I compile from
the command line.

I tried compiling with SDK 2003 R2 (newer complier) but that made no
difference.

Trying to compile with unix source results with an immediate failure
to find srclib due to forward slashes that are not recognized by
Windows.

I think there is something wrong with mod_usertrack.mak - notice the /d _DEBUG.

I have tried to fix the makefile but I have still not fixed it.

Chris Lewis