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

* Re: [Caml-list] Can't make ocaml-sqlite3
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Mottl @ 2012-05-30 23:42 UTC (permalink / raw)
  To: John Velman; +Cc: caml-list

On Wed, May 30, 2012 at 7:10 PM, John Velman <velman@cox.net> wrote:
> 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.

SQLite3 works just fine on my Mac, but I use MacPorts to install the
latest sqlite3 package.  It seems your version is outdated.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com

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

* Re: [Caml-list] Can't make ocaml-sqlite3
  2012-05-30 23:42 ` Markus Mottl
@ 2012-06-01 16:19   ` John Velman
  0 siblings, 0 replies; 3+ messages in thread
From: John Velman @ 2012-06-01 16:19 UTC (permalink / raw)
  To: Markus Mottl; +Cc: caml-list

On Wed, May 30, 2012 at 07:42:55PM -0400, Markus Mottl wrote:
> On Wed, May 30, 2012 at 7:10 PM, John Velman <velman@cox.net> wrote:
> > 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.
> 
> SQLite3 works just fine on my Mac, but I use MacPorts to install the
> latest sqlite3 package.  It seems your version is outdated.
> 
> Regards,
> Markus

Thanks.  I mislead myself by looking at the version of sqlite3 in
/user/bin.  It was greater than 3.3.3 -- but apparently I hadn't taken care
of libsqlite3.a, which apparently was older.

I'm not a fan of MacPorts (or Fink or Homebrew)...personal taste.   I
downloaded the sqlite-autoconf-3071201 source, compiled and installed, and
ocaml-sqlite3 installation seemed to go OK.

Thanks,

John V.

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