Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 123799
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: rouven.nordenholt [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 3.7.1



Subject: Bug update Strawberry Perl (64-bit) 5.26.1.1-64bit DBD-Pg-3.6.0. to 3.7.0
Date: Thu, 30 Nov 2017 22:58:47 +0100
To: "bug-DBD-Pg [...] rt.cpan.org" <bug-DBD-Pg [...] rt.cpan.org>
From: Rouven Nordenholt <rouven.nordenholt [...] gmail.com>
C:\Windows\system32>cpan diff -ru DBD-Pg-3.7.0/Pg.h DBD-Pg-3.7.0_patched/Pg.h Loading internal null logger. Install Log::Log4perl for logging messages CPAN: CPAN::SQLite loaded ok (v0.211) Database was generated on Thu, 30 Nov 2017 18:57:43 GMT CPAN: LWP::UserAgent loaded ok (v6.27) CPAN: Time::HiRes loaded ok (v1.9746) Fetching with LWP: http://cpan.strawberryperl.com/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h Fetching with LWP: http://cpan.strawberryperl.com/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h.gz Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h.gz Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h.gz Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\Windows\system32\ftp.exe' to get 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit Fetching with LWP: http://cpan.strawberryperl.com/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h Fetching with LWP: http://cpan.strawberryperl.com/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h.gz Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h.gz Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h Fetching with LWP: http://www.cpan.org/authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h.gz Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. Warning: no success downloading 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\Windows\system32\ftp.exe' to get 'D:\STRAWB~1\cpan\sources\authors\id\D\D\D\DB\DBD-Pg-3.7.0\Pg.h.tmp9020'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit CPAN: YAML::XS loaded ok (v0.67) Please check, if the URLs I found in your configuration file (http://cpan.strawberryperl.com/, http://www.cpan.org/, http://www.cpan.org/) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/id/D/D//D/DB/DBD-Pg-3.7.0/Pg.h C:\Windows\system32>cpanm DBD::Pg --force --> Working on DBD::Pg Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.7.0.tar.gz ... OK Configuring DBD-Pg-3.7.0 ... OK Building and testing DBD-Pg-3.7.0 ... FAIL ! Installing DBD::Pg failed. See C:\Users\Rouven\.cpanm\work\1512078694.9228\build.log for details. Retry with --force to force install it. C:\Windows\system32>cpanm Bundle::DBD::Pg --> Working on Bundle::DBD::Pg Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.7.0.tar.gz ... OK Configuring DBD-Pg-3.7.0 ... OK Building and testing DBD-Pg-3.7.0 ... FAIL ! Installing Bundle::DBD::Pg failed. See C:\Users\Rouven\.cpanm\work\1512078762.10468\build.log for details. Retry with --force to force install it. C:\Windows\system32>r Der Befehl "r" ist entweder falsch geschrieben oder konnte nicht gefunden werden. C:\Windows\system32>cpan r Loading internal null logger. Install Log::Log4perl for logging messages CPAN: CPAN::SQLite loaded ok (v0.211) Database was generated on Thu, 30 Nov 2017 18:57:43 GMT C:\Windows\system32>cpanm r ! Finding r on cpanmetadb failed. ! Finding r () on mirror http://www.cpan.org failed. ! Couldn't find module or a distribution r C:\Windows\system32>cpan Loading internal null logger. Install Log::Log4perl for logging messages Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment variables didn't work. at D:\Strawberry\perl\vendor\lib/Term/ReadLine/readline.pm line 410. There seems to be running another CPAN process (pid 9380). Contacting... Other job not responding. Shall I overwrite the lockfile 'D:\STRAWB~1\cpan\.lock'? (Y/n) [y] cpan shell -- CPAN exploration and modules installation (v2.18) Enter 'h' for help. Show quoted text
cpan> r
Database was generated on Thu, 30 Nov 2017 18:57:43 GMT Package namespace installed latest in CPAN file Crypt::OpenSSL::X509 1.807 1.808 JONASBN/Crypt-OpenSSL-X509-1.808.tar.gz DBD::Pg 3.6.0 3.7.0 TURNSTEP/DBD-Pg-3.7.0.tar.gz GD::Polygon undef 0.2 RURBAN/GD-2.67.tar.gz LWP 6.27 6.29 OALDERS/libwww-perl-6.29.tar.gz Math::Int64::die_on_overflow undef 0.54 SALVA/Math-Int64-0.54.tar.gz PPM::XML::Element undef 1.07 MURRAY/PPM-2.1.9.tar.gz Types::Serialiser::Error undef 1.0 MLEHMANN/Types-Serialiser-1.0.tar.gz 486 installed modules have no parsable version number (use 'o conf show_unparsable_versions 1' to show them) Show quoted text
cpan> install DBD::Pg
Running install for module 'DBD::Pg' Checksum for D:\STRAWB~1\cpan\sources\authors\id\T\TU\TURNSTEP\DBD-Pg-3.7.0.tar.gz ok Scanning cache D:\STRAWB~1\cpan\build for sizes ............................................................................DONE Configuring T/TU/TURNSTEP/DBD-Pg-3.7.0.tar.gz with Makefile.PL Configuring DBD::Pg 3.7.0 PostgreSQL version: 90603 (default port: 5432) POSTGRES_HOME: (not set) POSTGRES_INCLUDE: D:/STRAWB~1/c/include POSTGRES_LIB: D:/STRAWB~1/c/lib OS: MSWin32 Checking if your kit is complete... Looks good Using DBI 1.637 (for perl 5.026001 on MSWin32-x64-multi-thread) installed in D:/Strawberry/perl/vendor/lib/auto/DBI/ Generating a gmake-style Makefile Writing Makefile for DBD::Pg Writing MYMETA.yml and MYMETA.json TURNSTEP/DBD-Pg-3.7.0.tar.gz D:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for T/TU/TURNSTEP/DBD-Pg-3.7.0.tar.gz Show quoted text
---- Unsatisfied dependencies detected during ---- ---- TURNSTEP/DBD-Pg-3.7.0.tar.gz ---- Module::Signature [requires,optional] cp Pg.pm blib\lib\DBD/Pg.pm cp lib/Bundle/DBD/Pg.pm blib\lib/Bundle/DBD/Pg.pm Running Mkbootstrap for Pg () "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "Pg.bs" "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- Pg.bs blib\arch\auto\DBD\Pg\Pg.bs 644 "D:\Strawberry\perl\bin\perl.exe" -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" D:\Strawberry\perl\vendor\lib\auto\DBI\Driver.xst > Pg.xsi "D:\Strawberry\perl\bin\perl.exe" "D:\Strawberry\perl\lib\ExtUtils/xsubpp" -typemap D:\STRAWB~1\perl\lib\ExtUtils\typemap Pg.xs > Pg.xsc "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- Pg.xsc Pg.c gcc -c -I"D:/STRAWB~1/c/include" -ID:\Strawberry\perl\vendor\lib\auto\DBI -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -DPGLIBVERSION=90603 -DPGDEFPORT=5432 -s -O2 -DVERSION=\"3.7.0\" -DXS_VERSION=\"3.7.0\" "-ID:\STRAWB~1\perl\lib\CORE" Pg.c gcc -c -I"D:/STRAWB~1/c/include" -ID:\Strawberry\perl\vendor\lib\auto\DBI -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -DPGLIBVERSION=90603 -DPGDEFPORT=5432 -s -O2 -DVERSION=\"3.7.0\" -DXS_VERSION=\"3.7.0\" "-ID:\STRAWB~1\perl\lib\CORE" dbdimp.c gcc -c -I"D:/STRAWB~1/c/include" -ID:\Strawberry\perl\vendor\lib\auto\DBI -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -DPGLIBVERSION=90603 -DPGDEFPORT=5432 -s -O2 -DVERSION=\"3.7.0\" -DXS_VERSION=\"3.7.0\" "-ID:\STRAWB~1\perl\lib\CORE" quote.c gcc -c -I"D:/STRAWB~1/c/include" -ID:\Strawberry\perl\vendor\lib\auto\DBI -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -DPGLIBVERSION=90603 -DPGDEFPORT=5432 -s -O2 -DVERSION=\"3.7.0\" -DXS_VERSION=\"3.7.0\" "-ID:\STRAWB~1\perl\lib\CORE" types.c "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"DBD::Pg\", 'DLBASE' => 'Pg', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" g++ Pg.def -o blib\arch\auto\DBD\Pg\Pg.xs.dll -mdll -s -L"D:\STRAWB~1\perl\lib\CORE" -L"D:\STRAWB~1\c\lib" Pg.o dbdimp.o quote.o types.o "D:\STRAWB~1\perl\lib\CORE\libperl526.a" "D:\STRAWB~1\c\lib\libpq.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libm.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libsecur32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libmoldname.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libkernel32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuser32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libgdi32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinspool.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomdlg32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libadvapi32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libshell32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libole32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\liboleaut32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libnetapi32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuuid.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libws2_32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libmpr.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinmm.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libversion.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbc32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbccp32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-image-base quote.o:quote.c:(.text+0x63d): undefined reference to `__imp__snprintf.constprop.4' collect2.exe: error: ld returned 1 exit status gmake: *** [Makefile:496: blib\arch\auto\DBD\Pg\Pg.xs.dll] Error 1 TURNSTEP/DBD-Pg-3.7.0.tar.gz D:\STRAWB~1\c\bin\gmake.exe -- NOT OK Stopping: 'install' failed for 'DBD::Pg'. Failed during this command: TURNSTEP/DBD-Pg-3.7.0.tar.gz : make NO

Message body is not shown because it is too large.

So the immediate problem (there may be more lurking underneath!) is that snprintf is not defined by when the compiler takes a try at quote.c. I added a quick fix in de850e782e5bd2991f54678e27e4bd7a52949191. If you could give that a try, it would be great. It simply adds this to the top of quote.h: #ifdef WIN32 #ifndef snprintf #define snprintf _snprintf #endif #endif
Confirmed on another ticket, so going to be bold and mark as patched. We can reopen if that is not the case.