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
[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: 2004-06-21 (15:53)
From: Marco Maggesi <maggesi@m...>
Subject: [Caml-list] Re: installing caml-light
On 2004-06-19, Michel Quercia <> 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

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

from the page of the Flyspeck Project:

  -- Marco

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: