Skip Menu |

This queue is for tickets about the IO-Tty CPAN distribution.

Report information
The Basics
Id: 42333
Status: resolved
Priority: 0/
Queue: IO-Tty

People
Owner: Nobody in particular
Requestors: chris [...] bingosnet.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.07
Fixed in: 1.08



Subject: Test fails on FreeBSD 6.4 and 7.1
Date: Mon, 12 Jan 2009 16:55:59 +0000
To: bug-IO-Tty [...] rt.cpan.org
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
Hi, I've recent built CPAN smoke boxes with the latest FreeBSD releases 6.4 and 7.1 IO::Tty appears to be broken on these latest releases. Test reports: http://www.nntp.perl.org/group/perl.cpan.testers/3027049 http://www.nntp.perl.org/group/perl.cpan.testers/3032884 http://www.nntp.perl.org/group/perl.cpan.testers/3032955 http://www.nntp.perl.org/group/perl.cpan.testers/3037929 Those are 6.4, but I have confirmed today that the problem exists on 7.1 as well. I found the following ticket for the FreeBSD Ports p5-IO-Tty package: http://www.freebsd.org/cgi/query-pr.cgi?pr=128941 As described removing -DHAVE_UNLOCKPT from the Makefile does indeed fix the issue. Many thanks, -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Show quoted text
cpan> test IO::Tty
Running test for module IO::Tty Running make for R/RG/RGIERSIG/IO-Tty-1.07.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/R/RG/RGIERSIG/IO-Tty-1.07.tar.gz ok Scanning cache /root/.cpan/build for sizes Deleting from cache: /root/.cpan/build/Catalyst-Plugin-Authentication-0.10008 (10.1>10.0 MB) x IO-Tty-1.07/ x IO-Tty-1.07/ChangeLog x IO-Tty-1.07/Makefile.PL x IO-Tty-1.07/MANIFEST x IO-Tty-1.07/META.yml x IO-Tty-1.07/Pty.pm x IO-Tty-1.07/README x IO-Tty-1.07/test.pl x IO-Tty-1.07/try x IO-Tty-1.07/Tty.pm x IO-Tty-1.07/Tty.xs CPAN.pm: Going to build R/RG/RGIERSIG/IO-Tty-1.07.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()...... FOUND. Looking for openpty()...... FOUND. Looking for ptsname()...... FOUND. Looking for ptsname_r().... not found. Looking for sigaction().... FOUND. Looking for strlcpy()...... FOUND. Looking for ttyname()...... FOUND. Looking for unlockpt()..... FOUND. Looking for libutil.h...... 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...... 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 +B2400 +B300 -B307200 +B38400 +B460800 +B4800 +B50 +B57600 +B600 +B75 +B76800 +B 9600 +BRKINT -BS0 -BS1 -BSDLY -CBAUD -CBAUDEXT +CBRK +CCTS_OFLOW -CDEL +CDSUSP +CEOF +CEOL -CEOL2 +CEOT +CERASE -CESC +CFLUSH -CIBAUD -CIBAUDEXT +CINTR +CKIL L +CLNEXT +CLOCAL -CNSWTCH -CNUL +CQUIT -CR0 -CR1 -CR2 -CR3 -CRDLY +CREAD +CRPRNT +CRTSCTS -CRTSXOFF +CRTS_IFLOW +CS5 +CS6 +CS7 +CS8 +CSIZE +CSTART +CSTOP +C STOPB +CSUSP -CSWTCH +CWERASE -DEFECHO -DIOC -DIOCGETP -DIOCSETP -DOSMODE +ECHO +ECHOCTL +ECHOE +ECHOK +ECHOKE +ECHONL +ECHOPRT +EXTA +EXTB -FF0 -FF1 -FFDLY -FIORDCHK +FLUSHO +HUPCL +ICANON +ICRNL +IEXTEN +IGNBRK +IGNCR +IGNPAR +IMAXBEL +INLCR +INPCK +ISIG +ISTRIP -IUCLC +IXANY +IXOFF +IXON -KBENABLED -LDCHG -LDC LOSE -LDDMAP -LDEMAP -LDGETT -LDGMAP -LDIOC -LDNMAP -LDOPEN -LDSETT -LDSMAP -LOBLK +NCCS -NL0 -NL1 -NLDLY +NOFLSH +OCRNL -OFDEL -OFILL -OLCUC +ONLCR +ONLRET +ONOCR +OPOST -PAGEOUT +PARENB -PAREXT +PARMRK +PARODD +PENDIN -RCV1EN -RTS_TOG -TAB0 -TAB1 -TAB2 -TAB3 -TABDLY -TCDSET -TCFLSH -TCGETA -TCGETS +TCIFLUSH +TC IOFF +TCIOFLUSH +TCION +TCOFLUSH +TCOOFF +TCOON +TCSADRAIN +TCSAFLUSH +TCSANOW -TCSBRK -TCSETA -TCSETAF -TCSETAW -TCSETCTTY -TCSETS -TCSETSF -TCSETSW -TCXONC -TERM_D40 -TERM_D42 -TERM_H45 -TERM_NONE -TERM_TEC -TERM_TEX -TERM_V10 -TERM_V61 +TIOCCBRK +TIOCCDTR +TIOCCONS +TIOCEXCL +TIOCFLUSH -TIOCGETC +TIOCGETD -TIO CGETP -TIOCGLTC +TIOCGPGRP -TIOCGSID -TIOCGSOFTCAR +TIOCGWINSZ -TIOCHPCL -TIOCKBOF -TIOCKBON -TIOCLBIC -TIOCLBIS -TIOCLGET -TIOCLSET +TIOCMBIC +TIOCMBIS +TIO CMGET +TIOCMSET +TIOCM_CAR +TIOCM_CD +TIOCM_CTS +TIOCM_DSR +TIOCM_DTR +TIOCM_LE +TIOCM_RI +TIOCM_RNG +TIOCM_RTS +TIOCM_SR +TIOCM_ST +TIOCNOTTY +TIOCNXCL +TIO COUTQ -TIOCREMOTE +TIOCSBRK +TIOCSCTTY +TIOCSDTR -TIOCSETC +TIOCSETD -TIOCSETN -TIOCSETP -TIOCSIGNAL -TIOCSLTC +TIOCSPGRP -TIOCSSID -TIOCSSOFTCAR +TIOCSTART +TIOCSTI +TIOCSTOP +TIOCSWINSZ -TM_ANL -TM_CECHO -TM_CINVIS -TM_LCF -TM_NONE -TM_SET -TM_SNL +TOSTOP -VCEOF -VCEOL +VDISCARD +VDSUSP +VEOF +VEOL +VEOL2 +VERA SE +VINTR +VKILL +VLNEXT +VMIN +VQUIT +VREPRINT +VSTART +VSTOP +VSUSP -VSWTCH -VT0 -VT1 -VTDLY +VTIME +VWERASE -WRAP -XCASE -XCLUDE -XMT1EN -XTABS Show quoted text
>>> Configuration looks good! <<<
Writing IO::Tty::Constant.pm... DEFINE = -DHAVE_GRANTPT -DHAVE_LIBUTIL_H -DHAVE_OPENPTY -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_STRLCPY -DHAVE_TERMIOS_H -DHAVE_TTYNAME -DHAVE_UNLOCKPT 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 /usr/local/bin/perl /usr/local/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap Tty.xs > Tty.xsc && mv Tty.xs c Tty.c cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/ usr/local/include -O2 -fno-strict-aliasing -pipe -march=pentiumpro -DVERSION=\"1.07\" -DXS_VERSION=\"1.07\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mac h/CORE" -DHAVE_GRANTPT -DHAVE_LIBUTIL_H -DHAVE_OPENPTY -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_STRLCPY -DHAVE_TERMIOS_H -DHAVE_TTYNAME -DHAVE_UNLOCKPT Tty.c Running Mkbootstrap for IO::Tty () chmod 644 Tty.bs rm -f blib/arch/auto/IO/Tty/Tty.so cc -shared -L/usr/local/lib Tty.o -o blib/arch/auto/IO/Tty/Tty.so -lutil chmod 755 blib/arch/auto/IO/Tty/Tty.so cp Tty.bs blib/arch/auto/IO/Tty/Tty.bs chmod 644 blib/arch/auto/IO/Tty/Tty.bs Manifying blib/man3/IO::Tty::Constant.3 Manifying blib/man3/IO::Tty.3 Manifying blib/man3/IO::Pty.3 /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl 1..4 Configuration: -DHAVE_GRANTPT -DHAVE_LIBUTIL_H -DHAVE_OPENPTY -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_STRLCPY -DHAVE_TERMIOS_H -DHAVE_TTYNAME -DHAVE_UNLOCKPT Checking for appropriate ioctls: TIOCNOTTY TIOCSCTTY Checking that returned fd's don't clash with stdin/out/err... trying openpty()... trying grantpt()... trying unlockpt()... trying ptsname()... Cannot create a new IO::Tty from fd 4: Bad file descriptor at test.pl line 42 child exit=2304 not ok 1 # Test failed at test.pl line 52. Checking if child gets pty as controlling terminal... trying openpty()... trying grantpt()... trying unlockpt()... trying ptsname()... Cannot create a new IO::Tty from fd 4: Bad file descriptor at test.pl line 58 *** Error code 9 Stop in /root/.cpan/build/IO-Tty-1.07. /usr/bin/make test -- NOT OK
I forgot: free# perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=freebsd, osvers=7.0-release, archname=i386-freebsd-64int uname='freebsd free.pieroegianni.com 7.0-release freebsd 7.0-release #0: thu apr 10 18:16:35 cest 2008 root@:usrobjfastersrcsysnonsolosoft7 i386 ' config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/usr/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -Doptimize=-O2 -fno-strict-aliasing -pipe -march=pentiumpro -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=y, bincompat5005=undef Compiler: cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include', optimize='-O2 -fno-strict-aliasing -pipe -march=pentiumpro', cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.2.1 20070719 [FreeBSD]', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -Wl,-E -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lgdbm -lm -lcrypt -lutil perllibs=-lm -lcrypt -lutil libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.8.8/mach/CORE' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MYMALLOC PERL_MALLOC_WRAP USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO Locally applied patches: defined-or Built under freebsd Compiled at Apr 11 2008 13:27:47 @INC: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 . free# uname -a FreeBSD free 7.1-STABLE FreeBSD 7.1-STABLE #3: Wed Jan 21 12:08:37 CET 2009 nonsolosoft@diff.org:/usr/obj/faster/src/sys/GENERIC i386