From owner-freebsd-stable@FreeBSD.ORG Sat Jul 19 21:56:11 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B7EB106566B for ; Sat, 19 Jul 2008 21:56:11 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 4FE618FC1A for ; Sat, 19 Jul 2008 21:56:10 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.2) with ESMTP id m6JLUvJE030247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 19 Jul 2008 16:30:57 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.2/Submit) id m6JLUuVx030244; Sat, 19 Jul 2008 16:30:56 -0500 (CDT) (envelope-from dan) Date: Sat, 19 Jul 2008 16:30:56 -0500 From: Dan Nelson To: Unga Message-ID: <20080719213056.GE19044@dan.emsphone.com> References: <20080719120434.GK62764@server.vk2pj.dyndns.org> <355179.86182.qm@web57003.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <355179.86182.qm@web57003.mail.re3.yahoo.com> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Peter Jeremy , freebsd-stable@freebsd.org Subject: Re: Pseudoterminals increase: compilation error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2008 21:56:11 -0000 In the last episode (Jul 19), Unga said: > On Sat, 7/19/08, Peter Jeremy wrote: > > On 2008-Jul-18 18:38:36 -0700, Unga wrote: > > >As per FAQ, > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html, > > > I tried to increase the number of ptys: "10.19.1 Build and > > > install a new kernel with the line in the configuration file: > > > device pty N where N is the number of requested pseudoterminals." > > > > That has been obsolete for a while. Do you actually have a problem > > with insufficient PTYs? > > Looks like, may not be. > > The Problem: > expect -c "spawn ls" > spawn ls > The system has no more ptys. Ask your system administrator to create > more. while executing "spawn ls" > > It now seems to be a permission problem as explained in > http://expect.nist.gov/FAQ.html#q67 . > > Still investigating. Any help will be very much appreciated. Expect's error message doesn't say anything except "something isn't working but I won't tell you what". Run truss -o truss.log -f expect -c "spawn ls" and determine which syscall is failing, with what error number, just before expect prints its "no more ptys" message. That will tell you whether it's a permissions issue, or something else. If there are no obvious errors, post a part of the log. Also, what version of expect are you running? Versions between 5.38.0_1 and 5.43.0_2 had a bug in the port Makefile that limited the number of ptys expect could see. See http://www.freebsd.org/cgi/query-pr.cgi?pr=108311 . -- Dan Nelson dnelson@allantgroup.com