From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 56268BCAF for ; Sat, 16 Jul 2005 21:51:18 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6GJpHGp027880 for ; Sat, 16 Jul 2005 21:51:18 +0200 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 VAA05652 for ; Sat, 16 Jul 2005 21:51:17 +0200 (MET DST) Received: from mailgate1.dslextreme.com (mailgate1.dslextreme.com [66.51.199.94]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6GJpEwd027875 for ; Sat, 16 Jul 2005 21:51:17 +0200 Received: from mail5.dslextreme.com (unknown [192.168.7.93]) by mailgate1.dslextreme.com (Postfix) with SMTP id A3B9A6301D4 for ; Sat, 16 Jul 2005 11:49:28 -0700 (PDT) Received: (qmail 30558 invoked from network); 16 Jul 2005 19:51:10 -0000 Received: from unknown (HELO manjula.frotz.bogus) (72.25.88.197) by mail5.dslextreme.com with SMTP; Sat, 16 Jul 2005 12:51:10 -0700 Received: from [172.16.0.96] (unknown [172.16.0.96]) by manjula.frotz.bogus (Postfix) with ESMTP id 0E311A3786 for ; Sat, 16 Jul 2005 12:27:55 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v733) Content-Transfer-Encoding: 7bit Message-Id: <7BA340B3-F9B9-4E8E-9936-5F179B637A5C@frotz.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: caml-list From: Ranjan Bagchi Subject: Building ocaml-mysql on Mac OS X Date: Sat, 16 Jul 2005 12:51:11 -0700 X-Mailer: Apple Mail (2.733) X-DSLExtreme-MailGate-Information: Please contact the ISP for more information X-DSLExtreme-MailGate: Found to be clean X-MailScanner-From: ranjan.bagchi@frotz.com X-Miltered: at concorde with ID 42D96535.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42D96532.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml-mysql:01 ocaml-mysql:01 makefile:01 toplevel:01 ocaml:01 foo:01 ocamlfind:01 -package:01 -custom:01 ocaml:01 foo:01 topfind:01 findlib:01 syntax:01 syntax:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Hi -- Curious if anyone has had luck buildling ocaml-mysql on OS X ( it seem to be fine on linux). I had to mess with the Makefile so it would find the mysql libraries in /opt/local (I use darwin ports), and did the obvious things, but when I build a toplevel and try to bring in the mysql stuff I get the following error: Ranjan-Bagchis-Computer:~/ocaml/foo ranjan$ ocamlfind mktop -o topmysql -package mysql -custom Ranjan-Bagchis-Computer:~/ocaml/foo ranjan$ ./topmysql Objective Caml version 3.08.3 # #use "topfind";; - : unit = () Findlib has been successfully loaded. Additional directives: #require "package";; to load a package #list;; to list the available packages #camlp4o;; to load camlp4 (standard syntax) #camlp4r;; to load camlp4 (revised syntax) #predicates "p,q,...";; to set these predicates Topfind.reset();; to force that packages will be reloaded #thread;; to enable threads - : unit = () # #require "mysql";; /opt/local/lib/site-lib/mysql: added to search path /opt/local/lib/site-lib/mysql/mysql.cma: loaded The external function `db_connect' is not available Any hints on getting this built successfully? Thanks, Ranjan Bagchi