Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics
Id:
87069
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
nigel.meachen [...] siemens.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Bug in SSH2.xs in Net::SSH2 0.48 causes build failure
Date: Fri, 19 Jul 2013 19:43:29 +0000
To: "bug-Net-SSH2@rt.cpan.org" <bug-Net-SSH2@rt.cpan.org>
From: "Meachen, Nigel" <nigel.meachen@siemens.com>

Depending on the strictness of the C compiler being used variable declarations are only allowed at the start of a block, this restriction results in a build failure due to the placement of a declaration in SSH2.xs in Net::SSH2 0.48.

 

The declaration of the variable exitsignal in the function net_ch_exit_signal should be in a PREINIT section rather than inside the CODE section.

 

This message and any attachments are solely for the use of intended recipients. The information contained herein may include trade secrets, protected health or personal information, privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you are not an intended recipient, you are hereby notified that you received this email in error, and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system. Thank you for your cooperation

Fixed in 0.49, thank you for your report. commit c532508a2ba9c92f0f6f7ec5de29ee672987e5bf Author: Rafael Kitover <rkitover@cpan.org> Date: Mon Jul 22 16:02:06 2013 -0400 enforce max C89 compatibility on gcc (RT#87069) Add '-DPERL_GCC_PEDANTIC -std=c89 -pedantic-errors -Wno-long-long' to CCFLAGS when the compiler is gcc to enforce the maximum C89 compatibility possible for other compilers.
On Mon Jul 22 16:16:15 2013, RKITOVER wrote:
Show quoted text
> enforce max C89 compatibility on gcc (RT#87069) > > Add '-DPERL_GCC_PEDANTIC -std=c89 -pedantic-errors -Wno-long-long' to > CCFLAGS when the compiler is gcc to enforce the maximum C89 > compatibility possible for other compilers.
Unfortunately, when attempting to build Net-SSH2-0.50, this doesn't sit at all well with (my MinGW port) of gcc-4.7.0 on MS Windows: ############################################ C:\MinGW\perl516\bin\perl.exe "-Iinc" C:\MinGW\perl516\lib\ExtUtils\xsubpp -typemap C:\Mingw\perl516\lib\ExtUtils\typemap -typemap typemap SSH2.xs > SSH2.xsc && C:\MinGW\perl516\bin\perl.exe "-Iinc" -MExtUtils::Command -e mv -- SSH2.xsc SSH2.c gcc -c -IC:/MinGW/msys/1.0/local/include -IC:/MinGW/msys/1.0/local/ssl/include -I. -DPERL_GCC_PEDANTIC -std=c89 -pedantic-errors -Wno-long-long -s -O2 -DVERSION=\"0.50\" -DXS_VERSION=\"0.50\" "-IC:\Mingw\perl516\lib\CORE" SSH2.c In file included from C:\Mingw\perl516\lib\CORE/sys/socket.h:180:0, from C:\Mingw\perl516\lib\CORE/perl.h:1233, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/win32.h:339:50: error: unknown type name 'STRLEN' C:\Mingw\perl516\lib\CORE/win32.h:340:50: error: unknown type name 'STRLEN' C:\Mingw\perl516\lib\CORE/win32.h:341:52: error: unknown type name 'STRLEN' In file included from C:\Mingw\perl516\lib\CORE/sys/socket.h:180:0, from C:\Mingw\perl516\lib\CORE/perl.h:1233, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/win32.h:441:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/win32.h:476:1: error: unknown type name 'PerlInterpreter' In file included from C:\Mingw\perl516\lib\CORE/win32.h:486:0, from C:\Mingw\perl516\lib\CORE/sys/socket.h:180, from C:\Mingw\perl516\lib\CORE/perl.h:1233, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/perlio.h:117:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:118:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:119:47: error: unknown type name 'STRLEN' C:\Mingw\perl516\lib\CORE/perlio.h:121:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:122:32: error: unknown type name 'SV' C:\Mingw\perl516\lib\CORE/perlio.h:123:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:124:1: error: unknown type name 'AV' C:\Mingw\perl516\lib\CORE/perlio.h:124:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:125:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:125:39: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:126:33: error: unknown type name 'CLONE_PARAMS' C:\Mingw\perl516\lib\CORE/perlio.h:223:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:236:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:238:18: error: unknown type name 'SV' C:\Mingw\perl516\lib\CORE/perlio.h:348:43: error: unknown type name 'SV' C:\Mingw\perl516\lib\CORE/perlio.h:351:43: error: unknown type name 'SV' C:\Mingw\perl516\lib\CORE/perlio.h:354:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:354:55: error: unknown type name 'CLONE_PARAMS' C:\Mingw\perl516\lib\CORE/perlio.h:363:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:367:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:374:1: error: unknown type name 'PerlInterpreter' C:\Mingw\perl516\lib\CORE/perlio.h:379:1: error: unknown type name 'PerlInterpreter' In file included from C:\Mingw\perl516\lib\CORE/win32.h:492:0, from C:\Mingw\perl516\lib\CORE/sys/socket.h:180, from C:\Mingw\perl516\lib\CORE/perl.h:1233, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/win32iop.h:73:37: error: unknown type name 'Stat_t' C:\Mingw\perl516\lib\CORE/win32iop.h:74:46: error: unknown type name 'Stat_t' C:\Mingw\perl516\lib\CORE/win32iop.h:77:54: error: unknown type name 'IV' C:\Mingw\perl516\lib\CORE/win32iop.h:77:63: error: unknown type name 'SV' C:\Mingw\perl516\lib\CORE/win32iop.h:127:50: error: unknown type name 'CLONE_PARAMS' C:\Mingw\perl516\lib\CORE/win32iop.h:135:46: error: unknown type name 'Stat_t' In file included from SSH2.xs:8:0: C:\Mingw\perl516\lib\CORE/perl.h:1388:8: warning: 'win32_strerror' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] In file included from SSH2.xs:8:0: C:\Mingw\perl516\lib\CORE/perl.h:3229:0: error: "__attribute__format__" redefined In file included from C:\Mingw\perl516\lib\CORE/win32.h:486:0, from C:\Mingw\perl516\lib\CORE/sys/socket.h:180, from C:\Mingw\perl516\lib\CORE/perl.h:1233, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/perlio.h:219:0: note: this is the location of the previous definition In file included from C:\Mingw\perl516\lib\CORE/perl.h:3444:0, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] In file included from C:\Mingw\perl516\lib\CORE/perl.h:3446:0, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic] In file included from C:\Mingw\perl516\lib\CORE/perl.h:3471:0, from SSH2.xs:8: C:\Mingw\perl516\lib\CORE/parser.h:110:5: error: type of bit-field 'in_pod' is a GCC extension [-pedantic] C:\Mingw\perl516\lib\CORE/parser.h:111:5: error: type of bit-field 'filtered' is a GCC extension [-pedantic] In file included from SSH2.xs:8:0: C:\Mingw\perl516\lib\CORE/perl.h:4192:16: warning: 'win32_environ' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] dmake: Error code 129, while making 'SSH2.o' ############################################ However, AFAICT, it's not such a big disaster - I resorted to the Makefile.PL that I used to build Net-SSH2-0.48 and all went well. Cheers, Rob
Subject: Re: [rt.cpan.org #87069] Bug in SSH2.xs in Net::SSH2 0.48 causes build failure
Date: Thu, 1 Aug 2013 19:30:28 -0400
To: bug-Net-SSH2@rt.cpan.org
From: Rafael Kitover <rkitover@gmail.com>
That's interesting, I guess -DPERL_GCC_PEDANTIC doesn't work for Win32.

I'll re-upload with the flags removed for Win32.

I've been meaning to check on how it builds on win32 nowadays sometime soon anyway.

Thanks for letting me know.

On Thursday, August 1, 2013 at 9:09 AM, Sisyphus via RT wrote:

Show quoted text
Queue: Net-SSH2

On Mon Jul 22 16:16:15 2013, RKITOVER wrote:

enforce max C89 compatibility on gcc (RT#87069)

Add '-DPERL_GCC_PEDANTIC -std=c89 -pedantic-errors -Wno-long-long' to
CCFLAGS when the compiler is gcc to enforce the maximum C89
compatibility possible for other compilers.

Unfortunately, when attempting to build Net-SSH2-0.50, this doesn't sit at all well with (my MinGW port) of gcc-4.7.0 on MS Windows:

############################################
C:\MinGW\perl516\bin\perl.exe "-Iinc" C:\MinGW\perl516\lib\ExtUtils\xsubpp -typemap C:\Mingw\perl516\lib\ExtUtils\typemap -typemap typemap SSH2.xs > SSH2.xsc && C:\MinGW\perl516\bin\perl.exe "-Iinc" -MExtUtils::Command -e mv -- SSH2.xsc SSH2.c
gcc -c -IC:/MinGW/msys/1.0/local/include -IC:/MinGW/msys/1.0/local/ssl/include -I. -DPERL_GCC_PEDANTIC -std=c89 -pedantic-errors -Wno-long-long -s -O2 -DVERSION=\"0.50\" -DXS_VERSION=\"0.50\" "-IC:\Mingw\perl516\lib\CORE" SSH2.c
In file included from C:\Mingw\perl516\lib\CORE/sys/socket.h:180:0,
from C:\Mingw\perl516\lib\CORE/perl.h:1233,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/win32.h:339:50: error: unknown type name 'STRLEN'
C:\Mingw\perl516\lib\CORE/win32.h:340:50: error: unknown type name 'STRLEN'
C:\Mingw\perl516\lib\CORE/win32.h:341:52: error: unknown type name 'STRLEN'
In file included from C:\Mingw\perl516\lib\CORE/sys/socket.h:180:0,
from C:\Mingw\perl516\lib\CORE/perl.h:1233,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/win32.h:441:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/win32.h:476:1: error: unknown type name 'PerlInterpreter'
In file included from C:\Mingw\perl516\lib\CORE/win32.h:486:0,
from C:\Mingw\perl516\lib\CORE/sys/socket.h:180,
from C:\Mingw\perl516\lib\CORE/perl.h:1233,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/perlio.h:117:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:118:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:119:47: error: unknown type name 'STRLEN'
C:\Mingw\perl516\lib\CORE/perlio.h:121:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:122:32: error: unknown type name 'SV'
C:\Mingw\perl516\lib\CORE/perlio.h:123:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:124:1: error: unknown type name 'AV'
C:\Mingw\perl516\lib\CORE/perlio.h:124:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:125:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:125:39: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:126:33: error: unknown type name 'CLONE_PARAMS'
C:\Mingw\perl516\lib\CORE/perlio.h:223:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:236:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:238:18: error: unknown type name 'SV'
C:\Mingw\perl516\lib\CORE/perlio.h:348:43: error: unknown type name 'SV'
C:\Mingw\perl516\lib\CORE/perlio.h:351:43: error: unknown type name 'SV'
C:\Mingw\perl516\lib\CORE/perlio.h:354:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:354:55: error: unknown type name 'CLONE_PARAMS'
C:\Mingw\perl516\lib\CORE/perlio.h:363:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:367:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:374:1: error: unknown type name 'PerlInterpreter'
C:\Mingw\perl516\lib\CORE/perlio.h:379:1: error: unknown type name 'PerlInterpreter'
In file included from C:\Mingw\perl516\lib\CORE/win32.h:492:0,
from C:\Mingw\perl516\lib\CORE/sys/socket.h:180,
from C:\Mingw\perl516\lib\CORE/perl.h:1233,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/win32iop.h:73:37: error: unknown type name 'Stat_t'
C:\Mingw\perl516\lib\CORE/win32iop.h:74:46: error: unknown type name 'Stat_t'
C:\Mingw\perl516\lib\CORE/win32iop.h:77:54: error: unknown type name 'IV'
C:\Mingw\perl516\lib\CORE/win32iop.h:77:63: error: unknown type name 'SV'
C:\Mingw\perl516\lib\CORE/win32iop.h:127:50: error: unknown type name 'CLONE_PARAMS'
C:\Mingw\perl516\lib\CORE/win32iop.h:135:46: error: unknown type name 'Stat_t'
In file included from SSH2.xs:8:0:
C:\Mingw\perl516\lib\CORE/perl.h:1388:8: warning: 'win32_strerror' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
In file included from SSH2.xs:8:0:
C:\Mingw\perl516\lib\CORE/perl.h:3229:0: error: "__attribute__format__" redefined
In file included from C:\Mingw\perl516\lib\CORE/win32.h:486:0,
from C:\Mingw\perl516\lib\CORE/sys/socket.h:180,
from C:\Mingw\perl516\lib\CORE/perl.h:1233,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/perlio.h:219:0: note: this is the location of the previous definition
In file included from C:\Mingw\perl516\lib\CORE/perl.h:3444:0,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:324:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:328:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:333:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:339:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:345:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:351:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:487:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:492:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:497:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/op.h:502:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
In file included from C:\Mingw\perl516\lib\CORE/perl.h:3446:0,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_type' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_opt' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_latefree' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_latefreed' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_attached' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/cop.h:384:5: error: type of bit-field 'op_spare' is a GCC extension [-pedantic]
In file included from C:\Mingw\perl516\lib\CORE/perl.h:3471:0,
from SSH2.xs:8:
C:\Mingw\perl516\lib\CORE/parser.h:110:5: error: type of bit-field 'in_pod' is a GCC extension [-pedantic]
C:\Mingw\perl516\lib\CORE/parser.h:111:5: error: type of bit-field 'filtered' is a GCC extension [-pedantic]
In file included from SSH2.xs:8:0:
C:\Mingw\perl516\lib\CORE/perl.h:4192:16: warning: 'win32_environ' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
dmake: Error code 129, while making 'SSH2.o'
############################################

However, AFAICT, it's not such a big disaster - I resorted to the Makefile.PL that I used to build Net-SSH2-0.48 and all went well.

Cheers,
Rob

Removed the options in 0.51 (except for authors on non-win32 and non-solaris.) Original issue remains fixed (because the code was fixed to be c89.)


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.