On 04/06/2016 04:50 PM, Andrew Dunstan wrote:


On 03/29/2016 09:38 PM, Robert Haas wrote:
On Tue, Mar 29, 2016 at 9:29 PM, Andrew Dunstan <and...@dunslane.net> wrote:
I am currently travelling, but my intention is to deal with the remaining
patches when I'm back home this weekend, unless someone beats me to it.
Cool.


Progress report:


I have spent way too much time on this and don't have it working yet. I'm setting up a sacrificial VM from scratch in a last ditch attempt to get it working.

Things to note so far:

 * VS2015 appears to create version 12 solution files, not version 14,
   and the tools complained about version 14.
 * Windows git (the successor to msysGit) apparently no longer ships
   with bison and flex. So if you need those (i.e. to built from git,
   not tarball) you're probably going to need to install the MsysDTK
   even if you're not using its compiler.





Not out of the woods yet. Attached is what I got from VS2015 on a fresh W10 VM, with Michael's patch 0002 and 0004 applied.


cheers

andrew
"C:\prog\postgresql\pgsql.sln" (default target) (1) ->
"C:\prog\postgresql\zic.vcxproj" (default target) (2) ->
"C:\prog\postgresql\libpgport.vcxproj" (default target) (4) ->
(ClCompile target) ->
  src/port/chklocale.c(230): warning C4013: 'GetLocaleInfoEx' undefined; 
assuming extern returning int [C:\prog\postgre
sql\libpgport.vcxproj]
  src/port/thread.c(134): warning C4996: 'gethostbyname': Use getaddrinfo() or 
GetAddrInfoW() instead or define _WINSOC
K_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 
[C:\prog\postgresql\libpgport.vcxproj]


"C:\prog\postgresql\pgsql.sln" (default target) (1) ->
"C:\prog\postgresql\ascii_and_mic.vcxproj" (default target) (5) ->
"C:\prog\postgresql\postgres.vcxproj" (default target) (6) ->
  src/backend/libpq/ip.c(476): warning C4996: 'WSASocketA': Use WSASocketW() 
instead or define _WINSOCK_DEPRECATED_NO_W
ARNINGS to disable deprecated API warnings [C:\prog\postgresql\postgres.vcxproj]
  C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h(1544): warning 
C4091: 'typedef ': ignored on left of ''
when no variable is declared [C:\prog\postgresql\postgres.vcxproj]
  C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h(3190): warning 
C4091: 'typedef ': ignored on left of ''
when no variable is declared [C:\prog\postgresql\postgres.vcxproj]
  src/backend/port/win32/socket.c(247): warning C4996: 'WSASocketA': Use 
WSASocketW() instead or define _WINSOCK_DEPREC
ATED_NO_WARNINGS to disable deprecated API warnings 
[C:\prog\postgresql\postgres.vcxproj]
  src/backend/postmaster/postmaster.c(5892): warning C4996: 
'WSADuplicateSocketA': Use WSADuplicateSocketW() instead or
 define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 
[C:\prog\postgresql\postgres.vcxproj]
  src/backend/postmaster/postmaster.c(5919): warning C4996: 'WSASocketA': Use 
WSASocketW() instead or define _WINSOCK_D
EPRECATED_NO_WARNINGS to disable deprecated API warnings 
[C:\prog\postgresql\postgres.vcxproj]
  src/port/chklocale.c(230): warning C4013: 'GetLocaleInfoEx' undefined; 
assuming extern returning int [C:\prog\postgre
sql\postgres.vcxproj]
  src/port/getaddrinfo.c(199): warning C4996: 'gethostbyname': Use 
getaddrinfo() or GetAddrInfoW() instead or define _W
INSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 
[C:\prog\postgresql\postgres.vcxproj]
  src/port/thread.c(134): warning C4996: 'gethostbyname': Use getaddrinfo() or 
GetAddrInfoW() instead or define _WINSOC
K_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 
[C:\prog\postgresql\postgres.vcxproj]


"C:\prog\postgresql\pgsql.sln" (default target) (1) ->
"C:\prog\postgresql\isolationtester.vcxproj" (default target) (34) ->
"C:\prog\postgresql\libpq.vcxproj" (default target) (35) ->
  src/backend/libpq/ip.c(476): warning C4996: 'WSASocketA': Use WSASocketW() 
instead or define _WINSOCK_DEPRECATED_NO_W
ARNINGS to disable deprecated API warnings [C:\prog\postgresql\libpq.vcxproj]
  src/port/chklocale.c(230): warning C4013: 'GetLocaleInfoEx' undefined; 
assuming extern returning int [C:\prog\postgre
sql\libpq.vcxproj]
  src/port/thread.c(134): warning C4996: 'gethostbyname': Use getaddrinfo() or 
GetAddrInfoW() instead or define _WINSOC
K_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 
[C:\prog\postgresql\libpq.vcxproj]


"C:\prog\postgresql\pgsql.sln" (default target) (1) ->
"C:\prog\postgresql\ascii_and_mic.vcxproj" (default target) (5) ->
"C:\prog\postgresql\postgres.vcxproj" (default target) (6) ->
(Link target) ->
  chklocale.obj : error LNK2019: unresolved external symbol _GetLocaleInfoEx 
referenced in function _win32_langinfo [C:
\prog\postgresql\postgres.vcxproj]
  .\Release\postgres\postgres.exe : fatal error LNK1120: 1 unresolved externals 
[C:\prog\postgresql\postgres.vcxproj]


"C:\prog\postgresql\pgsql.sln" (default target) (1) ->
"C:\prog\postgresql\isolationtester.vcxproj" (default target) (34) ->
"C:\prog\postgresql\libpq.vcxproj" (default target) (35) ->
  chklocale.obj : error LNK2019: unresolved external symbol _GetLocaleInfoEx 
referenced in function _win32_langinfo [C:
\prog\postgresql\libpq.vcxproj]
  .\Release\libpq\libpq.dll : fatal error LNK1120: 1 unresolved externals 
[C:\prog\postgresql\libpq.vcxproj]


"C:\prog\postgresql\pgsql.sln" (default target) (1) ->
"C:\prog\postgresql\initdb.vcxproj" (default target) (39) ->
  libpgport.lib(chklocale.obj) : error LNK2019: unresolved external symbol 
_GetLocaleInfoEx referenced in function _win
32_langinfo [C:\prog\postgresql\initdb.vcxproj]
  .\Release\initdb\initdb.exe : fatal error LNK1120: 1 unresolved externals 
[C:\prog\postgresql\initdb.vcxproj]

    14 Warning(s)
    6 Error(s)
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to