IPv6 issue on Win32

Поиск
Список
Период
Сортировка
От MUHAMMAD ASIF
Тема IPv6 issue on Win32
Дата
Msg-id BLU110-W4003725E548116945DDFC7FF300@phx.gbl
обсуждение исходный текст
Список pgsql-hackers
Hi,<br />  <br /><p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY: Calibri">I am facing issue compiling latest
postgresql-8.3.4code on windows .I installed Visual Studio 2005 Express and Microsoft windows SDK latest v6.1 on
windowsXP (SP2) as described by <a href="http://www.postgresql.org/docs/8.3/static/install-win32-full.html"><u><font
color="#0000ff">http://www.postgresql.org/docs/8.3/static/install-win32-full.html</font></u></a>and trying to build
postgresql-8.3.4,it is giving the following error message i.e.<p style="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.375in;
FONT-FAMILY:Calibri">.\src\backend\libpq\pqcomm.c(389): error C2065: 'IPPROTO_IPV6' : undeclared identifier<p
style="FONT-SIZE:11pt; MARGIN: 0in; FONT-FAMILY: Calibri"> <p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY:
Calibri">MicrosoftSDKs\Windows\v6.1\Include\ws2def.h (407) :<p style="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.375in;
FONT-FAMILY:Calibri">IPPROTO_IPV6 requires _WIN32_WINNT grater than 0x0500 i.e.<p style="FONT-SIZE: 11pt; MARGIN: 0in;
FONT-FAMILY:Calibri"> <p style="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.75in; FONT-FAMILY: Calibri">#if(_WIN32_WINNT
>=0x0501)<p style="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.75in; FONT-FAMILY: Calibri"><span style="mso-spacerun:
yes">   </span>IPPROTO_IPV6<span style="mso-spacerun: yes">          </span>= 41, // IPv6 header<p style="FONT-SIZE:
11pt;MARGIN: 0in 0in 0in 0.75in; FONT-FAMILY: Calibri">…<p style="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.75in;
FONT-FAMILY:Calibri">…<p style="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.75in; FONT-FAMILY:
Calibri">#endif//(_WIN32_WINNT>= 0x0501)<p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY:
Calibri">src\include\pg_config_os.h<spanstyle="mso-spacerun: yes">  </span>(7):<p style="FONT-SIZE: 11pt; MARGIN: 0in
0in0in 0.375in; FONT-FAMILY: Calibri">That is being copied from src\include\port\win32.h . It set<span
style="mso-spacerun:yes">  </span>_WIN32_WINNT to 0x0500 i.e.<p style="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.75in;
FONT-FAMILY:Calibri">#define _WIN32_WINNT 0x0500<p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY: Calibri"> <p
style="FONT-SIZE:11pt; MARGIN: 0in; FONT-FAMILY: Calibri">I removed the following line from src\include\port\win32.h(7)
<pstyle="FONT-SIZE: 11pt; MARGIN: 0in 0in 0in 0.75in; FONT-FAMILY: Calibri">#define _WIN32_WINNT 0x0500<p
style="FONT-SIZE:11pt; MARGIN: 0in; FONT-FAMILY: Calibri">and it started building successfully and regression is
workingfine too.<p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY: Calibri"> <p style="FONT-SIZE: 11pt; MARGIN: 0in;
FONT-FAMILY:Calibri">In the Visual Studio 2005 Professional "IPPROTO_IPV6" was defined in WinSock2.h<span
style="mso-spacerun:yes">  </span>and<span style="mso-spacerun: yes">  </span>it is without<span style="mso-spacerun:
yes"> </span>any condition. In the latest SDK v6.1 condition _WIN32_WINNT >= 0x0501  is added around IPPROTO_IPV6 (
<ahref="http://msdn.microsoft.com/en-us/library/ms738574%28VS.85%29.aspx"><u><font
color="#0000ff">http://msdn.microsoft.com/en-us/library/ms738574(VS.85).aspx</font></u></a>).IPV6_V6ONLY is also used
inthe .\src\backend\libpq\pqcomm.c(386) that is for Vista or Win2008. It means that IPV6 cannot be used for building
Windows2k (_WIN32_WINNT == 0x0500) applications when using Windows SDK v6.1 or higher.<p style="FONT-SIZE: 11pt;
MARGIN:0in; FONT-FAMILY: Calibri"> <p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY: Calibri"><a
href="http://www.microsoft.com/technet/network/ipv6/ipv6faq.mspx"><u><font
color="#0000ff">http://www.microsoft.com/technet/network/ipv6/ipv6faq.mspx</font></u></a><pstyle="FONT-SIZE: 11pt;
MARGIN:0in 0in 0in 0.375in; FONT-FAMILY: Calibri">Microsoft has no plans to provide supported IPv6 protocol
implementationsfor Windows 2000, Windows 98, and older versions of Windows.<p style="FONT-SIZE: 11pt; MARGIN: 0in;
FONT-FAMILY:Calibri"> <p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY: Calibri">Best Regards,<p style="FONT-SIZE:
11pt;MARGIN: 0in; FONT-FAMILY: Calibri">M Asif Naeem<p style="FONT-SIZE: 11pt; MARGIN: 0in; FONT-FAMILY: Calibri"> <br
/><hr/>Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <a
href="http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us"target="_new">Try
it!</a>

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: Problem to get the tuple of a table
Следующее
От: Decibel!
Дата:
Сообщение: array_length()