From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA31290; Wed, 2 Oct 2002 10:08:11 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA31287 for caml-list@pauillac.inria.fr; Wed, 2 Oct 2002 10:08:10 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA10008; Tue, 1 Oct 2002 14:45:36 +0200 (MET DST) Date: Tue, 1 Oct 2002 14:45:36 +0200 From: Xavier Leroy To: Vincent Barichard Cc: CAML-LIST Subject: Re: [Caml-list] ocaml and beos Message-ID: <20021001144536.A9408@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from barichar@info.univ-angers.fr on Fri, Sep 27, 2002 at 08:30:02AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I wonder if anybody succeeded in making ocaml works with beos ? > I have some trouble. The compilation step works fine, but some components > (configure says shared dll not supported) are missing. So I can't compile > my favorite little ocaml programs because of undefined function calls > like "unix_getsockopt_bool". Of course it is says to be a unix function. The patch below might help with this problem. > I would like to know more about ocaml/beos. Is anybody has any experience > about that ? Well, I did the BeOS port of OCaml in 1999, for the versions of OCaml and BeOS that were current at that time. The native-code compiler worked fine, but several libraries were missing (e.g. TK). Since BeOS went belly up, I'm afraid there isn't much to say about OCaml/BeOS except "rest in peace". - Xavier Leroy Index: csl/otherlibs/unix/sockopt.c diff -c csl/otherlibs/unix/sockopt.c:1.17 csl/otherlibs/unix/sockopt.c:1.18 *** csl/otherlibs/unix/sockopt.c:1.17 Wed Jul 31 16:07:47 2002 --- csl/otherlibs/unix/sockopt.c Tue Oct 1 14:34:58 2002 *************** *** 11,17 **** /* */ /***********************************************************************/ ! /* $Id: sockopt.c,v 1.17 2002/07/31 14:07:47 xleroy Exp $ */ #include #include --- 11,17 ---- /* */ /***********************************************************************/ ! /* $Id: sockopt.c,v 1.18 2002/10/01 12:34:58 xleroy Exp $ */ #include #include *************** *** 209,218 **** #else ! CAMLprim value unix_getsockopt(value socket, value option) { invalid_argument("getsockopt not implemented"); } ! CAMLprim value unix_setsockopt(value socket, value option, value status) { invalid_argument("setsockopt not implemented"); } CAMLprim value unix_getsockopt_int(value socket, value option) --- 209,218 ---- #else ! CAMLprim value unix_getsockopt_bool(value socket, value option) { invalid_argument("getsockopt not implemented"); } ! CAMLprim value unix_setsockopt_bool(value socket, value option, value status) { invalid_argument("setsockopt not implemented"); } CAMLprim value unix_getsockopt_int(value socket, value option) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners