From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p7D28cQU023519 for ; Sat, 13 Aug 2011 04:08:38 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoBAJ/bRU7UGyoGkWdsb2JhbABBmHCPCBQBAQEBCQsLBxQDIoF5AYECFCAdiDaaV6AAhkcEmDuLSg X-IronPort-AV: E=Sophos;i="4.67,365,1309730400"; d="scan'208";a="105371173" Received: from smtp6-g21.free.fr ([212.27.42.6]) by mail4-smtp-sop.national.inria.fr with ESMTP; 13 Aug 2011 04:08:37 +0200 Received: from UNKNOWN (unknown [172.20.243.134]) by smtp6-g21.free.fr (Postfix) with ESMTP id 98CB982252 for ; Sat, 13 Aug 2011 04:08:30 +0200 (CEST) Received: by UNKNOWN (Postfix, from userid 0) id 93CF8852D34D6; Sat, 13 Aug 2011 04:08:29 +0200 (CEST) Received: from ([66.108.127.87]) by imp.free.fr (IMP) with HTTP for ; Sat, 13 Aug 2011 04:08:29 +0200 Message-ID: <1313201309.4e45dc9d7aff9@imp.free.fr> Date: Sat, 13 Aug 2011 04:08:29 +0200 From: pierrchp@free.fr To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 66.108.127.87 Subject: [Caml-list] native plugin ocaml-mysql Hello, I am trying to compile a plugin for ocaml-mysql, in order to use it with the native version of the ocsigen webserver. I ran into the following problem: ocamlopt -shared -linkall -o mysql.cmxs mysql.cmxa usr/bin/ld: cannot find -lmysql_stubs collect2: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking I looked at how mysql.cmxa was compiled : ocamlopt -a -cclib -lmysql_stubs -cclib -lzocamlopt -o mysql.cmxa mysql.cmx which does not raise any error, and tried : ocamlopt -shared -cclib -lmysql_stubs -cclib -lzocamlopt -o mysql.cmxs mysql.cmx with the same error. Any idea on how to make that native plugin ? Cheers -Pierre