From: Michel Quercia <michel.quercia@prepas.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] installing caml-light
Date: Sat, 19 Jun 2004 08:52:03 +0200 [thread overview]
Message-ID: <200406190852.03332.michel.quercia@prepas.org> (raw)
In-Reply-To: <slrncd66ue.o1v.maggesi@sputnik.math.unice.fr>
Le vendredi 18 Juin 2004 18:44, Marco Maggesi a écrit :
> 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) 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.
--
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
next prev parent reply other threads:[~2004-06-19 6:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 16:44 Marco Maggesi
2004-06-18 17:54 ` David MENTRE
2004-06-19 5:59 ` William Lovas
2004-06-19 6:52 ` Michel Quercia [this message]
2004-06-21 15:53 ` [Caml-list] " Marco Maggesi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200406190852.03332.michel.quercia@prepas.org \
--to=michel.quercia@prepas.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox