SunOS 4.1 talk

Jonathan I. Kamens jik at athena.mit.edu
Wed Apr 10 13:23:08 AEST 1991


In article <kQ0Ycqx at quack.sac.ca.us>, mrapple at quack.sac.ca.us (Nick Sayer) writes:
|> I recently grabbed the in.talkd and talk sources from bsd-sources on
|> uunet.uu.net, but they won't compile. The trouble is that SunOS 4.1.1
|> doesn't define the structure "osockaddr". Does anyone know what
|> include file I can snarf from uunet, or the format of this struct
|> so I can stick it in a local "patch.h" I include in
|> <protocols/talkd.h>?

  The bsd-sources on uunet.uu.net are designed to work with the 4.3reno header
files and library, which has stuff that isn't in SunOS 4.1.1.

  Grab the version of talk in /pub/bsd-sources/ucb/talk.tar.Z and talkd in
/pub/bsd-sources/etc/talkd.tar.Z on gatekeeper.dec.com.  That's the 4.3bsd
version, which should compile fine under SunOS, although I had to make the
patches at the end of this message to it, because htonl, ntohl, etc. are
noop macros defined in <netinet/in.h>, rather than library functions, on my
system.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710
-- 
*** /tmp/,RCSt1022155	Tue Apr  9 23:23:55 1991
--- talkd/print.c	Tue Apr  9 23:22:36 1991
***************
*** 24,30 ****
  #include <stdio.h>
  #include <syslog.h>
  #include <sys/param.h>
! 
  #include <protocols/talkd.h>
  
  static	char *types[] =
--- 24,30 ----
  #include <stdio.h>
  #include <syslog.h>
  #include <sys/param.h>
! #include <netinet/in.h>
  #include <protocols/talkd.h>
  
  static	char *types[] =
*** /tmp/,RCSt1022155	Tue Apr  9 23:24:04 1991
--- talkd/table.c	Tue Apr  9 23:21:38 1991
***************
*** 31,36 ****
--- 31,37 ----
  #include <sys/time.h>
  #include <syslog.h>
  #include <sys/param.h>
+ #include <netinet/in.h>
  
  #include <protocols/talkd.h>
  
*** /tmp/,RCSt1022165	Tue Apr  9 23:24:24 1991
--- talk/get_names.c	Tue Apr  9 23:19:48 1991
***************
*** 19,27 ****
  static char sccsid[] = "@(#)get_names.c	5.5 (Berkeley) 6/29/88";
  #endif /* not lint */
  
! #include "talk.h"
  #include <sys/param.h>
- #include <protocols/talkd.h>
  #include <pwd.h>
  
  char	*getlogin();
--- 19,26 ----
  static char sccsid[] = "@(#)get_names.c	5.5 (Berkeley) 6/29/88";
  #endif /* not lint */
  
! #include "talk_ctl.h"
  #include <sys/param.h>
  #include <pwd.h>
  
  char	*getlogin();



More information about the Comp.unix.questions mailing list