caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Laurent Chéno" <laurent.cheno@noos.fr>
To: Caml-list <caml-list@margaux.inria.fr>
Cc: "Laurent Chéno" <laurent.cheno@noos.fr>
Subject: [Caml-list] CamlLight install on MacOS X
Date: Sat, 12 May 2001 15:07:32 +0200	[thread overview]
Message-ID: <200105121307.f4CD7Xb22813@nez-perce.inria.fr> (raw)

(mon anglais étant très mauvais, je poste en français ; si quelqu'un 
veut traduire, merci !)

Merci à Sébastien Carlier qui m'a aidé dans l'installation de CamlLight 
sur MacOS X.

Je récapitule la manoeuvre suffisante (et nécessaire) :

1. éditer le Makefile, voici ce que doit être la section de 
configuration :

### Configuration section

# Which C compiler to use.
# Performance is often improved if you use gcc 2.x instead of cc.
CC=cc

# Additional options to $(CC).
# If you are using gcc, add -fno-defer-pop.
# This option circumvents a gcc bug on some platforms (680x0, 80386).
OPTS=-fno-defer-pop -traditional-cpp

# Extra libraries that have to be linked with the runtime system.
# The math library "-lm" is linked by default.
# On most machines, nothing else is needed.
# Under Solaris: -lsocket -lnsl
LIBS=

# How to call the C preprocessor on a file that does not have the .c 
extension.
# That's /lib/cpp on most machines, sometimes /usr/bin/cpp,
# and /usr/ccs/lib/cpp under Solaris.
# The -P option suppresses the generation of "# linenum" directives,
# which are not understood by Caml Light.
# The -Dunix option ensures that the symbol "unix" is defined --
# not all Unix C preprocessors define it.
# If your cpp is too fussy, make tools/clprepro and use this:
# CPP=../../src/tools/clprepro -Dunix
# CPP=/lib/cpp -P -Dunix
CPP=/usr/bin/cpp -P -Dunix

# The directory where public executables will be installed
BINDIR=/usr/local/bin

# The directory where the Caml Light standard library will be installed
LIBDIR=/usr/local/lib/caml-light

# The manual section where the manual pages will be installed
MANEXT=1

# The directory where the manual pages will be installed
MANDIR=/usr/local/man/man$(MANEXT)

# Some "make"s need this to ensure that they call the Bourne shell,
# not the C shell. Seems harmless on most other "make"s.
# Try removing this line if you run into trouble.
SHELL=/bin/sh

### End of configuration section

2. ajouter en tête des fichiers src/runtime/main.c et src/runtime/io.c 
la ligne :

#include <unistd.h>


normalement, après, ça roule !

Voici les explications de Sébastien (qui dépasse largement mon niveau 
d'expertise) :

1. Le probleme vient du preprocesseur C de MacOS X qui ne supporte pas
les extenstions de GCC utilisees par l'interpreteur de CamlLight.

2. Le problème était du à la fonction lseek qui sous MacOS X prend
un offset sur 64 bits.  Sans prototypage, le type par défaut du second
argument est int (32 bits)... d'où le problème.


Cordialement,
espérant que cela pourra aider d'autres que moi !

Laurent
--
Laurent Chéno
Prof. de mathématiques en PSI*
et de l'option informatique en MP/MP*
Lycée Louis-le-Grand, Paris

http://pauillac.inria.fr/~cheno/
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


             reply	other threads:[~2001-05-12 13:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-12 13:07 Laurent Chéno [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-12  6:28 Laurent Chéno

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=200105121307.f4CD7Xb22813@nez-perce.inria.fr \
    --to=laurent.cheno@noos.fr \
    --cc=caml-list@margaux.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;
as well as URLs for NNTP newsgroup(s).