🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #52060

Expect, IO::TTY i Windows

#52060
From: badzio
Date: Thu, 25 Nov 2010 20:47
230 lines
9972 bytes
Chcialbym skorzystac z modulu Expect pod Windowsem. Expect wymaga
IO::TTY, ktory ma adnotacje:
Windows is supported only under the Cygwin environment, see
http://www.cygwin.com/.
Sorry, ActiveState Perl on Windows is NOT supported, basically
because there are no pseudo-terminals under Windows.

Tyle ze ja nie uzywam ActiveStatePerl, uzywam Strawberry o ktorym w
readme nic nie na pisali. Proba zainstalowania TTY (lub
Bundle::Expect) konczy sie bledem:


cpan> install IO:Tty
Running install for module 'IO::Tty'
Running make for T/TO/TODDR/IO-Tty-1.10.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/T/TO/TODDR/IO-Tty-1.10.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/T/TO/TODDR/CHECKSUMS
Checksum for C:\strawberry\cpan\sources\authors\id\T\TO\TODDR\IO-
Tty-1.10.tar.gz
 ok
Scanning cache C:\strawberry\cpan\build for sizes
DONE

  CPAN.pm: Going to build T/TO/TODDR/IO-Tty-1.10.tar.gz

Now let's see what we can find out about your system
(logfiles of failing tests are available in the conf/ dir)...
Looking for _getpty()...... not found.
Looking for getpt()........ not found.
Looking for grantpt()...... not found.
Looking for openpty()...... not found.
Looking for posix_openpt(). not found.
Looking for ptsname()...... not found.
Looking for ptsname_r().... not found.
Looking for sigaction().... not found.
Looking for strlcpy()...... not found.
Looking for ttyname()...... not found.
Looking for unlockpt()..... not found.
Looking for libutil.h...... not found.
Looking for pty.h.......... not found.
Looking for sys/pty.h...... not found.
Looking for sys/ptyio.h.... not found.
Looking for sys/stropts.h.. not found.
Looking for termio.h....... not found.
Looking for termios.h...... not found.
Looking for util.h......... not found.
Checking which symbols compile OK...
(sorry for the tedious check, but some systems have not too clean
 header files, to say the least;  '+' means OK, '-' means not defined
 and '*' has compile problems...)
