httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malcolm Green <Malcolm.Gr...@kcom.com>
Subject [users@httpd] Compiling Apache 2.0.42 Problem
Date Fri, 04 Oct 2002 13:54:42 GMT
Hi,

Please be patient as this is the first time I have subscribed to a mailing
list :-)

I am trying to compile Apache 2.0.42 with the following configuration:

Win 2000 Pro.
P4 1.8GHz / 512MB Memory
MS Visual C++ 5 + Latest core Platform SDK
Cygwin 2.218.2.9 + bison + awk etc.

I have followed the instructions to compile Apache on the Win32 platform
from this link.
http://httpd.apache.org/docs-2.0/platform/win_compiling.html

The comiler complains about the \httpd-2.0.42\srclib\apr\misc\win32\rand.c
file with the following error message:

--------------------Configuration: libapr - Win32
Release--------------------
Compiling...
rand.c
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(105) : error C2065:
'HRESULT' : undeclared identifier
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(105) : error C2064: term
does not evaluate to a function
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(105) : warning C4013:
'UuidCreate' undefined; assuming extern returning int
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(105) : error C2065:
'UUID' : undeclared identifier
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(105) : error C2059:
syntax error : ')'
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(107) : warning C4035:
'apr_os_uuid_get' : no return value
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(108) : error C2059:
syntax error : 'return'
C:\build\httpd-2.0.42\srclib\apr\misc\win32\rand.c(109) : error C2059:
syntax error : '}'
Error executing cl.exe.

Apache.exe - 6 error(s), 2 warning(s)

I have searched on the web (google/news groups) for an answer but it doesn't
look like anyone else is having this problem.

I am not a C expert but I have added the following to the file to get it to
compile but have I done the right thing?!

#include <rpc.h>

#ifndef _HRESULT_DEFINED
#define _HRESULT_DEFINED
#typedef LONG HRESULT;
#endif // !_HRESULT_DEFINED

I hope that I haven't missed something but if anyone could spare the time to
tell me what I am doing wrong I would appreciate it.

Thanks.

Malcolm

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


Mime
View raw message