caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Can't make ocaml-sqlite3
@ 2012-05-30 23:10 John Velman
  2012-05-30 23:42 ` Markus Mottl
  0 siblings, 1 reply; 3+ messages in thread
From: John Velman @ 2012-05-30 23:10 UTC (permalink / raw)
  To: caml-list


I downloaded sqlite3-ocaml-1.6.3.tar.gz from https://bitbucket.org/mmottl,
untarred and configured.  Configure seemed to go well.  But make errors out
quickly with the following:

bash-3.2$ make bytecode
ocamlc -w A -warn-error A -pp "cpp -traditional-cpp" -c sqlite3.mli
ocamlc -w A -warn-error A -pp "cpp -traditional-cpp" -c sqlite3.ml
gcc -I/usr/local/lib/ocaml -g -O2  -fPIC -Wall -pedantic -Werror -Wno-long-long   -c -o sqlite3_stubs.o sqlite3_stubs.c
sqlite3_stubs.c: In function ‘get_open_flags’:
sqlite3_stubs.c:325: error: ‘SQLITE_OPEN_NOMUTEX’ undeclared (first use in this function)
sqlite3_stubs.c:325: error: (Each undeclared identifier is reported only once
sqlite3_stubs.c:325: error: for each function it appears in.)
sqlite3_stubs.c:326: error: ‘SQLITE_OPEN_FULLMUTEX’ undeclared (first use in this function)
make: *** [sqlite3_stubs.o] Error 1



I'm using ocaml 3.12.1, running on mac os x 10.7.4, XCode 4.2 (although
there are earlier vesions on my machine, which is an iMac 2.4GHz intel core
2 duo with 2 GB ram.

I'm learning OCaml, and am writing a little project for myself that would
benefit greatly from an sqlite3 interface.

Thanks,

John Velman

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

end of thread, other threads:[~2012-06-01 16:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-30 23:10 [Caml-list] Can't make ocaml-sqlite3 John Velman
2012-05-30 23:42 ` Markus Mottl
2012-06-01 16:19   ` John Velman

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