-B0 -B110 -B115200 -B1200 -B134 -B150 -B153600 -B1800 -B19200 -B200 -
B230400 -B2
400 -B300 -B307200 -B38400 -B460800 -B4800 -B50 -B57600 -B600 -B75 -
B76800 -B960
0 -BRKINT -BS0 -BS1 -BSDLY -CBAUD -CBAUDEXT -CBRK -CCTS_OFLOW -CDEL -
CDSUSP -CEO
F -CEOL -CEOL2 -CEOT -CERASE -CESC -CFLUSH -CIBAUD -CIBAUDEXT -CINTR -
CKILL -CLN
EXT -CLOCAL -CNSWTCH -CNUL -CQUIT -CR0 -CR1 -CR2 -CR3 -CRDLY -CREAD -
CRPRNT -CRT
SCTS -CRTSXOFF -CRTS_IFLOW -CS5 -CS6 -CS7 -CS8 -CSIZE -CSTART -CSTOP -
CSTOPB -CS
USP -CSWTCH -CWERASE -DEFECHO -DIOC -DIOCGETP -DIOCSETP -DOSMODE -ECHO
-ECHOCTL
-ECHOE -ECHOK -ECHOKE -ECHONL -ECHOPRT -EXTA -EXTB -FF0 -FF1 -FFDLY -
FIORDCHK -F
LUSHO -HUPCL -ICANON -ICRNL -IEXTEN -IGNBRK -IGNCR -IGNPAR -IMAXBEL -
INLCR -INPC
K -ISIG -ISTRIP -IUCLC -IXANY -IXOFF -IXON -KBENABLED -LDCHG -LDCLOSE -
LDDMAP -L
DEMAP -LDGETT -LDGMAP -LDIOC -LDNMAP -LDOPEN -LDSETT -LDSMAP -LOBLK -
NCCS -NL0 -
NL1 -NLDLY -NOFLSH -OCRNL -OFDEL -OFILL -OLCUC -ONLCR -ONLRET -ONOCR -
OPOST -PAG
EOUT -PARENB -PAREXT -PARMRK -PARODD -PENDIN -RCV1EN -RTS_TOG -TAB0 -
TAB1 -TAB2
-TAB3 -TABDLY -TCDSET -TCFLSH -TCGETA -TCGETS -TCIFLUSH -TCIOFF -
TCIOFLUSH -TCIO
N -TCOFLUSH -TCOOFF -TCOON -TCSADRAIN -TCSAFLUSH -TCSANOW -TCSBRK -
TCSETA -TCSET
AF -TCSETAW -TCSETCTTY -TCSETS -TCSETSF -TCSETSW -TCXONC -TERM_D40 -
TERM_D42 -TE
RM_H45 -TERM_NONE -TERM_TEC -TERM_TEX -TERM_V10 -TERM_V61 -TIOCCBRK -
TIOCCDTR -T
IOCCONS -TIOCEXCL -TIOCFLUSH -TIOCGETC -TIOCGETD -TIOCGETP -TIOCGLTC -
TIOCGPGRP
-TIOCGSID -TIOCGSOFTCAR -TIOCGWINSZ -TIOCHPCL -TIOCKBOF -TIOCKBON -
TIOCLBIC -TIO
CLBIS -TIOCLGET -TIOCLSET -TIOCMBIC -TIOCMBIS -TIOCMGET -TIOCMSET -
TIOCM_CAR -TI
OCM_CD -TIOCM_CTS -TIOCM_DSR -TIOCM_DTR -TIOCM_LE -TIOCM_RI -TIOCM_RNG
-TIOCM_RT
S -TIOCM_SR -TIOCM_ST -TIOCNOTTY -TIOCNXCL -TIOCOUTQ -TIOCREMOTE -
TIOCSBRK -TIOC
SCTTY -TIOCSDTR -TIOCSETC -TIOCSETD -TIOCSETN -TIOCSETP -TIOCSIGNAL -
TIOCSLTC -T
IOCSPGRP -TIOCSSID -TIOCSSOFTCAR -TIOCSTART -TIOCSTI -TIOCSTOP -
TIOCSWINSZ -TM_A
NL -TM_CECHO -TM_CINVIS -TM_LCF -TM_NONE -TM_SET -TM_SNL -TOSTOP -
VCEOF -VCEOL -
VDISCARD -VDSUSP -VEOF -VEOL -VEOL2 -VERASE -VINTR -VKILL -VLNEXT -
VMIN -VQUIT -
VREPRINT -VSTART -VSTOP -VSUSP -VSWTCH -VT0 -VT1 -VTDLY -VTIME -
VWERASE -WRAP -X
CASE -XCLUDE -XMT1EN -XTABS

WARNING!  Neither ptsname() nor ptsname_r() could be found,
 so we cannot use a high-level interface like openpty().
No high-level lib or clone device has been found, we will use BSD-
style ptys.
Writing IO::Tty::Constant.pm...
DEFINE =
Checking if your kit is complete...
Looks good
Writing Makefile for IO::Tty
cp Tty.pm blib\lib\IO\Tty.pm
cp Tty/Constant.pm blib\lib\IO\Tty\Constant.pm
cp Pty.pm blib\lib\IO\Pty.pm
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils
\xsubpp  -typemap
 C:\strawberry\perl\lib\ExtUtils\typemap  Tty.xs > Tty.xsc && C:
\strawberry\perl
\bin\perl.exe -MExtUtils::Command -e "mv" -- Tty.xsc Tty.c
gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -
DPERL_IMPL
ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -
DPERL_MSVC
RT_READFIX -s -O2         -DVERSION=\"1.10\"    -DXS_VERSION=\"1.10\"
"-IC:\str
awberry\perl\lib\CORE"   Tty.c
In file included from Tty.xs:54:
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-
w64-mingw
32/include/sys/ioctl.h:17: error: expected declaration specifiers or
'...' befor
e '(' token
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-
w64-mingw
32/include/sys/ioctl.h:17: error: expected ')' before '->' token
Tty.xs: In function 'make_safe_fd':
Tty.xs:225: error: 'F_DUPFD' undeclared (first use in this function)
Tty.xs:225: error: (Each undeclared identifier is reported only once
Tty.xs:225: error: for each function it appears in.)
dmake.EXE:  Error code 129, while making 'Tty.o'
  TODDR/IO-Tty-1.10.tar.gz
  C:\strawberry\c\bin\dmake.EXE -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 TODDR/IO-Tty-1.10.tar.gz                     : make NO


