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] Caml build on Linux
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-01-14 (10:06)
From: Pierre Habraken <Pierre.Habraken@i...>
Subject: Re: [Caml-list] Caml build on Linux
Sven Luther wrote:
> > Building the contrib dir. of cl75 fails on redhat 7.1 and redhat 9
> > with error : "Cannot find the compiled interface file unix.zi".
> [...]
> look at the version (in tarball only) marked with debian, it contained
> some changes needed to build, but i don't remamber them.

Got same error with debian package.

> Also make sure you install the main caml-light stuff before building
> contribs. I think this is your problem.

Yes, I am sure I did install the main stuff before building contribs.

In fact, I changed the installation directories in src/Makefile and
contrib/Makefile. I understand that the changes I applied to BINDIR,
LIBDIR and MANDIR should be automatically propagated by make to all
Makefiles in subdirs but I am not sure that the propagation is actually

Also the I just discovered that the build of libunix fails:
+ cd libunix
+ make CC=gcc OPTS= 'CPP=/lib/cpp -P' 'RANLIBTEST=test -f
/usr/bin/ranlib -o -f 
/bin/ranlib' RANLIB=ranlib BINDIR=/opt/caml-light/bin
 MANDIR=/opt/caml-light/man/man1 MANEXT=1
X11_INCLUDES=/usr/X11R6/include X11_LI
B=/usr/X11R6/lib BIGNUM_ARCH=C TEXINPUTDIR=/usr/lib/texmf/tex/latex/etc
PDIR=/usr/lib/emacs/site-lisp TCLINCLDIR=/usr/local/lib/tcl8.0/include
=/usr/local/lib/tk8.0/include TKLIBDIR=/usr/local/lib/tk8.0/lib
ocal/lib/tcl8.0/lib 'TKLIBS=-ltk8.0 -ltcl8.0 -lX11 -lm' all
make[1]: Entering directory `/usr/local/src2/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: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'
make[1]: *** [accept.o] Error 1
make[1]: Leaving directory `/usr/local/src2/cl75/contrib/libunix'

It might be that the version of some libc headers is not compatible with
the one required by the sources (?)...

Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87

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