caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Caml build on Linux
@ 2004-01-14  6:30 Pierre Habraken
  2004-01-14  9:11 ` Sven Luther
  0 siblings, 1 reply; 4+ messages in thread
From: Pierre Habraken @ 2004-01-14  6:30 UTC (permalink / raw)
  To: caml-list

Hello,

Building the contrib dir. of cl75 fails on redhat 7.1 and redhat 9 with
error : "Cannot find the compiled interface file unix.zi".
I browsed the mailing list archive but did not find any message related
to this error.
Does anyone know a quick fix or patch to successfully build the
contribs ?

BTW, the package caml-light-0.74-3.src.rpm in
ftp://ftp.inria.fr/INRIA/caml-light can't be installed:

$ rpm -ivh /tmp/caml-light-0.74-3.src.rpm 
error: unpacking of archive failed on file caml-light-0.74-3.spec: cpio:
Archive file not in header
   1:caml-light
$

Thanks in advance for any help.

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Caml build on Linux
  2004-01-14  6:30 [Caml-list] Caml build on Linux Pierre Habraken
@ 2004-01-14  9:11 ` Sven Luther
  2004-01-14 10:07   ` Pierre Habraken
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Luther @ 2004-01-14  9:11 UTC (permalink / raw)
  To: Pierre Habraken; +Cc: caml-list

On Wed, Jan 14, 2004 at 07:30:57AM +0100, Pierre Habraken wrote:
> Hello,
> 
> Building the contrib dir. of cl75 fails on redhat 7.1 and redhat 9 with
> error : "Cannot find the compiled interface file unix.zi".
> I browsed the mailing list archive but did not find any message related
> to this error.
> Does anyone know a quick fix or patch to successfully build the
> contribs ?
> 
> BTW, the package caml-light-0.74-3.src.rpm in
> ftp://ftp.inria.fr/INRIA/caml-light can't be installed:
> 
> $ rpm -ivh /tmp/caml-light-0.74-3.src.rpm 
> error: unpacking of archive failed on file caml-light-0.74-3.spec: cpio:
> Archive file not in header
>    1:caml-light
> $
> 
> Thanks in advance for any help.

look at the version (in tarball only) marked with debian, it contained
some changes needed to build, but i don't remamber them.

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

Friendly,

Sven Luther

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Caml build on Linux
  2004-01-14  9:11 ` Sven Luther
@ 2004-01-14 10:07   ` Pierre Habraken
  2004-01-14 12:32     ` Damien Doligez
  0 siblings, 1 reply; 4+ messages in thread
From: Pierre Habraken @ 2004-01-14 10:07 UTC (permalink / raw)
  To: Sven Luther; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Caml build on Linux
  2004-01-14 10:07   ` Pierre Habraken
@ 2004-01-14 12:32     ` Damien Doligez
  0 siblings, 0 replies; 4+ messages in thread
From: Damien Doligez @ 2004-01-14 12:32 UTC (permalink / raw)
  To: Pierre Habraken; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

On Wednesday, January 14, 2004, at 11:07 AM, Pierre Habraken wrote:

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

This one is a known bug.  The enclosed patch should fix it.

-- Damien


[-- Attachment #2: camllight-0.75-bcopy-patch.txt --]
[-- Type: text/plain, Size: 889 bytes --]

Index: config.h
===================================================================
RCS file: /net/pauillac/caml/repository/camllight/sources/src/runtime/config.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -c -r1.6 -r1.7
*** sources/src/runtime/config.h	1995/10/03 13:55:32	1.6
--- sources/src/runtime/config.h	2002/02/11 08:42:25	1.7
***************
*** 12,22 ****
  
  /* 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
  #define bcopy(src,dst,len) memcpy((dst), (src), (len))
--- 12,22 ----
  
  /* 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
  #define bcopy(src,dst,len) memcpy((dst), (src), (len))

[-- Attachment #3: Type: text/plain, Size: 1 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-14 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-14  6:30 [Caml-list] Caml build on Linux Pierre Habraken
2004-01-14  9:11 ` Sven Luther
2004-01-14 10:07   ` Pierre Habraken
2004-01-14 12:32     ` Damien Doligez

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