bitstring: make on os x fails

35 views
Skip to first unread message

Ben Jakb

unread,
Apr 30, 2009, 5:38:48 AM4/30/09
to bits...@googlegroups.com
hi I try to build bitstring on mac os x (intel) 10.5 but it fails:

$ cd ocaml-bitstring-2.0.0
$ ./configure
...
checking whether byte ordering is bigendian... no
checking byteswap.h usability... no
checking byteswap.h presence... no
checking for byteswap.h... no
...
checking for ocamlc... ocamlc
OCaml version is 3.10.2
...
checking for bisect-report... no
...
checking findlib package extlib... not found
checking findlib package cil... not found

$ make
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
cat /byteswap.in.h; \
} > byteswap.h-t
cat: /byteswap.in.h: No such file or directory
make: *** [byteswap.h] Error 1


Thanks for eventually having a look into this

ben

Richard Jones

unread,
Apr 30, 2009, 6:27:14 AM4/30/09
to bits...@googlegroups.com

Do you have byteswap.in.h in the tarball? It looks like it somehow
isn't added to the tarball (although it's in the manifest, so it
should be).

Rich.

--
Richard Jones
Red Hat

Ben Jakb

unread,
Apr 30, 2009, 7:22:56 AM4/30/09
to bits...@googlegroups.com
it's here - as far as i can tell

ocaml-bitstring-2.0.0$ ls byteswap.in.h
byteswap.in.h


2009/4/30 Richard Jones <ri...@annexia.org>:

Richard Jones

unread,
Apr 30, 2009, 7:56:51 AM4/30/09
to bits...@googlegroups.com
On Thu, Apr 30, 2009 at 11:38:48AM +0200, Ben Jakb wrote:
> $ make
> { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
> cat /byteswap.in.h; \
> } > byteswap.h-t

Right I see it now, the problem is that srcdir isn't defined
by the configure script. I have no idea why though. You could
try running autoreconf ...

Ben Jakb

unread,
Apr 30, 2009, 8:08:52 AM4/30/09
to bits...@googlegroups.com
no that doesn't work ...

I guess there is an error in the Makefile

$ diff Makefile Makefile.old
126c126
< cat $(top_srcdir)/byteswap.in.h; \
---
> cat $(srcdir)/byteswap.in.h; \

with replacing srcdir to top_srcdir it works ...


2009/4/30 Richard Jones <ri...@annexia.org>:
Reply all
Reply to author
Forward
0 new messages