Subject: kern/1643: /sys/compat/freebsd 'getppid' entry breaks kernel build
To: None <gnats-bugs@gnats.netbsd.org>
From: Davyd Norris <Davyd.Norris@fcollins.com.au>
List: netbsd-bugs
Date: 10/18/1995 13:12:06
>Number: 1643
>Category: kern
>Synopsis: /sys/compat/freebsd 'getppid' entry breaks kernel build
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 18 07:20:29 1995
>Last-Modified:
>Originator: Davyd Norris
>Organization:
Franklin Collins Pty. Ltd.
>Release: NetBSD-current 18-Oct-95 SUP
>Environment:
Pentium 90MHz, NCR SCSI controller, SMC PCI ether cards
System: NetBSD eolas.fcollins.com.au 1.0A NetBSD 1.0A (EOLAS) #0: Wed Aug 30 14:27:11 EST 1995 daffy@eolas.fcollins.com.au:/usr/src/sys/arch/i386/compile/EOLAS i386
>Description:
libcompat entries for freebsd incorrectly define the getppid syscall.
This causes a kernel build to fail with 'getppid' undefined symbol
>How-To-Repeat:
build a current i386 kernel with COMPAT_FREEBSD defined in config
>Fix:
*** syscalls.master Wed Oct 18 12:50:41 1995
--- syscalls.master.new Wed Oct 18 12:50:24 1995
***************
*** 100,104 ****
38 STD { int compat_43_freebsd_sys_stat(char *path, \
struct ostat *ub); } ostat
! 39 NOARGS { pid_t getppid(void); }
40 STD { int compat_43_freebsd_sys_lstat(char *path, \
struct ostat *ub); } olstat
--- 100,104 ----
38 STD { int compat_43_freebsd_sys_stat(char *path, \
struct ostat *ub); } ostat
! 39 NOARGS { pid_t sys_getppid(void); }
40 STD { int compat_43_freebsd_sys_lstat(char *path, \
struct ostat *ub); } olstat
>Audit-Trail:
>Unformatted: