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 NAA16306; Wed, 14 Jan 2004 13:32:19 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA15972 for ; Wed, 14 Jan 2004 13:32:18 +0100 (MET) Received: from inria.fr (macaque.inria.fr [128.93.8.158]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i0ECWG516838; Wed, 14 Jan 2004 13:32:17 +0100 (MET) Date: Wed, 14 Jan 2004 13:32:20 +0100 Subject: Re: [Caml-list] Caml build on Linux Content-Type: multipart/mixed; boundary=Apple-Mail-2--860423840 Mime-Version: 1.0 (Apple Message framework v553) Cc: caml-list@inria.fr To: Pierre Habraken From: Damien Doligez In-Reply-To: <400514FA.604F008@imag.fr> Message-Id: X-Mailer: Apple Mail (2.553) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 damien:01 damien:01 pierre:01 usr:01 usr:01 bug:01 runtime:01 runtime:01 dependencies:01 memcpy:01 memcpy:01 dependencies:01 ifdef:01 ifdef:01 X-Attachments: name="camllight-0.75-bcopy-patch.txt" name="camllight-0.75-bcopy-patch.txt" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --Apple-Mail-2--860423840 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Wednesday, January 14, 2004, at 11:07 AM, Pierre Habraken wrote: > /usr/include/string.h:242: parse error before `(' > /usr/include/string.h:242: conflicting types for `memmove' > /usr/include/string.h:42: previous declaration of `memmove' > /usr/include/string.h:242: parse error before `__const' This one is a known bug. The enclosed patch should fix it. -- Damien --Apple-Mail-2--860423840 Content-Disposition: attachment; filename=camllight-0.75-bcopy-patch.txt Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0664; name="camllight-0.75-bcopy-patch.txt" Index: config.h =================================================================== RCS file: /net/pauillac/caml/repository/camllight/sources/src/runtime/config.h,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** sources/src/runtime/config.h 1995/10/03 13:55:32 1.6 --- sources/src/runtime/config.h 2002/02/11 08:42:25 1.7 *************** *** 12,22 **** /* Library dependencies */ - #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)) --- 12,22 ---- /* Library dependencies */ #ifdef HAS_BCOPY /* Nothing to do */ + #else + #ifdef HAS_MEMMOVE + #define bcopy(src,dst,len) memmove((dst), (src), (len)) #else #ifdef HAS_MEMCPY #define bcopy(src,dst,len) memcpy((dst), (src), (len)) --Apple-Mail-2--860423840 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed --Apple-Mail-2--860423840-- ------------------- 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