From owner-freebsd-questions Thu Nov 18 3:41: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cr31617-a.lndn1.on.wave.home.com (cr31617-a.lndn1.on.wave.home.com [24.112.227.163]) by hub.freebsd.org (Postfix) with ESMTP id 5081715105 for ; Thu, 18 Nov 1999 03:40:41 -0800 (PST) (envelope-from jbailie@cr31617-a.lndn1.on.wave.home.com) Received: (from jbailie@localhost) by cr31617-a.lndn1.on.wave.home.com (8.9.3/8.9.3) id GAA01711 for freebsd-questions@freebsd.org; Thu, 18 Nov 1999 06:50:47 -0500 (EST) (envelope-from jbailie) Date: Thu, 18 Nov 1999 06:50:47 -0500 From: James Bailie To: freebsd-questions@freebsd.org Subject: Perl socketpair() failing Message-ID: <19991118065047.A1636@cr31617-a.lndn1.on.wave.home.co> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The socketpair function of the standard Perl built with my 4.0-CURRENT system always fails. The snippet below dies with, "Protocol not supported," leading one to think perhaps the wrong constants were used, but they work fine in C, and I do believe Socket.pm merely imports what's in sys/socket.h. Can anyone enlighten me here if this is a 4.0-CURRENT configuration issue or not? use Socket; unless( socketpair ONE, TWO, AF_LOCAL, SOCK_STREAM, 0 ) { die "socketpair: $!\n"; } -- James Bailie http://members.home.net/jazzturk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message