caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocaml and beos
@ 2002-09-27  6:30 Vincent Barichard
  2002-10-01 12:45 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Barichard @ 2002-09-27  6:30 UTC (permalink / raw)
  To: CAML-LIST

Hi all,

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.

I would like to know more about ocaml/beos. Is anybody has any experience
about that ?

Thanks.

Vincent

Vincent Barichard
Métaheuristiques et Optimisation Combinatoire
Faculté des Sciences d'Angers
Tel : 02 41 73 52 06
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] ocaml and beos
  2002-09-27  6:30 [Caml-list] ocaml and beos Vincent Barichard
@ 2002-10-01 12:45 ` Xavier Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2002-10-01 12:45 UTC (permalink / raw)
  To: Vincent Barichard; +Cc: CAML-LIST

> 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 <mlvalues.h>
  #include <alloc.h>
--- 11,17 ----
  /*                                                                     */
  /***********************************************************************/
  
! /* $Id: sockopt.c,v 1.18 2002/10/01 12:34:58 xleroy Exp $ */
  
  #include <mlvalues.h>
  #include <alloc.h>
***************
*** 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-02  8:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-27  6:30 [Caml-list] ocaml and beos Vincent Barichard
2002-10-01 12:45 ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).