*BSD News Article 40383


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!Germany.EU.net!EU.net!sun4nl!news.iaf.nl!iafnl.iaf.nl!yedi!wilko
From: wilko@yedi.iaf.nl (Wilko Bulte)
Subject: Re: Where's the patch for Netscape on FreeBSD 1.1.5.1??
Organization: Private FreeBSD site - Arnhem - The Netherlands
Message-ID: <D1w8zM.LA@yedi.iaf.nl>
References: <mldD1u5D4.DM2@netcom.com>
Date: Wed, 4 Jan 1995 18:35:46 GMT
Lines: 109

mld@netcom.com (Matthew Deter) writes:

>It is rumored (in email to me) that a patch exists to run Netscape on
>1151.  True?  Where is it?

>   $$    Matthew Deter -- mld@netcom.com

True, here it is:

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
Status: OR

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.