NetBSD Problem Report #43209
From jwodder@sdf.lonestar.org Sun Apr 25 18:43:38 2010
Return-Path: <jwodder@sdf.lonestar.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 7304663BA59
for <gnats-bugs@gnats.NetBSD.org>; Sun, 25 Apr 2010 18:43:38 +0000 (UTC)
Message-Id: <201004251843.o3PIhaC9009101@sdf.lonestar.org>
Date: Sun, 25 Apr 2010 18:43:36 GMT
From: jwodder@sdf.lonestar.org
Reply-To: jwodder@sdf.lonestar.org
To: gnats-bugs@gnats.NetBSD.org
Subject: misc/ttyrec gives "Out of pty's" error
X-Send-Pr-Version: 3.95
>Number: 43209
>Category: pkg
>Synopsis: misc/ttyrec gives "Out of pty's" error
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 25 18:45:00 +0000 2010
>Last-Modified: Tue Apr 27 20:05:33 +0000 2010
>Originator: jwodder@sdf.lonestar.org
>Release: NetBSD 4.0.1_PATCH
>Organization:
>Environment:
System: NetBSD sverige 4.0.1_PATCH NetBSD 4.0.1_PATCH (SDF.amd64) #0: Fri Apr 16 05:47:16 UTC 2010 root@mx:/var/src/sys/arch/amd64/compile/SDF.amd64 amd64
Architecture: x86_64
Machine: amd64
>Description:
Due (I believe) to the change in naming conventions for ptys on NetBSD 4.0,
ttyrec 1.0.8 no longer runs properly (giving an "Out of pty's" error) when
built from the developer's source without modification, and the version in
pkgsrc does not appear to address this problem. I've made a patch that
should allow it to build & run properly on NetBSD 4.0 using the openpty(3)
function.
>How-To-Repeat:
Compile misc/ttyrec from source and run "ttyrec"
>Fix:
diff -Naur ttyrec-1.0.8/Makefile ttyrec-1.0.8-sdf/Makefile
--- ttyrec-1.0.8/Makefile 2006-06-11 15:52:50.000000000 +0000
+++ ttyrec-1.0.8-sdf/Makefile 2010-01-09 17:22:26.000000000 +0000
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -O2
+CFLAGS = -O2 -DHAVE_openpty
VERSION = 1.0.8
TARGET = ttyrec ttyplay ttytime
@@ -10,7 +10,7 @@
all: $(TARGET)
ttyrec: ttyrec.o io.o
- $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
+ $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o -lutil
ttyplay: ttyplay.o io.o
$(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
diff -Naur ttyrec-1.0.8/ttyrec.c ttyrec-1.0.8-sdf/ttyrec.c
--- ttyrec-1.0.8/ttyrec.c 2006-06-11 15:52:50.000000000 +0000
+++ ttyrec-1.0.8-sdf/ttyrec.c 2010-01-09 17:21:38.000000000 +0000
@@ -71,7 +71,7 @@
#define _(FOO) FOO
#ifdef HAVE_openpty
-#include <libutil.h>
+#include <util.h>
#endif
#if defined(SVR4) && !defined(CDEL)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->pkg-manager
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Tue, 27 Apr 2010 20:05:33 +0000
Responsible-Changed-Why:
Patch up mangled PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.