Closed vicuna closed 18 years ago
Comment author: administrator
Hello,
Thank you for the bug report.
I am having a lot of difficulty compiling caml 0.75 on SuSE Linux 9.1 with gcc version 3.3.3. A lot of errors occur when I try to run the Makefile.
Are able to compile the system i.e. to run
$ make world $ make bootstrap $ make install
Or is there any error during this part of the compilation ?
Here is the first major error that occurs when I try to run make from the contrib directory:
make[1]: Entering directory
/home/ciaran/Downloads/cl75unix/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: parse error before '(' token /usr/include/string.h:278: error: conflicting types for
memmove' /usr/include/string.h:43: error: previous declaration ofmemmove' /usr/include/string.h:278: error: parse error before "const" make[1]: *** [accept.o] Error 1 make[1]: Leaving directory
/home/ciaran/Downloads/cl75unix/cl75/contrib/libunix'If you could help me with this I would be very grateful.
The problem is due to wrong include files. I will try to investigate this one...
Regards,
-- Pierre Weis
INRIA, Projet Cristal, http://pauillac.inria.fr/~weis
Comment author: administrator
This is the same as #3193, and here is the solution (in English):
In src/runtime/config.h, replace
/ Library dependencies /
/ Nothing to do /
with
/ Library dependencies /
/ Nothing to do /
-- Damien
Comment author: administrator
see #3193
Comment author: administrator
Thanks Damien,
I have made those changes to /src/runtime/config.h and it fixed my problem.
Thanks you very much for your swift response.
Ciaran.
-- Original Message -- Date: Mon, 20 Jun 2005 20:33:44 +0200 (MET DST) From: Damien Doligez caml-bugs@pauillac.inria.fr To: ciaran.kelly9@mail.dcu.ie Subject: Re: caml 0.75 - SuSE Linux (#3692)
This is the same as #3193, and here is the solution (in English):
In src/runtime/config.h, replace
/ Library dependencies /
ifdef HAS_MEMMOVE
define bcopy(src,dst,len) memmove((dst), (src), (len))
else
ifdef HAS_BCOPY
/ Nothing to do /
else
ifdef HAS_MEMCPY
with
/ Library dependencies /
ifdef HAS_BCOPY
/ Nothing to do /
else
ifdef HAS_MEMMOVE
define bcopy(src,dst,len) memmove((dst), (src), (len))
else
ifdef HAS_MEMCPY
-- Damien
/**\
Ciaran Kelly,
PhD Research Student,
Artificial Life Laboratory,
Room S214,
RINCE,
Dublin City University,
Ireland.
Tel: +353-87-3521721 (mobile)
Tel: +353-1-7007696 (office)
WWW: www.eeng.dcu.ie/~alife/ck/
******/
Comment author: administrator
Thanks Damien,
I have made those changes to /src/runtime/config.h and it fixed my problem.
Thanks you very much for your swift response.
Ciaran.
Well this bug is corrected in the working sources of the development version (0.77). We will distribute it very soon.
Regards,
-- Pierre Weis
INRIA, Projet Cristal, http://pauillac.inria.fr/~weis
Original bug ID: 3692 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello,
I am having a lot of difficulty compiling caml 0.75 on SuSE Linux 9.1 with gcc version 3.3.3. A lot of errors occur when I try to run the Makefile. Here is the first major error that occurs when I try to run make from the contrib directory:
make[1]: Entering directory
/home/ciaran/Downloads/cl75unix/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: parse error before '(' token /usr/include/string.h:278: error: conflicting types for
memmove' /usr/include/string.h:43: error: previous declaration ofmemmove' /usr/include/string.h:278: error: parse error before "const" make[1]: *** [accept.o] Error 1 make[1]: Leaving directory
/home/ciaran/Downloads/cl75unix/cl75/contrib/libunix'If you could help me with this I would be very grateful.
/**\ Ciaran Kelly,
PhD Research Student,
Artificial Life Laboratory,
Room S214,
RINCE,
Dublin City University,
Ireland.
Tel: +353-87-3521721 (mobile)
Tel: +353-1-7007696 (office)
WWW: www.eeng.dcu.ie/~alife/ck/ ******/