From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=AWL,RCVD_IN_SORBS_WEB autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 3EFE9BC0A for ; Mon, 2 Apr 2007 20:08:33 +0200 (CEST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.179]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l32I8WB6004218 for ; Mon, 2 Apr 2007 20:08:33 +0200 Received: from [84.59.110.37] (helo=gate.lan.gerd-stolpmann.de) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1HYQxE1unn-0003yA; Mon, 02 Apr 2007 20:08:32 +0200 Received: from flakew.lan.gerd-stolpmann.de (fw.lan.gerd-stolpmann.de [192.168.1.1]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 303EEC105; Mon, 2 Apr 2007 20:08:32 +0200 (CEST) Subject: Re: [Caml-list] ocamlnet servers fail to start on Mac OSX From: Gerd Stolpmann To: Joel Reymont Cc: Caml List In-Reply-To: <7373212D-5736-4D2A-BB67-BEB7F818F56F@gmail.com> References: <7373212D-5736-4D2A-BB67-BEB7F818F56F@gmail.com> Content-Type: text/plain Date: Mon, 02 Apr 2007 20:08:31 +0200 Message-Id: <1175537311.29378.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+8rXQ9HiqMr78Y+EQAioE7MwRjs1gB1V6jcI+ lxpoBOp76UXlnD9kFzxVold52sM6LqmNTzJsPAR9r4Q/ZNZ8aJ ae7Qmqf0DlE75dhsJ8K440EF3AQM/IV X-Miltered: at concorde with ID 461146A0.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlnet:01 osx:01 gerd:01 stolpmann:01 netcgi:01 workload:01 descriptors:01 macos:01 macos:01 gerd:01 stolpmann:01 viktoriastr:01 64293:01 darmstadt:01 6151:01 Am Montag, den 02.04.2007, 18:29 +0100 schrieb Joel Reymont: > I'm tried to bring up examples/cgi/netcgi2-plex/netplex and got a > bunch of messages like this, plus a runaway server continually > forking itself. > > [Mon Apr 2 17:30:51 2007] [netplex.controller] [crit] Exception in > workload manager, function adjust: Unix.Unix_error(15, "socketpair", "") 15 is EMFILE - too many file descriptors. Maybe you have to increase some limit. Or this is a follow-up error. > I also got Unix.Unix_error(49, "", "") when trying to start the > nethttpd server example. Error 49 is "Cannot bind to an address", I > believe. No, 49 is EAFNOSUPPORT - address family not supported. I do not know MacOS very much, but can it be some additional component needs to be installed? Do you use an IPv4 or IPv6 address? You can easily translate the numbers by: # (Obj.magic 49:Unix.error);; - : Unix.error = Unix.EAFNOSUPPORT They are the same on all platforms. > There's no problem running the examples on Linux. Yeah, I'm primarily developing on Linux, but there is nothing Linux-specific. From time to time I am testing on NetBSD or FreeBSD which are quite similar to the MacOS kernel. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------