You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Matt Tolton <ma...@tolton.com> on 2008/06/07 22:28:40 UTC

Compiling on windows

Hi,

I'm attempting to compile APR on windows xp.  I am receiving the
following errors:

        cl.exe /nologo /MD /W3 /Zi /O2 /Oy- /I "./include" /I "./include/arch" /
I "./include/arch/win32" /I "./include/arch/unix" /D "NDEBUG" /D "APR_DECLARE_ST
ATIC" /D "WIN32" /D "_WINDOWS" /Fo".\LibR\\" /Fd".\LibR\apr-1" /FD /c .\network_
io\unix\multicast.c
multicast.c
.\network_io\unix\multicast.c(183) : error C2065: 'IPPROTO_IPV6' : undeclared id
entifier
.\network_io\unix\multicast.c(211) : error C2065: 'IPPROTO_IPV6' : undeclared id
entifier
.\network_io\unix\multicast.c(224) : error C2065: 'IPPROTO_IPV6' : undeclared id
entifier
.\network_io\unix\multicast.c(297) : error C2065: 'IPPROTO_IPV6' : undeclared id
entifier
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.

I am compiling using nmake /f makefile.win, but I also receive the
errors when compiling using the GUI in VS 2008.

Any ideas?

Thanks,

Matt

Re: Compiling on windows

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
William A. Rowe, Jr. wrote:
> Tom Donovan wrote:
>>
>> It looks like IPV6 is turned on by default in APR 1.3 for Windows in 
>> apr.hw.
>>
>> Was this intended?  r661375 & r661377
> 
> NO - I completely have buggered it up.
> 
> I generally revert all local changes when I'm doing larger refactorings 
> such
> as this sync of apr.hw to .h.in to .hnw, but I missed the fact that this 
> change was present and was dwelling on the diff of .hw to .h.in, not to
> the previous rev.
> 
> Pondering the best solution.  Suggestions welcome.

Worse than the flag, ws2tcpip.h is now conditionally included above the
declaration of APR_HAVE_IPV6.

Ugh.

Re: Compiling on windows

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Tom Donovan wrote:
> 
> It looks like IPV6 is turned on by default in APR 1.3 for Windows in 
> apr.hw.
> 
> Was this intended?  r661375 & r661377

NO - I completely have buggered it up.

I generally revert all local changes when I'm doing larger refactorings such
as this sync of apr.hw to .h.in to .hnw, but I missed the fact that this 
change was present and was dwelling on the diff of .hw to .h.in, not to
the previous rev.

Pondering the best solution.  Suggestions welcome.

Bill


Re: Compiling on windows

Posted by Tom Donovan <do...@bellatlantic.net>.
William A. Rowe, Jr. wrote:
> Matt Tolton wrote:
>> Hi,
>>
>> I'm attempting to compile APR on windows xp.  I am receiving the
>> following errors:

>> io\unix\multicast.c
>> multicast.c
>> .\network_io\unix\multicast.c(183) : error C2065: 'IPPROTO_IPV6' : 
>> undeclared identifier
> 
> What version?
> 
> Would appreciate if you would try out 1.3.0 and see if that resolves your
> headache.  Otherwise, looks possible that we have something interesting
> going on in VC9 (not one of the five VC flavors I have installed and 
> handy).
> 

It looks like IPV6 is turned on by default in APR 1.3 for Windows in apr.hw.

Was this intended?  r661375 & r661377

Two ways to correct this with the Windows 2008 SDK (included with VC9) - both require changing 
apr\include\apr.hw

1.) disable IPV6 if you won't be using it:

	#define APR_HAVE_IPV6 0
-or-

2.) bump the lowest runtime version up to WinXP (501) instead of Win2k (500):

	#define _WIN32_WINNT 0x0501

-tom-

Re: Compiling on windows

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Matt Tolton wrote:
> Hi,
> 
> I'm attempting to compile APR on windows xp.  I am receiving the
> following errors:
> 
>         cl.exe /nologo /MD /W3 /Zi /O2 /Oy- /I "./include" /I "./include/arch" /
> I "./include/arch/win32" /I "./include/arch/unix" /D "NDEBUG" /D "APR_DECLARE_ST
> ATIC" /D "WIN32" /D "_WINDOWS" /Fo".\LibR\\" /Fd".\LibR\apr-1" /FD /c .\network_
> io\unix\multicast.c
> multicast.c
> .\network_io\unix\multicast.c(183) : error C2065: 'IPPROTO_IPV6' : undeclared id
> entifier
> .\network_io\unix\multicast.c(211) : error C2065: 'IPPROTO_IPV6' : undeclared id
> entifier
> .\network_io\unix\multicast.c(224) : error C2065: 'IPPROTO_IPV6' : undeclared id
> entifier
> .\network_io\unix\multicast.c(297) : error C2065: 'IPPROTO_IPV6' : undeclared id
> entifier
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
> \cl.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
> \nmake.exe"' : return code '0x2'
> Stop.
> 
> I am compiling using nmake /f makefile.win, but I also receive the
> errors when compiling using the GUI in VS 2008.

What version?

Would appreciate if you would try out 1.3.0 and see if that resolves your
headache.  Otherwise, looks possible that we have something interesting
going on in VC9 (not one of the five VC flavors I have installed and handy).