caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Velman <velman@cox.net>
To: caml-list@inria.fr
Subject: [Caml-list] Can't make ocaml-sqlite3
Date: Wed, 30 May 2012 16:10:51 -0700	[thread overview]
Message-ID: <20120530231051.GC437@cox.net> (raw)


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

             reply	other threads:[~2012-05-30 23:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30 23:10 John Velman [this message]
2012-05-30 23:42 ` Markus Mottl
2012-06-01 16:19   ` John Velman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120530231051.GC437@cox.net \
    --to=velman@cox.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).