Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!allegra!oliveb!Glacier!decwrl!sun!chuq From: chuq@sun.uucp (Chuq Von Rospach) Newsgroups: net.bugs.4bsd Subject: Re: netstat / YP incompatibility Message-ID: <3020@sun.uucp> Date: Thu, 21-Nov-85 14:06:22 EST Article-I.D.: sun.3020 Posted: Thu Nov 21 14:06:22 1985 Date-Received: Sat, 23-Nov-85 05:45:57 EST References: <865@wdl1.UUCP> Organization: Sun Micro -- NFS Consulting Group Lines: 25 > Index: ucb/netstat/*.c 4.2BSD > > Description: > When compiled with SUN yellow pages code present, dumps core. > > Cause: > Use of word "socket" as a variable name ("struct socket socket") > clashes with use of word "socket" as name of a system call, > causing call to "socket" inside yellow pages library to transfer > control to a data object, generally resulting in nonproductive > program behavior. > > Fix: > Find all occurences of the variable "socket" and change them to > something else, such as "wsocket". > In the vanilla NFS distribution we ship to vendors, the structure is renamed "struct socket s" to avoid this. The file involved is "ucb/netstat/inet.c". If you use the version shipped on the NFS tape you won't have a problem. -- :From catacombs of Castle Tarot: Chuq Von Rospach sun!chuq@decwrl.DEC.COM {hplabs,ihnp4,nsc,pyramid}!sun!chuq Let us now take the sacre oath. As of now, he is no longer an elephant!