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 IAA30655; Sat, 19 Jun 2004 08:50:41 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA30654 for ; Sat, 19 Jun 2004 08:50:40 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5J6odSH020437 for ; Sat, 19 Jun 2004 08:50:39 +0200 Received: from mch.dijon.fr (talant-1-82-225-174-33.fbx.proxad.net [82.225.174.33]) by postfix3-2.free.fr (Postfix) with ESMTP id 76317C50E for ; Sat, 19 Jun 2004 08:50:39 +0200 (CEST) From: Michel Quercia Reply-To: michel.quercia@prepas.org Organization: =?iso-8859-1?q?=C9ducation?= nationale To: caml-list@inria.fr Subject: Re: [Caml-list] installing caml-light Date: Sat, 19 Jun 2004 08:52:03 +0200 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406190852.03332.michel.quercia@prepas.org> X-Miltered: at concorde with ID 40D3E23F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; quercia:01 quercia:01 prepas:01 caml-list:01 2004:99 44,:01 maggesi:01 unice:01 maggesi:01 compiles:01 contrib:01 gcc:01 runtime:01 usr:01 38,:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Le vendredi 18 Juin 2004 18:44, Marco Maggesi a =E9crit=A0: > Hi everybody, > > I am trying to install Caml-light with no success (from > cl75unix.tar.gz). I made two attempts on two different machines: > > 1. On a Linux Gentoo box (you can find the complete trace of the > compilation at http://math.unice.fr/~maggesi/cl75gentoo.log) > > Problem: The Caml-light core compiles correctly but I am not able > to compile the contributions, in particular "unix". The precise > error is > > make[1]: Entering directory `/home/maggesi/cl/cl75/contrib/libunix' > gcc -I../../src/runtime -O -c -o accept.o accept.c > In file included from /usr/include/sys/un.h:38, > from socketaddr.h:4, > from accept.c:8: > /usr/include/string.h:278: error: syntax error before '(' token > /usr/include/string.h:278: error: syntax error before "const" > make[1]: *** [accept.o] Error 1 There is a micmac in the src/runtime/config.h file. Comment out (or fix) th= e=20 definition of bcopy : =2D------------------------------------------------------------------------= =2D------- #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 =2D------------------------------------------------------------------------= =2D------- On Linux bcopy is already defined and the redefinition above triggers this= =20 (strange) error when HAS_MEMMOVE is set. You will encounter another problem later when compiling libunix related to= =20 errno which is a macro and no longer an external variable. The fix for this= =20 is to remove all declarations "extern int errno" in libunix/*.c files and a= dd=20 "#include " when not already present. =2D-=20 Michel Quercia 23 rue de Montchapet, 21000 Dijon http://michel.quercia.free.fr (maths) http://pauillac.inria.fr/~quercia (informatique) mailto:michel.quercia@prepas.org ------------------- 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