NetBSD Problem Report #22885

Received: (qmail 6879 invoked by uid 605); 22 Sep 2003 09:51:01 -0000
Message-Id: <20030922095058.C5B5811153@narn.netbsd.org>
Date: Mon, 22 Sep 2003 09:50:58 +0000 (UTC)
From: jonathan@perkin.org.uk
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jonathan@perkin.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: Trivial fix to get misc/ttyrec to build on SunOS
X-Send-Pr-Version: www-1.0

>Number:         22885
>Category:       pkg
>Synopsis:       Trivial fix to get misc/ttyrec to build on SunOS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 22 09:52:00 +0000 2003
>Closed-Date:    Mon Sep 22 09:58:12 +0000 2003
>Last-Modified:  Mon Sep 22 09:59:01 +0000 2003
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build1 5.9 Generic_112233-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
ttyrec needs -DSYSV on Solaris to pick up the correct headers.
>How-To-Repeat:
===> Building for ttyrec-1.0.4
/home/jonp/pkg/gcc-3.3/bin/gcc -O   -c ttyrec.c
ttyrec.c: In function `finish':
ttyrec.c:193: error: storage size of `status' isn't known
ttyrec.c: In function `getmaster':
ttyrec.c:337: error: `O_RDWR' undeclared (first use in this function)
ttyrec.c:337: error: (Each undeclared identifier is reported only once
ttyrec.c:337: error: for each function it appears in.)
ttyrec.c:344: error: `R_OK' undeclared (first use in this function)
ttyrec.c:344: error: `W_OK' undeclared (first use in this function)
ttyrec.c: In function `getslave':
ttyrec.c:389: error: `O_RDWR' undeclared (first use in this function)
ttyrec.c:398: error: `TIOCSCTTY' undeclared (first use in this function)
*** Error code 1
>Fix:
http://www.perkin.org.uk/projects/netbsd/ttyrec.diff

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/misc/ttyrec/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	2003/07/17 21:49:59	1.4
+++ Makefile	2003/09/22 09:50:11
@@ -8,6 +8,12 @@
 HOMEPAGE=	http://namazu.org/~satoru/ttyrec/
 COMMENT=	ttyrec is a tty recorder

+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+CFLAGS+=	-DSVR4
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/ttyplay ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/ttyrec ${PREFIX}/bin
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Mon Sep 22 05:58:04 EDT 2003 
State-Changed-Why:  
Committed, thanks! 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22885 CVS commit: pkgsrc/misc/ttyrec
Date: Mon, 22 Sep 2003 09:57:59 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Mon Sep 22 09:57:58 UTC 2003

 Modified Files:
 	pkgsrc/misc/ttyrec: Makefile

 Log Message:
 Fix build on Solaris. From Jonathan Perkin in PR 22885.


 To generate a diff of this commit:
 cvs rdiff -r1.4 -r1.5 pkgsrc/misc/ttyrec/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.