You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2004/03/03 06:47:33 UTC
compiling on win32
hi all (especially randy and steve)
ok, so I'm trying to compile things on win32 (win2k with VC++ 5.0). I've
followed the mp2 instructions, which pointed me toward compiling Apache 2.0
from sources. I'm using the official 2.0.48 sources.
so, never having using VC++ before (don't ask me why I had the CD lying
around), I'm messing with it all for the first time using the official
2.0.48 sources. I followed the "Developer Studio Workspace IDE Build"
instructions in win_compiling.html (debug version) and am hit with the
following errors.
rand.c
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2065: 'HRESULT' :
undeclared identifier
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2064: term does
not evaluate to a function
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : warning C4013:
'UuidCreate' undefined; assuming extern returning int
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2065: 'UUID' :
undeclared identifier
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2059: syntax
error : ')'
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(104) : warning C4035:
'apr_os_uuid_get' : no return value
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(105) : error C2059: syntax
error : 'return'
C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(106) : error C2059: syntax
error : '}'
all the other *.c files seem to be ok. a command line nmake tells the same
story. google showed nothing.
so, have you seen this? or is my VC++ version so old that this is going to
be impossible? or am I missing something silly and obvious to anyone not
tied to a unix mindset :)
--Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: compiling on win32
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> Hi Geoff,
> Unfortunately, in an effort to keep users up-to-date
> (read: help build Mr Gates a bigger house), there's quite
> a few incompatible changes between VC++ 5 and 6. Win32
> Apache builds with 6 - I believe it can also do so with
> 5, but I'm not sure how (Bill Rowe probably knows). I've
> heard that there's a compatibility kit one can get for
> free from Microsoft's site to help in compiling things
> built for VC++ 6 using VC++ 5.
I did see this note "Visual C++ 5.0 builds require an updated Microsoft
Windows Platform SDK to enable some Apache features." in win_compile.html,
but it lead me to believe that it was optional for some features. apr is
hardly a feature :)
anyway, I'll try updating the SDK. if that works, I'll suggest a doc change ;)
> You might have better luck using VC++ 7 - there's a
> free version of this available from Microsoft's site
> with a .NET software development kit.
ok, I'll look for that. free MS software, who would have thought...
> Welcome to the Dark Side :)
no kidding. thanks for the pointers, though :)
--Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: compiling on win32
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 3 Mar 2004, Geoffrey Young wrote:
> hi all (especially randy and steve)
>
> ok, so I'm trying to compile things on win32 (win2k with VC++ 5.0). I've
> followed the mp2 instructions, which pointed me toward compiling Apache 2.0
> from sources. I'm using the official 2.0.48 sources.
>
> so, never having using VC++ before (don't ask me why I had the CD lying
> around), I'm messing with it all for the first time using the official
> 2.0.48 sources. I followed the "Developer Studio Workspace IDE Build"
> instructions in win_compiling.html (debug version) and am hit with the
> following errors.
>
> rand.c
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2065: 'HRESULT' :
> undeclared identifier
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2064: term does
> not evaluate to a function
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : warning C4013:
> 'UuidCreate' undefined; assuming extern returning int
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2065: 'UUID' :
> undeclared identifier
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(102) : error C2059: syntax
> error : ')'
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(104) : warning C4035:
> 'apr_os_uuid_get' : no return value
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(105) : error C2059: syntax
> error : 'return'
> C:\httpd-2.0.48\srclib\apr\misc\win32\rand.c(106) : error C2059: syntax
> error : '}'
>
> all the other *.c files seem to be ok. a command line nmake tells the same
> story. google showed nothing.
>
> so, have you seen this? or is my VC++ version so old that this is going to
> be impossible? or am I missing something silly and obvious to anyone not
> tied to a unix mindset :)
>
> --Geoff
Hi Geoff,
Unfortunately, in an effort to keep users up-to-date
(read: help build Mr Gates a bigger house), there's quite
a few incompatible changes between VC++ 5 and 6. Win32
Apache builds with 6 - I believe it can also do so with
5, but I'm not sure how (Bill Rowe probably knows). I've
heard that there's a compatibility kit one can get for
free from Microsoft's site to help in compiling things
built for VC++ 6 using VC++ 5.
You might have better luck using VC++ 7 - there's a
free version of this available from Microsoft's site
with a .NET software development kit. This I think can
be used to compile Apache without change (the
precompiled packages at http://www.devside.net/ use this, I
believe). I don't use VC++ 7 because, once again, there's
compatibility issues between 6 and 7, which would affect
the ppm packages I build for ActivePerl (which is built
with 6). However, if you build everything (including Perl)
with 7, this shouldn't be a problem.
Welcome to the Dark Side :)
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org