NetBSD Problem Report #25854

Received: (qmail 9475 invoked by uid 605); 7 Jun 2004 10:57:10 -0000
Message-Id: <1086605644.327554.18238.nullmailer@schroeder.singeklub.invalid>
Date: Mon, 07 Jun 2004 12:54:04 +0200
From: Andreas Wiese <awiese@despammed.com>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: awiese@despammed.com
To: gnats-bugs@gnats.NetBSD.org
Subject: ptmx on NetBSD-current messed up BasiliskII
X-Send-Pr-Version: 3.95

>Number:         25854
>Category:       pkg
>Synopsis:       ptmx on NetBSD-current messed up BasiliskII
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tv
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 07 10:58:00 +0000 2004
>Closed-Date:    Sat Jul 17 01:57:29 +0000 2004
>Last-Modified:  Sat Jul 17 01:57:29 +0000 2004
>Originator:     Andreas Wiese
>Release:        NetBSD 2.0F
>Organization:
Linux User Group Halberstadt
>Environment:


System: NetBSD schroeder.singeklub.invalid 2.0F NetBSD 2.0F (SCHROEDER) #4: Fri Jun 4 22:24:30 CEST 2004 root@schroeder.singeklub.invalid:/sys/arch/i386/compile/SCHROEDER i386
Architecture: i386
Machine: i386
>Description:
The ptmx support of NetBSD-current messed up the BasiliskII package.  Its
build aborts with the following message:

#v+
gcc -I/usr/pkg/include -I../include -I. -I../uae_cpu -DHAVE_CONFIG_H  -DOS_netb
d -DUNALIGNED_PROFITABLE -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASEEMBLY
 -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE -DFPU_IEEE -D_REENTRANT -DDATADIR=\"/u
sr/pkg/share/BasiliskII\" -O2 -I/usr/pkg/include -I/usr/X11R6/include -fomit-fra
me-pointer -c sshpty.c -o obj/sshpty.o
sshpty.c: In function `pty_allocate':
sshpty.c:147: error: `mysig_t' undeclared (first use in this function)
sshpty.c:147: error: (Each undeclared identifier is reported only once
sshpty.c:147: error: for each function it appears in.)
sshpty.c:147: error: parse error before "old_signal"
sshpty.c:154: error: `old_signal' undeclared (first use in this function)
sshpty.c:154: error: `SIGCHLD' undeclared (first use in this function)
sshpty.c:154: error: `SIG_DFL' undeclared (first use in this function)
sshpty.c:182: error: `I_PUSH' undeclared (first use in this function)
gmake: *** [obj/sshpty.o] Error 1
*** Error code 2
[...]
#v-

The problems with SIGCHLD and SIG_DFL errors can obviously be fixed by
including <signal.h> at the beginning of the file, but all other problems
stay.  I couldn't find any header file including a typedef for mysig_t or
a macro I_PUSH.  I guessed mysig_t is just a 'typedef void (*mysigl_t)(int)'
but then you get 'assignment makes pointer from integer without a cast' at
approx. line 157 (after doing the changes).  That's because of the missing
declaration of mysignal().  Besides 'configure', 'config.log' and
'autom4e-2.5x.cache/output.0' I didn't even find the file where it is
_defined_.
>How-To-Repeat:
Try to compile BasiliskII on NetBSD-current.
>Fix:
You can make the package build by commenting out the line

#define HAVE_DEV_PTMX 1

in src/Unix/config.h
>Release-Note:
>Audit-Trail:

From: christos@zoulas.com (Christos Zoulas)
To: awiese@despammed.com, gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: Re: pkg/25854: ptmx on NetBSD-current messed up BasiliskII
Date: Mon, 7 Jun 2004 08:32:21 -0400

 On Jun 7, 12:54pm, awiese@despammed.com (Andreas Wiese) wrote:
 -- Subject: pkg/25854: ptmx on NetBSD-current messed up BasiliskII


 The proper fix is to kill the streams stuff for NetBSD since it is not
 needed, and leave the open to the ptmx device.

 so:

 #ifdef I_PUSH
 ...

 #endif

 christos
Responsible-Changed-From-To: pkg-manager->tv 
Responsible-Changed-By: recht 
Responsible-Changed-When: Mon Jun 7 22:53:05 UTC 2004 
Responsible-Changed-Why:  
over to maintainer 

From: Juan Romero Pardines <xtraeme@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/25854 CVS commit: pkgsrc/emulators/BasiliskII
Date: Sat, 17 Jul 2004 01:56:38 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	xtraeme
 Date:		Sat Jul 17 01:56:38 UTC 2004

 Modified Files:
 	pkgsrc/emulators/BasiliskII: Makefile distinfo
 	pkgsrc/emulators/BasiliskII/patches: patch-ad

 Log Message:
 Make this build on NetBSD -current with /dev/ptmx, closes PR pkg/25854.


 To generate a diff of this commit:
 cvs rdiff -r1.15 -r1.16 pkgsrc/emulators/BasiliskII/Makefile
 cvs rdiff -r1.6 -r1.7 pkgsrc/emulators/BasiliskII/distinfo
 cvs rdiff -r1.1 -r1.2 pkgsrc/emulators/BasiliskII/patches/patch-ad

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

State-Changed-From-To: open->closed 
State-Changed-By: xtraeme 
State-Changed-When: Sat Jul 17 01:57:18 UTC 2004 
State-Changed-Why:  
Fixed. 
>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.