Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] ocamlnet servers fail to start on Mac OSX

0 views
Skip to first unread message

Joel Reymont

unread,
Apr 2, 2007, 1:31:29 PM4/2/07
to Caml List
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", "")

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.

There's no problem running the examples on Linux.

Thanks, Joel

--
http://wagerlabs.com/

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Gerd Stolpmann

unread,
Apr 2, 2007, 2:09:39 PM4/2/07
to Joel Reymont
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
ge...@gerd-stolpmann.de http://www.gerd-stolpmann.de
Phone: +49-6151-153855 Fax: +49-6151-997714
------------------------------------------------------------

Joel Reymont

unread,
Apr 2, 2007, 2:15:09 PM4/2/07
to Gerd Stolpmann

On Apr 2, 2007, at 7:08 PM, Gerd Stolpmann wrote:

> 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?

I disabled IPv6 in network preferences after getting this error but I
still get it.

I use IPv4 addressing.

--
http://wagerlabs.com/

0 new messages