Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamlnet servers fail to start on Mac OSX
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-02 (18:08)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] ocamlnet servers fail to start on Mac OSX
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 Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
Phone: +49-6151-153855                  Fax: +49-6151-997714