From: Zhisong J. <jj...@dy...> - 2004-10-05 18:43:57
|
I'm trying to build a Expect.pm on solaris 9 1. download expect-1.15 and IO-tty-1.02 source from sourceforge 2. compile and install IO-tty , all OK, \ 2. compile expect-1.15, failed at make test $ perl Makefile.pl $ make $ make test "make test failed" , complain about Use of uninitialized value in ioctl at /usr/local/lib/perl5/site_perl/5.8.4/sun4-solaris-thread-multi-64/IO/Pty.pm line 119. warning: TIOCSCTTY failed, slave might not be set as controlling terminal: Invalid argument at /usr/local/lib/perl5/site_perl/5.8.4/sun4-solaris-thread-multi-64/IO/Pty.pm line 120. TIMEOUT looking into the source on Pty.pm , the relevent portion is: # Acquire a controlling terminal if this doesn't happen automatically if (defined TIOCSCTTY) { if (not defined ioctl( ${*$self}{'io_pty_slave'}, TIOCSCTTY, 0 )) { warn "warning: TIOCSCTTY failed, slave might not be set as controlling terminal: $!" if $^W; } } elsif (defined TCSETCTTY) { if (not defined ioctl( ${*$self}{'io_pty_slave'}, TCSETCTTY, 0 )) { warn "warning: TCSETCTTY failed, slave might not be set as controlling terminal: $!" if $^W; } } can somebody suggest a work around or is there exist a solution? thanks. Jason |