Subject: | Net::SSLeay 1.75 fails to build on Windows |
Date: | Sat, 30 Jul 2016 22:06:56 -0400 |
To: | bug-Net-SSLeay [...] rt.cpan.org |
From: | "A. Sinan Unur" <sinan [...] unur.com> |
This is with MSVC2013 compiled 64-bit perl 5.24.1-RC2. Output of perl -V below.
1.74 built with no problems.
...
Creating library blib\arch\auto\Net\SSLeay\SSLeay.lib and object
blib\arch\auto\Net\SSLeay\SSLeay.exp
SSLeay.obj : error LNK2001: unresolved external symbol bzero
blib\arch\auto\Net\SSLeay\SSLeay.dll : fatal error LNK1120: 1
unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 12.0\VC\BIN\amd64\link.EXE"' : return code '0x460'
Stop.
As far as I know, there is no bzero on this platform.
See also https://stackoverflow.com/q/17096990/100754
and
https://msdn.microsoft.com/en-us/library/windows/desktop/aa366877(v=vs.85).aspx
Summary of my perl5 (revision 5 version 24 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=10.0, archname=MSWin32-x64-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -GF -W3 -O2 -favor:INTEL64 -Qpar -MD
-Zi -DNDEBUG -GL -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64
-DCONSERVATIVE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DWIN32_NO_REGISTRY',
optimize='-O2 -favor:INTEL64 -Qpar -MD -Zi -DNDEBUG -GL -fp:precise',
cppflags='-DWIN32'
ccversion='18.00.31101', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=8, doublesize=8,
byteorder=12345678, doublekind=3
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8,
longdblkind=0
ivtype='__int64', ivsize=8, nvtype='double', nvsize=8,
Off_t='__int64', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf
-ltcg -libpath:"c:\opt\perl\5.24.1\lib\CORE" -machine:AMD64
-subsystem:console,"5.02"'
libpth="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\amd64"
libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib
odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib
version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl524.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-opt:ref,icf -ltcg -libpath:"c:\opt\perl\5.24.1\lib\CORE"
-machine:AMD64 -subsystem:console,"5.02"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_NO_REGISTRY
USE_PERLIO USE_PERL_ATOF
Locally applied patches:
RC2
Built under MSWin32
Compiled at Jul 30 2016 12:11:40
%ENV:
PERLDOC_PAGER="c:\opt\cygwin64\bin\less.exe -+C -E -F -g -i"
PERL_CPANM_OPT="--from https://cpan.metacpan.org/"
@INC:
c:/opt/perl/site/5.24.1/lib/MSWin32-x64-multi-thread
c:/opt/perl/site/5.24.1/lib
c:/opt/perl/5.24.1/lib
.