delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/29/07:28:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_STOCKTIP,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <BLU0-SMTP195F5B2FEF6A35BEF1BD540CEC70@phx.gbl>
Date: Sun, 29 Jul 2012 13:27:57 +0200
From: Aaron Schneider <notstop AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Term/ReadKey.pm missing from perl 5.14.2-3
References: <alpine DOT BSO DOT 2 DOT 00 DOT 1207291158130 DOT 3844 AT frisky DOT computurn DOT co DOT uk>
In-Reply-To: <alpine.BSO.2.00.1207291158130.3844@frisky.computurn.co.uk>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 29/07/2012 13:01, Steve Campbell wrote:
> Hi,
>
> The Perl Term::ReadKey module has gone missing from the perl 5.14.2-3
> package (reverting to 5.10.1-5 restores it).
>
> Could it be put back please? Unless there's a good reason for removing it
> of course!
>

This is what I get when trying to compile it, maybe it's the cause:

  ~/temp/TermReadKey-2.14
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Term::ReadKey
Writing MYMETA.yml

~/temp/TermReadKey-2.14
$ make test
cp ReadKey.pm blib/lib/Term/ReadKey.pm
AutoSplitting blib/lib/Term/ReadKey.pm (blib/lib/auto/Term/ReadKey)
/usr/bin/perl.exe -I/usr/lib/perl5/5.14 genchars.pl

Writing termio/termios section of cchars.h... Done.
Checking for sgtty...
         Sgtty NOT found.
Writing sgtty section of cchars.h... Done.
/usr/bin/perl.exe /usr/lib/perl5/5.14/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.14/ExtUtils/typemap  ReadKey.xs > ReadKey.xsc && mv 
ReadKey.xsc ReadKey.c
Please specify prototyping behavior for ReadKey.xs (see perlxs manual)
gcc-4 -c    -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g 
-fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 
-DVERSION=\"2.14\"  -DXS_VERSION=\"2.14\" 
"-I/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE"   ReadKey.c
In file included from ReadKey.xs:326:0:
cchars.h: In function ‘XS_Term__ReadKey_GetControlChars’:
cchars.h:230:19: warning: assignment from incompatible pointer type
cchars.h:232:19: warning: assignment from incompatible pointer type
cchars.h: In function ‘XS_Term__ReadKey_SetControlChars’:
cchars.h:352:19: warning: assignment from incompatible pointer type
cchars.h:354:19: warning: assignment from incompatible pointer type
ReadKey.xs: In function ‘selectfile’:
ReadKey.xs:1433:2: warning: passing argument 2 of ‘Perl_PerlIO_get_cnt’ 
from incompatible pointer type
/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE/proto.h:7152:19: 
note: expected ‘struct PerlIOl **’ but argument is of type ‘struct FILE *’
ReadKey.c: In function ‘XS_Term__ReadKey_SetReadMode’:
ReadKey.c:1755:11: warning: assignment from incompatible pointer type
ReadKey.c: In function ‘XS_Term__ReadKey_GetTermSizeWin32’:
ReadKey.c:1924:11: warning: assignment from incompatible pointer type
ReadKey.c: In function ‘XS_Term__ReadKey_GetTermSizeVIO’:
ReadKey.c:1967:11: warning: assignment from incompatible pointer type
ReadKey.c: In function ‘XS_Term__ReadKey_GetTermSizeGWINSZ’:
ReadKey.c:2010:11: warning: assignment from incompatible pointer type
ReadKey.c: In function ‘XS_Term__ReadKey_GetTermSizeGSIZE’:
ReadKey.c:2053:11: warning: assignment from incompatible pointer type
ReadKey.c: In function ‘XS_Term__ReadKey_SetTerminalSize’:
ReadKey.c:2100:11: warning: assignment from incompatible pointer type
ReadKey.c: In function ‘XS_Term__ReadKey_GetSpeed’:
ReadKey.c:2130:11: warning: assignment from incompatible pointer type
Running Mkbootstrap for Term::ReadKey ()
chmod 644 ReadKey.bs
rm -f blib/arch/auto/Term/ReadKey/ReadKey.dll
g++-4  --shared  -Wl,--enable-auto-import -Wl,--export-all-symbols 
-Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector 
ReadKey.o  -o blib/arch/auto/Term/ReadKey/ReadKey.dll        \
   /usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE/cygperl5_14.dll    \

chmod 755 blib/arch/auto/Term/ReadKey/ReadKey.dll
cp ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs
chmod 644 blib/arch/auto/Term/ReadKey/ReadKey.bs
PERL_DL_NONLAZY=1 /usr/bin/perl.exe "-Iblib/lib" "-Iblib/arch" -w test.pl

And now on to the tests!


Term::ReadKey is using TERMIOS, as opposed to TERMIO or SGTTY.

Non-blocking reads possible via O_NODELAY, and select().
O_NODELAY will be used. select() will be used for timed reads.
Using GetTerminalSize, it appears that your terminal is
84 characters wide by 53 high.

Apparently, you are connected at -2146388304/-2146544496 baud.

Unable to read terminal settings in GetControlChars at test.pl line 118.
Makefile:923: recipe for target `test_dynamic' failed
make: *** [test_dynamic] Error 9


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019