Re: httpd 2.0.61 win32 source build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/%3Cc72f00d10609180128v22770cecs2d66bfd084c4beb1@xxxxxxxxxxxxxx%3E

http://mail-archives.apache.org/mod_mbox/apr-commits/200706.mbox/%3C20070629170512.A1CED1A981A@xxxxxxxxxxxxxxx%3E



---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux