can't install DBD::Pg on 64 bit windows 10

[email protected] (barry kimelman) Sun, 19 Jan 2020 13:58:59 -0600
Newsgroups perl.dbd.pg
Message-ID <CAEOpmvpfKacy_C=hDsnEhRUs=LHaKDi8xmHp+ThBJw7xyWM8hQ@mail.gmail.com>
--000000000000991901059c83a96c
Content-Type: text/plain; charset="UTF-8"

Hello,

I can't install the DBD::Pg module on my 64 bit windows 10 laptop.

the messages at the end of the attempt were

        cl -c  -I"C:/PROGRA~1/POSTGR~1/12/include" -IC:\Perl64\lib\auto\DBI
 -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:pre
cise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE
-DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEX
T -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPGLIBVERSION=120001 -DPGDEFPORT=5432
-MD -Zi -DNDEBUG -Ox -GL -fp:precise    -DVERSION=\
"3.10.2\"  -DXS_VERSION=\"3.10.2\"  "-IC:\Perl64\lib\CORE"   Pg.c
Pg.c
c:\perl64\lib\core\win32.h(218): warning C4005: 'isnan': macro redefinition
C:\Program Files (x86)\Windows
Kits\10\include\10.0.17763.0\ucrt\corecrt_math.h(276): note: see previous
definition of 'isnan
'
C:\Perl64\lib\auto\DBI\Driver_xst.h(70): warning C4996: 'sprintf': This
function or variable may be unsafe. Consider using sp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details.
C:\Program Files (x86)\Windows
Kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of
'sprintf'
C:\Perl64\lib\auto\DBI\Driver_xst.h(110): warning C4244: 'function':
conversion from 'IV' to 'I32', possible loss of data
C:\Perl64\lib\auto\DBI\Driver_xst.h(114): warning C4244: 'function':
conversion from '__int64' to 'I32', possible loss of dat
a
C:\Perl64\lib\auto\DBI\Driver_xst.h(97): warning C4996: 'sprintf': This
function or variable may be unsafe. Consider using sp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details.
C:\Program Files (x86)\Windows
Kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of
'sprintf'
./Pg.xsi(210): warning C4244: 'initializing': conversion from '__int64' to
'int', possible loss of data
./Pg.xsi(642): warning C4244: 'initializing': conversion from '__int64' to
'int', possible loss of data
Pg.xs(259): warning C4244: 'function': conversion from 'IV' to 'int',
possible loss of data
Pg.xs(267): warning C4244: 'function': conversion from 'IV' to 'int',
possible loss of data
Pg.xs(270): warning C4244: 'function': conversion from 'IV' to 'int',
possible loss of data
Pg.xs(805): warning C4244: 'function': conversion from 'IV' to 'int',
possible loss of data
Pg.c(3242): error C2129: static function 'int *_errno(void)' declared but
not defined
C:\Program Files (x86)\Windows
Kits\10\include\10.0.17763.0\ucrt\errno.h(19): note: see declaration of
'_errno'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Host
X86\x86\cl.EXE"' : return code '0x2'
Stop.
  TURNSTEP/DBD-Pg-3.10.2.tar.gz

C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\HostX86\x86\nmake.exe
-- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

--000000000000991901059c83a96c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>I can&#39;t install the DBD::Pg =
module on my 64 bit windows 10 laptop.</div><div><br></div><div>the message=
s at the end of the attempt were</div><div><br></div><div>=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 cl -c =C2=A0-I&quot;C:/PROGRA~1/POSTGR~1/12/include&quot; -IC:\P=
erl64\lib\auto\DBI =C2=A0-nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:pre<b=
r>cise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_TEXTMOD=
E_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEX<br>T -DPERL_IMPLICIT_S=
YS -DUSE_PERLIO -DPGLIBVERSION=3D120001 -DPGDEFPORT=3D5432 -MD -Zi -DNDEBUG=
 -Ox -GL -fp:precise =C2=A0 =C2=A0-DVERSION=3D\<br>&quot;3.10.2\&quot; =C2=
=A0-DXS_VERSION=3D\&quot;3.10.2\&quot; =C2=A0&quot;-IC:\Perl64\lib\CORE&quo=
t; =C2=A0 Pg.c<br>Pg.c<br>c:\perl64\lib\core\win32.h(218): warning C4005: &=
#39;isnan&#39;: macro redefinition<br>C:\Program Files (x86)\Windows Kits\1=
0\include\10.0.17763.0\ucrt\corecrt_math.h(276): note: see previous definit=
ion of &#39;isnan<br>&#39;<br>C:\Perl64\lib\auto\DBI\Driver_xst.h(70): warn=
ing C4996: &#39;sprintf&#39;: This function or variable may be unsafe. Cons=
ider using sp<br>rintf_s instead. To disable deprecation, use _CRT_SECURE_N=
O_WARNINGS. See online help for details.<br>C:\Program Files (x86)\Windows =
Kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of &=
#39;sprintf&#39;<br>C:\Perl64\lib\auto\DBI\Driver_xst.h(110): warning C4244=
: &#39;function&#39;: conversion from &#39;IV&#39; to &#39;I32&#39;, possib=
le loss of data<br>C:\Perl64\lib\auto\DBI\Driver_xst.h(114): warning C4244:=
 &#39;function&#39;: conversion from &#39;__int64&#39; to &#39;I32&#39;, po=
ssible loss of dat<br>a<br>C:\Perl64\lib\auto\DBI\Driver_xst.h(97): warning=
 C4996: &#39;sprintf&#39;: This function or variable may be unsafe. Conside=
r using sp<br>rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_W=
ARNINGS. See online help for details.<br>C:\Program Files (x86)\Windows Kit=
s\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of &#39=
;sprintf&#39;<br>./Pg.xsi(210): warning C4244: &#39;initializing&#39;: conv=
ersion from &#39;__int64&#39; to &#39;int&#39;, possible loss of data<br>./=
Pg.xsi(642): warning C4244: &#39;initializing&#39;: conversion from &#39;__=
int64&#39; to &#39;int&#39;, possible loss of data<br>Pg.xs(259): warning C=
4244: &#39;function&#39;: conversion from &#39;IV&#39; to &#39;int&#39;, po=
ssible loss of data<br>Pg.xs(267): warning C4244: &#39;function&#39;: conve=
rsion from &#39;IV&#39; to &#39;int&#39;, possible loss of data<br>Pg.xs(27=
0): warning C4244: &#39;function&#39;: conversion from &#39;IV&#39; to &#39=
;int&#39;, possible loss of data<br>Pg.xs(805): warning C4244: &#39;functio=
n&#39;: conversion from &#39;IV&#39; to &#39;int&#39;, possible loss of dat=
a<br>Pg.c(3242): error C2129: static function &#39;int *_errno(void)&#39; d=
eclared but not defined<br>C:\Program Files (x86)\Windows Kits\10\include\1=
0.0.17763.0\ucrt\errno.h(19): note: see declaration of &#39;_errno&#39;<br>=
NMAKE : fatal error U1077: &#39;&quot;C:\Program Files (x86)\Microsoft Visu=
al Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Host<br>X86\x86\cl.E=
XE&quot;&#39; : return code &#39;0x2&#39;<br>Stop.<br>=C2=A0 TURNSTEP/DBD-P=
g-3.10.2.tar.gz<br>=C2=A0 C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\=
1416~1.270\bin\HostX86\x86\nmake.exe -- NOT OK<br>Running make test<br>=C2=
=A0 Can&#39;t test without successful make<br>Running make install<br>=C2=
=A0 Make had returned bad status, install seems impossible<br></div></div>

--000000000000991901059c83a96c--