From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 8CC92BB9A for ; Mon, 14 Nov 2005 19:09:48 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAEI9mEk026132 for ; Mon, 14 Nov 2005 19:09:48 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA29313 for ; Mon, 14 Nov 2005 19:09:47 +0100 (MET) Received: from lion.seas.upenn.edu (LION.SEAS.upenn.edu [158.130.12.194]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jAEI9ip8011513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Nov 2005 19:09:47 +0100 Received: from [158.130.38.166] (dhcp38-116.seas.upenn.edu [158.130.38.166]) by lion.seas.upenn.edu (8.13.3/8.12.10) with ESMTP id jAEI9hbU030747 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 14 Nov 2005 13:09:43 -0500 Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: <0AEF059E-3902-4A24-A588-D57C4202C1AF@af0.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: caml-list@inria.fr From: Daniel Margolis Subject: OCaml-MySQL Date: Mon, 14 Nov 2005 13:09:45 -0500 X-Mailer: Apple Mail (2.746.2) X-Miltered: at nez-perce with ID 4378D2EC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4378D2E8.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml-mysql:01 ocaml:01 macos:01 ocaml-mysql:01 gcc:01 osx:01 ocamlc:01 stubs:01 ocaml:01 dynamically:01 compile:01 cma:01 modules:01 referenced:01 seems:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Hi, I'm trying to get database access working in OCaml, using v. 3.0.9 on MacOS 10.4. So first, if anyone has recommendations of a good interface for any (free) database server (i.e. I'm not tied to implementation--MySQL, PostgreSQL, SQLite, etc, are all fine), I'd gladly like to hear them. Performance is something of a concern, but my main concern is ease of use--something with an intuitive interface would be nice. Second, I've been trying to get OCaml-MySQL (from http:// raevnos.pennmush.org/code/ocaml-mysql/) working, since it seems a good option. So I had to replace the OCamlMakefile it comes with with a newer version (because the version it comes with tries to do gcc - shared, which is unavailable on OSX) to get it to compile. But when I try to build the demo, using "ocamlc mysql.cma demo.ml", I get > Error on dynamically loaded library: Symbol not found: > _mysql_get_host_info > Referenced from: ./dllmysql_stubs.so > Expected in: flat namespace I don't know anything much about linking OCaml code to C modules, so I'm a bit lost. Can anyone suggest what might be causing this, and how I can fix it? Thanks, Dan