Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!pyramid!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.unix-wizards Subject: Re: Talk and \"protocol not supported\" Message-ID: <6312@sun.uucp> Date: Tue, 19-Aug-86 03:48:52 EDT Article-I.D.: sun.6312 Posted: Tue Aug 19 03:48:52 1986 Date-Received: Wed, 20-Aug-86 08:32:01 EDT References: <3053@brl-smoke.ARPA> Organization: Sun Microsystems, Inc. Lines: 32 > When I try to talk to someone I get the screen cleared and then a > message "Bad Socket (43)" or somesuch. Barry's right, it is a crock. The proper punishment for putting out code that dumps the numerical value of "errno", instead of the appropriate message when it exists, is keelhauling. Behind a land yacht. If they haven't heard of "sys_errlist", what are they doing writing UNIX utilities? > When I looked this up in intro(2), I discovered that 43 is "Protocol not > supported". The system where this occurs is not on a network, although > we have been playing with the config file, trying to get this to work. > > Our config file is as follows: > ... > options INET The only place in a standard 4.2BSD kernel (I presume yours is standard, right?) that gives that error is the "socket" call, and it only gives that error if no protocol of the type asked for exists. "talk" asks for a socket of type SOCK_STREAM in address family AF_INET, and then for a socket of type SOCK_DGRAM in the same address family. The only way that can fail is if you haven't configured in Internet protocol support, but it's there in your config file. It sounds like your kernel build got fouled up somehow, and your kernel isn't in sync with your config file; make *sure* that the module "netinet/in_proto.c" was compiled to make "in_proto.o" and that this module was included in your system. Also make sure that the module "uipc_domain.o", compiled from "sys/uipc_domain.c", has "inetdomain" as an undefined ("nm uipc_domain.o | egrep inetdomain" should find this out). -- Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com (or guy@sun.arpa)