fb68 Cannot create a new IO::Tty from fd 4: Bad file descriptor - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old April 3rd, 2009, 10:46
swaprava swaprava is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot create a new IO::Tty from fd 4: Bad file descriptor

Hi all,

Since my perl scripts were not running properly, I reinstalled the perl modules after deinstalling the older version. Now, even the scripts which were running with the older version of the perl modules stopped working. The error messages are as shown below:

========== TEST 1 ==========
./LLA_DADSuccess.seq -pkt LLA_SAA.def -log 1.HTML -it "Address Autoconfiguration and Duplicate Address Detection"
Start Capturing Packets (Link0)
*** Target initialization phase ***
Wait 15 second
Cannot create a new IO::Tty from fd 4: Bad file descriptor at /usr/local/lib/perl5/site_perl/5.8.8/V6evalRemote.pm line 582
reboot_async.rmt returned status 9
*** Target testing phase ***
==========================
===================================
/usr/local/lib/perl5/site_perl/5.8.8/V6evalRemote.pm line 582 is:

$Remote = Expect->spawn("$TermCmd");
===================================
$TermCmd returns cu -l cuad0

I checked it by printing it.

Can you please let me know what is the problem here? I searched in Google and found one discussion forum:
http://kerneltrap.org/index.php?q=ma.../11/17/4144314 , which reports similar issue.

if this is a problem with the latest version of the perl modules, how should I go back to the older version?

Thanks in advance,

Swaprava
Reply With Quote
  #2  
Old April 3rd, 2009, 11:06
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,935
Thanks: 30
Thanked 1,930 Times in 1,351 Posts
Default

Have you tried updating ports and upgrading to perl 5.8.9, recursively rebuilding all that depends on it?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old April 3rd, 2009, 11:59
swaprava swaprava is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Have you tried updating ports and upgrading to perl 5.8.9, recursively rebuilding all that depends on it?
Yes, I did reinstalling, not 5.8.9, but 5.8.8

However that doesn't seem to be the problem: I can't issue the following command and log into the router that is connected to the serial port of the FreeBSD server:

cu -l /dev/cuad0

this seems to be the problem why the script is also failing. Any way out?
Reply With Quote
  #4  
Old April 3rd, 2009, 12:02
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,935
Thanks: 30
Thanked 1,930 Times in 1,351 Posts
Default

Are you sure it's 5.8.8? That version is no longer in the ports tree, so a reinstall of lang/perl5.8 using an up-to-date ports tree should have given you 5.8.9 (perl -v).
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #5  
Old April 3rd, 2009, 12:11
swaprava swaprava is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Are you sure it's 5.8.8? That version is no longer in the ports tree, so a reinstall of lang/perl5.8 using an up-to-date ports tree should have given you 5.8.9 (perl -v).
[root@swaprava /dev]# perl -v

This is perl, v5.8.8 built for i386-freebsd-64int
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

This is my perl. I went to the lang/perl5.8.8/ , did make install clean, and this resulted !!
Reply With Quote
  #6  
Old April 3rd, 2009, 12:19
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,935
Thanks: 30
Thanked 1,930 Times in 1,351 Posts
Default

Ok, just checking. In a recent ports tree lang/perl5.8.8 doesn't exist anymore. You could still try a force-reinstall of p5-\* or a reinstall of ports depending on perl.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #7  
Old April 6th, 2009, 14:25
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Quote:
Originally Posted by swaprava View Post
This is my perl. I went to the lang/perl5.8.8/ , did make install clean, and this resulted !!
Your ports tree is out of date. Update it before updating perl.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create the kannel user? sugar Installation and Maintenance of FreeBSD Ports or Packages 6 June 19th, 2009 16:44
Open file descriptors on a file jostrowski Userland Programming & Scripting 2 March 19th, 2009 02:50
Mplayer in tty* CdK1 Multimedia 1 January 23rd, 2009 08:26
Create Poll feature graudeejs Feedback 11 January 21st, 2009 23:32
[Solved] how to auto create pdf on demand graudeejs Off-Topic 1 January 3rd, 2009 13:23


All times are GMT +1. The time now is 19:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0