Subject: | Installatoin failure - windows, 5.22.1 |
Builds OK on Perl 5.8.8 (Unix). Fails on 5.22.1 (Windows)
The error (shown in context below) seems to be:
C:\Perl-5.22.1-64\lib\CORE/XSUB.h:628:20: error: 'PerlProc_abort' undeclared here (not in a function)
There are also some warnings that should be fixed or squelched.
Output from cpan install Compress::LZF
CPAN: Term::ANSIColor loaded ok (v4.06)
CPAN: Storable loaded ok (v2.53_01)
Reading 'C:\Perl-5.22.1-64\cpan\Metadata'
Database was generated on Thu, 14 Jun 2018 02:41:03 GMT
Running install for module 'Compress::LZF'
CPAN: Digest::SHA loaded ok (v5.96)
CPAN: Compress::Zlib loaded ok (v2.07)
Checksum for C:\Perl-5.22.1-64\cpan\sources\authors\id\M\ML\MLEHMANN\Compress-LZF-3.8.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.24)
Compress-LZF-3.8/
Compress-LZF-3.8/lzf_c_best.c
Compress-LZF-3.8/debian/
Compress-LZF-3.8/debian/rules
Compress-LZF-3.8/debian/changelog
Compress-LZF-3.8/debian/control
Compress-LZF-3.8/lzf_d.c
Compress-LZF-3.8/Makefile.PL
Compress-LZF-3.8/META.yml
Compress-LZF-3.8/Changes
Compress-LZF-3.8/COPYING.Artistic
Compress-LZF-3.8/META.json
Compress-LZF-3.8/COPYING
Compress-LZF-3.8/perlmulticore.h
Compress-LZF-3.8/README
Compress-LZF-3.8/LZF.xs
Compress-LZF-3.8/t/
Compress-LZF-3.8/t/00_load.t
Compress-LZF-3.8/t/02_freeze.t
Compress-LZF-3.8/t/01_run.t
Compress-LZF-3.8/t/03_freeze_best.t
Compress-LZF-3.8/LZF.pm
Compress-LZF-3.8/COPYING.GNU
Compress-LZF-3.8/lzfP.h
Compress-LZF-3.8/lzf_c.c
Compress-LZF-3.8/MANIFEST
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML::XS loaded ok (v0.65)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20160820)
Configuring M/ML/MLEHMANN/Compress-LZF-3.8.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Compress::LZF
Writing MYMETA.yml and MYMETA.json
MLEHMANN/Compress-LZF-3.8.tar.gz
C:\Perl-5.22.1-64\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK
Running make for M/ML/MLEHMANN/Compress-LZF-3.8.tar.gz
cp LZF.pm blib\lib\Compress\LZF.pm
Running Mkbootstrap for LZF ()
"C:\Perl-5.22.1-64\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "LZF.bs"
"C:\Perl-5.22.1-64\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- LZF.bs blib\arch\auto\Compress\LZF\LZF.bs 644
"C:\Perl-5.22.1-64\bin\perl.exe" "C:\Perl-5.22.1-64\lib\ExtUtils\xsubpp" -typemap C:\Perl-5.22.1-64\lib\ExtUtils\typemap LZF.xs > LZF.xsc
"C:\Perl-5.22.1-64\bin\perl.exe" -MExtUtils::Command -e mv -- LZF.xsc LZF.c
C:\PERL-5~1.1-6\site\bin\gcc.exe -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"3.8\" -DXS_VERSION=\"3.8\" "-IC:\Perl-5.22.1-64\lib\CORE" LZF.c
In file included from LZF.xs:5:0:
C:\Perl-5.22.1-64\lib\CORE/XSUB.h:628:20: error: 'PerlProc_abort' undeclared here (not in a function)
In file included from LZF.xs:12:0:
lzf_c_best.c: In function 'lzf_compress_best':
lzf_c_best.c:93:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
lzf_c_best.c:120:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
lzf_c_best.c:164:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
dmake.exe: Error code 129, while making 'LZF.o'
MLEHMANN/Compress-LZF-3.8.tar.gz
C:\PERL-5~1.1-6\site\bin\dmake.exe -- NOT OK
Windows 10 pro.
perl -V
Summary of my perl5 (revision 5 version 22 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x64-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='C:\PERL-5~1.1-6\site\bin\gcc.exe', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.6.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='C:\PERL-5~1.1-6\site\bin\g++.exe', ldflags ='-s -static-libgcc -static-libstdc++ -L"C:\Perl-5.22.1-64\lib\CORE" -L"C:\MinGW\x86_64-w64-mingw32\lib"'
libpth=C:\MinGW\x86_64-w64-mingw32\lib
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl522.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -static-libgcc -static-libstdc++ -L"C:\Perl-5.22.1-64\lib\CORE" -L"C:\MinGW\x86_64-w64-mingw32\lib"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE
PERL_PRESERVE_IVUV USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME
USE_PERLIO USE_PERL_ATOF USE_SITECUSTOMIZE
Locally applied patches:
ActivePerl Build 2201 [299574]
Built under MSWin32
Compiled at Jan 4 2016 12:12:58
@INC:
C:/Perl-5.22.1-64/site/lib
C:/Perl-5.22.1-64/lib
.