From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 9D3217ED26 for ; Thu, 31 May 2012 01:10:56 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8BALSnxk9E5vGUmWdsb2JhbABEhUquSSIBAQEBAQgLCwcUJ4JBDwE6QQIYDgIWGIhPmB2OR5JJgSOMEoIEMmADiECMV4EQkWQ X-IronPort-AV: E=Sophos;i="4.75,686,1330902000"; d="scan'208";a="145962619" Received: from fed1rmfepo203.cox.net ([68.230.241.148]) by mail4-smtp-sop.national.inria.fr with ESMTP; 31 May 2012 01:10:55 +0200 Received: from fed1rmimpo305.cox.net ([68.230.241.173]) by fed1rmfepo203.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120530231054.SLWI24333.fed1rmfepo203.cox.net@fed1rmimpo305.cox.net> for ; Wed, 30 May 2012 19:10:54 -0400 Received: from jrv.local ([68.5.247.155]) by fed1rmimpo305.cox.net with bizsmtp id GPAs1j00P3Mu9Dg03PAtoy; Wed, 30 May 2012 19:10:53 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020201.4FC6A8FE.0006,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-CM-Score: NA Authentication-Results: cox.net; none Received: by jrv.local (Postfix, from userid 502) id 501A4F88674; Wed, 30 May 2012 16:10:52 -0700 (PDT) Date: Wed, 30 May 2012 16:10:51 -0700 From: John Velman To: caml-list@inria.fr Message-ID: <20120530231051.GC437@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.20 (2009-06-14) Subject: [Caml-list] Can't make ocaml-sqlite3 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