cpan> install Bundle::Expect
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RG/RGIERSIG/Bundle-Expect-1.09.tar.g
z
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RG/RGIERSIG/CHECKSUMS
Checksum for C:\strawberry\cpan\sources\authors\id\R\RG\RGIERSIG
\Bundle-Expect-1
.09.tar.gz ok
Expect is up to date (1.21).
Running install for module 'IO::Stty'
Running make for T/TO/TODDR/IO-Stty-0.03.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/T/TO/TODDR/IO-Stty-0.03.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\T\TO\TODDR\IO-
Stty-0.03.tar.g
z ok

  CPAN.pm: Going to build T/TO/TODDR/IO-Stty-0.03.tar.gz

Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'IO-Stty' version '0.03'
Building IO-Stty
  TODDR/IO-Stty-0.03.tar.gz
  C:\strawberry\perl\bin\perl.exe ./Build -- OK
Running Build test
t\00-load.t .......... 1/1 # Testing IO::Stty 0.03, Perl 5.012001, C:
\STRAWB~1\p
erl\bin\perl.exe
t\00-load.t .......... ok
t\98-pod-coverage.t .. skipped: Test::Pod::Coverage 1.08 required for
testing PO
D coverage
t\99-pod.t ........... skipped: Test::Pod 1.22 required for testing
POD
All tests successful.
Files=3, Tests=1,  0 wallclock secs ( 0.01 usr +  0.02 sys =  0.03
CPU)
Result: PASS
  TODDR/IO-Stty-0.03.tar.gz
  C:\strawberry\perl\bin\perl.exe ./Build test -- OK
Running Build install
Prepending C:\strawberry\cpan\build\IO-Stty-0.03-h085LM/blib/arch C:
\strawberry\
cpan\build\IO-Stty-0.03-h085LM/blib/lib to PERL5LIB for 'install'
Building IO-Stty
Installing C:\strawberry\perl\site\lib\IO\Stty.pm
Installing C:\strawberry\perl\site\bin\stty.bat
Installing C:\strawberry\perl\site\bin\stty.pl
  TODDR/IO-Stty-0.03.tar.gz
  C:\strawberry\perl\bin\perl.exe ./Build install --uninst 1 -- OK
Running install for module 'IO::Tty'
Running make for T/TO/TODDR/IO-Tty-1.10.tar.gz
  Has already been unwrapped into directory C:\strawberry\cpan\build
\IO-Tty-1.10
-VDQ56a
Could not make: Unknown error
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Running install for module 'IO::Pty'
Running make for T/TO/TODDR/IO-Tty-1.10.tar.gz
  Has already been unwrapped into directory C:\strawberry\cpan\build
\IO-Tty-1.10
-VDQ56a
Could not make: Unknown error
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

Komus udalo sie skorzystac z Expect pod Windowsem na Strawberry perl,
bez cygwina?
Technical Details
Message-ID: <da5be5d1-3ce3-44c4-9ee0-fd043d388a54@26g2000yqv.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!26g2000yqv.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!26g2000yqv.googlegroups.com!not-for-mail
From: badzio <badzio@gmail.com>
Newsgroups: pl.comp.lang.perl
Subject: Expect, IO::TTY i Windows
Date: Thu, 25 Nov 2010 12:47:38 -0800 (PST)
Organization: http://groups.google.com
Lines: 230
Message-ID: <da5be5d1-3ce3-44c4-9ee0-fd043d388a54@26g2000yqv.googlegroups.com>
NNTP-Posting-Host: 77.237.12.73
Mime-Version: 1.0
X-Trace: posting.google.com 1290718058 29674 127.0.0.1 (25 Nov 2010 20:47:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 25 Nov 2010 20:47:38 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 26g2000yqv.googlegroups.com; posting-host=77.237.12.73; posting-account=0vAyXgoAAAAat-SU4Ds2aaacIslBTn5Y
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit