Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] installing caml-light
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Marco Maggesi <maggesi@m...>
Subject: [Caml-list] Re: installing caml-light
On 2004-06-19, Michel Quercia <michel.quercia@prepas.org> wrote:
>
> There is a micmac in the src/runtime/config.h file. Comment out (or fix) the 
> definition of bcopy :
>
> ---------------------------------------------------------------------------------
> #ifdef HAS_MEMMOVE
> #define bcopy(src,dst,len) memmove((dst), (src), (len))
> #else
> #ifdef HAS_BCOPY
> /* Nothing to do */
> #else
> #ifdef HAS_MEMCPY
> #define bcopy(src,dst,len) memcpy((dst), (src), (len))
> #else
> #define bcopy(src,dst,len) memmov((dst), (src), (len))
> #define USING_MEMMOV
> #endif
> #endif
> #endif
> ---------------------------------------------------------------------------------
>
> On Linux bcopy is already defined and the redefinition above triggers this 
> (strange) error when HAS_MEMMOVE is set.
>
> You will encounter another problem later when compiling libunix related to 
> errno which is a macro and no longer an external variable. The fix for this 
> is to remove all declarations "extern int errno" in libunix/*.c files and add 
> "#include <errno.h>" when not already present.



Thanks to everyone who replied to my message.

I was able to compile caml-light and use HOL-light following the above
suggestions.

Regarding HOL-light: I found an OCaml version of HOL-light

  http://www.math.pitt.edu/~thales/flyspeck/hol_light.tar.gz

from the page of the Flyspeck Project:

  http://www.math.pitt.edu/~thales/flyspeck/index.html

  -- Marco

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