public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Aaron Schneider <notstop@users.sourceforge.net>
To: cygwin@cygwin.com
Subject: Re: Term/ReadKey.pm missing from perl 5.14.2-3
Date: Sun, 29 Jul 2012 11:28:00 -0000	[thread overview]
Message-ID: <BLU0-SMTP195F5B2FEF6A35BEF1BD540CEC70@phx.gbl> (raw)
In-Reply-To: <alpine.BSO.2.00.1207291158130.3844@frisky.computurn.co.uk>

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

  reply	other threads:[~2012-07-29 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-29 11:01 Steve Campbell
2012-07-29 11:28 ` Aaron Schneider [this message]
2012-07-29 13:25 ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU0-SMTP195F5B2FEF6A35BEF1BD540CEC70@phx.gbl \
    --to=notstop@users.sourceforge.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).