At 01:31 PM 9/7/2007, you wrote:
sorry if this is a repost, I just joined the list, but is anyone
having problems building the 2.0.61 httpd win32 source? Mine is
having problems with rand.c it seems (2.0.59 built without problems
recently - I'm using vis c++ 6)
rand.c
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(33) : error
C2065: 'HCRYPTPROV' : undeclared identifier
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(33) : error
C2146: syntax error : missing ';' before identifier 'hProv'
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(33) : error
C2065: 'hProv' : undeclared identifier
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(34) : error
C2275: 'apr_status_t' : illegal use of this type as an expression
./include\apr_errno.h(44) : see declaration of 'apr_status_t'
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(34) : error
C2146: syntax error : missing ';' before identifier 'res'
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(34) : error
C2065: 'res' : undeclared identifier
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(39) : error
C2275: 'DWORD' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\windef.h(141) : see declaration of 'DWORD'
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(39) : error
C2146: syntax error : missing ';' before identifier 'flags'
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(39) : error
C2065: 'flags' : undeclared identifier
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(40) : error
C2065: 'CRYPT_VERIFYCONTEXT' : undeclared identifier
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(42) :
warning C4013: 'CryptAcquireContext' undefined; assuming extern returning int
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(42) : error
C2065: 'PROV_RSA_FULL' : undeclared identifier
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(45) :
warning C4013: 'CryptGenRandom' undefined; assuming extern returning int
C:\apachebuild\httpd-2.0.61\srclib\apr\misc\win32\rand.c(48) :
warning C4013: 'CryptReleaseContext' undefined; assuming extern returning int
start.c
In case anyone else runs across this, the problem was with the
ordering of the headers... windows.h can be commented out and
wincrypt.h should be moved to after apr.h:
// #include <windows.h>
#include "apr.h"
#include <wincrypt.h>
#include "apr_private.h"
#include "apr_general.h"
#include "apr_portable.h"
#include "apr_arch_misc.h"
references:
http://mail-archives.apache.org/mod_mbox/apr-dev/200609.mbox/[EMAIL PROTECTED]
http://mail-archives.apache.org/mod_mbox/apr-commits/200706.mbox/[EMAIL
PROTECTED]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]