CC: | "Wagner, David --- Sr Programmer Analyst --- CFS" <David.Wagner [...] freight.fedex.com> |
Subject: | Compile problem in building net-ssh2 under Windows XP SP3, AS 5.12.4 using latest gcc compiler |
Date: | Mon, 21 May 2012 10:49:01 -0500 |
To: | <bug-net-ssh2 [...] rt.cpan.org> |
From: | "Wagner, David --- Sr Programmer Analyst --- CFS" <david.wagner [...] fedex.com> |
Rafael,
After I reread that, I tried to do the install for net-ssh2, but
get the following errors towards the end. I tried to be very careful in
what you provided and I entered what you gave....
Please advise. I used bold/underline where the first error
appeared...
F:\NetSSH2\Net-SSH2-0.44>set
PATH=c:\perl\bin;c:\mingw\bin;c:\perl\site\bin;c:\windows\system32;c:\wi
ndows
F:\NetSSH2\Net-SSH2-0.44> perl Makefile.PL
lib=F:\NetSSH2\libssh2-1.4.1\src\.libs inc=F:\NetSSH2\libssh2-1.
4.1\include
Set up gcc environment - 4.6.2
Subroutine checklibs redefined at inc/Module/Install/CheckLib.pm line
11.
Subroutine assertlibs redefined at inc/Module/Install/CheckLib.pm line
25.
Subroutine _author_side redefined at inc/Module/Install/CheckLib.pm line
39.
The libssh2 library is required by this module. If you don't have it,
you can
download it from http://www.libssh2.org; you may also need OpenSSL,
which can be
obtained from http://www.openssl.org.
Debian: sudo aptitude install libssh2-1-dev
OpenSUSE: sudo zypper in libssh2-1 libssh2-devel
You can pass your libssh2 lib and include dirs on the command line.
E.g.:
perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include
If you want to build on Windows, see the file BUILDING.WIN32 in the
distribution.
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSH2
Version::Requirements is deprecated; replace with
CPAN::Meta::Requirements at c:/Perl/site/lib/Version/Require
ments.pm line 17
require Version/Requirements.pm called at
c:/Perl/site/lib/CPAN/Meta/Prereqs.pm line 10
CPAN::Meta::Prereqs::BEGIN() called at
c:/Perl/site/lib/Version/Requirements.pm line 0
eval {...} called at c:/Perl/site/lib/Version/Requirements.pm
line 0
require CPAN/Meta/Prereqs.pm called at
c:/Perl/site/lib/CPAN/Meta/Feature.pm line 7
CPAN::Meta::Feature::BEGIN() called at
c:/Perl/site/lib/Version/Requirements.pm line 0
eval {...} called at c:/Perl/site/lib/Version/Requirements.pm
line 0
require CPAN/Meta/Feature.pm called at
c:/Perl/site/lib/CPAN/Meta.pm line 9
CPAN::Meta::BEGIN() called at
c:/Perl/site/lib/Version/Requirements.pm line 0
eval {...} called at c:/Perl/site/lib/Version/Requirements.pm
line 0
require CPAN/Meta.pm called at
c:/Perl/site/lib/ExtUtils/MM_Any.pm line 733
eval {...} called at c:/Perl/site/lib/ExtUtils/MM_Any.pm line
732
ExtUtils::MM_Any::_has_cpan_meta() called at
c:/Perl/site/lib/ExtUtils/MM_Any.pm line 1231
ExtUtils::MM_Any::_mymeta_from_meta('PACK001=HASH(0x1910c44)',
'') called at c:/Perl/site/lib/ExtUtils
/MM_Any.pm line 1207
ExtUtils::MM_Any::mymeta('PACK001=HASH(0x1910c44)') called at
c:/Perl/site/lib/ExtUtils/MakeMaker.pm l
ine 1037
ExtUtils::MakeMaker::flush('PACK001=HASH(0x1910c44)') called at
c:/Perl/site/lib/ExtUtils/MakeMaker.pm
line 61
ExtUtils::MakeMaker::WriteMakefile('realclean',
'HASH(0x1e730a4)', 'LIBS', 'ARRAY(0x1e92c9c)', 'NO_MET
A', 1, 'BUILD_REQUIRES', 'HASH(0x1df348c)', 'LDDLFLAGS', ...) called at
inc/Module/Install/Makefile.pm line 35
2
Module::Install::Makefile::write('Module::Install::Makefile=HASH(0x1d711
cc)') called at inc/Module/Ins
tall/WriteAll.pm line 41
Module::Install::WriteAll::WriteAll(undef) called at Makefile.PL
line 109
Writing MYMETA.yml and MYMETA.json
F:\NetSSH2\Net-SSH2-0.44>dmake
cp lib/Net/SSH2/File.pm blib\lib\Net\SSH2\File.pm
cp lib/Net/SSH2/Dir.pm blib\lib\Net\SSH2\Dir.pm
cp lib/Net/SSH2/PublicKey.pm blib\lib\Net\SSH2\PublicKey.pm
cp lib/Net/SSH2/SFTP.pm blib\lib\Net\SSH2\SFTP.pm
cp lib/Net/SSH2/Listener.pm blib\lib\Net\SSH2\Listener.pm
cp lib/Net/SSH2/Channel.pm blib\lib\Net\SSH2\Channel.pm
cp lib/Net/SSH2.pm blib\lib\Net\SSH2.pm
AutoSplitting blib\lib\Net\SSH2.pm (blib\lib\auto\Net\SSH2)
C:\perl\bin\perl.exe "-Iinc" C:\Perl\site\lib\ExtUtils\xsubpp -typemap
C:\Perl\lib\ExtUtils\typemap -typemap
typemap SSH2.xs > SSH2.xsc && C:\perl\bin\perl.exe "-Iinc"
-MExtUtils::Command -e mv -- SSH2.xsc SSH2.c
c:/mingw/bin/gcc.exe -c -IF:\NetSSH2\libssh2-1.4.1\include -I.
-DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRIC
T -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_
TIME_T -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing
-mms-bitfields -O2 -DVERSION=\"0.44\"
-DXS_VERSION=\"0.44\" "-IC:\Perl\lib\CORE" -DLIBSSH2_WIN32
-DLIBSSH2_API= SSH2.c
Running Mkbootstrap for Net::SSH2 ()
C:\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e chmod -- 644 SSH2.bs
C:\perl\bin\perl.exe "-Iinc" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Net::SSH2\", 'DLBASE' => 'SSH2',
'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS'
=> { }, 'DL_VARS' => []);"
Set up gcc environment - 4.6.2
dlltool --def SSH2.def --output-exp dll.exp
c:\perl\site\bin\g++.exe -o blib\arch\auto\Net\SSH2\SSH2.dll
-Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl\lib
\CORE" -static-libgcc -static-libstdc++ SSH2.o
C:\Perl\lib\CORE\perl512.lib F:\NetSSH2\libssh2-1.4.1\src\.li
bs\libssh2.a F:\NetSSH2\zlib-1.2.7\lib\libz.a
F:\NetSSH2\openssl-1.0.1c\lib\libssl.a F:\NetSSH2\openssl-1.0.1c
\lib\libcrypto.a c:\mingw\lib\libkernel32.a c:\mingw\lib\libuser32.a
c:\mingw\lib\libgdi32.a c:\mingw\lib\libw
inspool.a c:\mingw\lib\libcomdlg32.a c:\mingw\lib\libadvapi32.a
c:\mingw\lib\libshell32.a c:\mingw\lib\libole3
2.a c:\mingw\lib\liboleaut32.a c:\mingw\lib\libnetapi32.a
c:\mingw\lib\libuuid.a c:\mingw\lib\libws2_32.a c:\m
ingw\lib\libmpr.a c:\mingw\lib\libwinmm.a c:\mingw\lib\libversion.a
c:\mingw\lib\libodbc32.a c:\mingw\lib\libo
dbccp32.a c:\mingw\lib\libcomctl32.a c:\mingw\lib\libmsvcrt.a dll.exp
g++.exe: unrecognized option `-static-libstdc++'
Warning: .drectve `-aligncomm:"_sigx_app",2 ' unrecognized
Warning: .drectve `-aligncomm:"_sig_app",2' unrecognized
Warning: .drectve `-aligncomm:"_OPENSSL_ia32cap_P",2' unrecognized
F:\NetSSH2\openssl-1.0.1c\lib\libcrypto.a(bn_exp.o):bn_exp.c:(.text+0x10
1): undefined reference to `__chkstk_m
s'
F:\NetSSH2\openssl-1.0.1c\lib\libcrypto.a(bn_exp.o):bn_exp.c:(.text+0x19
44): undefined reference to `__chkstk_
ms'
F:\NetSSH2\openssl-1.0.1c\lib\libcrypto.a(bss_file.o):bss_file.c:(.text+
0x74d): undefined reference to `__chks
tk_ms'
F:\NetSSH2\openssl-1.0.1c\lib\libcrypto.a(cryptlib.o):cryptlib.c:(.text+
0x53d): undefined reference to `__chks
tk_ms'
F:\NetSSH2\openssl-1.0.1c\lib\libcrypto.a(bn_prime.o):bn_prime.c:(.text+
0xeb): undefined reference to `__chkst
k_ms'
F:\NetSSH2\openssl-1.0.1c\lib\libcrypto.a(err_prn.o):err_prn.c:(.text+0x
8a): more undefined references to `__c
hkstk_ms' follow
c:\perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\min
gw32\bin\ld.exe: BFD (GNU Binutils) 2.
19.1 assertion fail ../../binutils-2.19.1/bfd/coffgen.c:375
c:\perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\min
gw32\bin\ld.exe: BFD (GNU Binutils) 2.
19.1 assertion fail ../../binutils-2.19.1/bfd/cofflink.c:2270
c:\perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\min
gw32\bin\ld.exe: c:\mingw\lib\libmsvcr
t.a(dsjhs00583.o): bad reloc address 0x74 in section `.text'
collect2: ld returned 1 exit status
dmake.exe: Error code 129, while making
'blib\arch\auto\Net\SSH2\SSH2.dll'
F:\NetSSH2\Net-SSH2-0.44>
If you have any questions and/or problems, please let me know.
Thanks.
Wags ;)
David R. Wagner
Senior Programmer Analyst
FedEx Services
1.719.484.2097 Tel
1.719.484.2419 Fax
1.408.623.5963 Cell
http://Fedex.com/us
If you have any questions and/or problems, please let me know.
Thanks.
Wags ;)
David R. Wagner
Senior Programmer Analyst
FedEx Services
1.719.484.2097 Tel
1.719.484.2419 Fax
1.408.623.5963 Cell
http://Fedex.com/us