Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
done...

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
LIBDIR=/opt/caml-light/lib
 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
EMACSLIS
PDIR=/usr/lib/emacs/site-lisp TCLINCLDIR=/usr/local/lib/tcl8.0/include
TKINCLDIR
=/usr/local/lib/tk8.0/include TKLIBDIR=/usr/local/lib/tk8.0/lib
TCLLIBDIR=/usr/l
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 (?)...

Pierre
-- 
Pierre HABRAKEN - mailto:Pierre.Habraken@imag.fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex

-------------------
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