*BSD News Article 39160


Return to BSD News archive

Xref: sserve comp.os.386bsd.apps:1539 comp.os.386bsd.development:2790 comp.os.386bsd.misc:4344
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!newshost.marcam.com!news.mathworks.com!panix!not-for-mail
From: zellis@panix.com (Brian Ellis)
Newsgroups: comp.os.386bsd.apps,comp.os.386bsd.development,comp.os.386bsd.misc
Subject: FreeBSD 1.x and Netscape
Date: 9 Dec 1994 01:18:34 -0500
Organization: Zellis Consulting
Lines: 89
Message-ID: <3c8srq$io8@panix3.panix.com>
NNTP-Posting-Host: panix3.panix.com
Keywords: Netscape, FreeBSD

Netscape is such a cool must-have piece of software that I had to have
it on my FreeBSD 1.1.5.1 system. If you've tried that, you may notice
that the binary distribution of netscape for unknown-bsd almost works,
but dumps core on a bad system call. It turns out that the bad system
calls are stat() and fstat() which have new IDs under 4.4Lite. I have
a very short patch to 1.x kernels that works around the problem.

Here's what you have to do:

1. in /sys/kern :
	apply the patch
	make init_sysent.c	(to rebuild the syscall table)

2. clean out kern object files from your compile directory :

	rm /sys/compile/YOUR_MACHINE_NAME/kern*.o

3. rebuild your kernel and reboot

Now, if only I could get Netscape to quit complaining about undefined
keysyms (yes, I read the documentation and MCOM's suggested fix doesn't
work).

-brian

             ___                                   Brian Ellis
               /  _  | | .  _                      Zellis Consulting
|_   _ .      /  /_) | | | (_`    _  _  .__        212.388.1715, fax 1602
|_) |  |  @  /__ \_  | | | ._) . (_ (_) |||        175 E 2 st 4A, NY NY 10009
------------------------------------------------------------------------------

----------------------------- cut here ------------------------------
*** syscalls.master
--- syscalls.master
***************
*** 265,270 ****
  185	UNIMPL	0 nosys
  186	UNIMPL	0 nosys
  187	UNIMPL	0 nosys
! 188	UNIMPL	0 nosys
! 189	UNIMPL	0 nosys
  190	UNIMPL	0 nosys
--- 265,270 ----
  185	UNIMPL	0 nosys
  186	UNIMPL	0 nosys
  187	UNIMPL	0 nosys
! 188	STD	2 ostat
! 189	STD	2 ofstat
  190	UNIMPL	0 nosys
*** kern_descrip.c	Thu Dec  8 23:34:06 1994
--- kern_descrip.c	Fri Dec  9 00:51:25 1994
***************
*** 401,406 ****
--- 401,415 ----
  	return (error);
  }
  
+ int
+ ofstat(p, uap, retval)
+ 	struct proc *p;
+ 	register struct fstat_args *uap;
+ 	int *retval;
+ {
+ 	return fstat(p, uap, retval);
+ }
+ 
  /*
   * Allocate a file descriptor for the process.
   */
*** vfs_syscalls.c
--- vfs_syscalls.c
***************
*** 1116,1121 ****
--- 1116,1130 ----
  	return (error);
  }
  
+ int
+ ostat(p, uap, retval)
+ 	struct proc *p;
+ 	register struct stat_args *uap;
+ 	int *retval;
+ {
+ 	return stat(p, uap, retval);
+ }
+ 
  /*
   * Lstat system call.
   * This version does not follow links.