From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 94920BC69 for ; Mon, 25 Jun 2007 20:24:37 +0200 (CEST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5PIOaQb027167 for ; Mon, 25 Jun 2007 20:24:37 +0200 Received: by wa-out-1112.google.com with SMTP id m34so2299231wag for ; Mon, 25 Jun 2007 11:24:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=LNWFcPphx9s/WGkxoG7cnMSnicd9/5rEfZFT5NTwiYabqvQUreZI65wZH9EOftKyivnepnmhNCYQQ8p0DUOwdDfRQkZGYQQfIqoPYwoIj/08Vye9+IZAFBl1wOQvbPHB6r8DsnmBWJyEYIcHbm5EYdQXIoXKTffoTIwR9Bzm0GY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=PwWgdPTgjYZZj6RtDYpnHuEyyJiHa4elNdbtdaZTP9+JP5vJOzsHhwJt12Ki4GSSXf0o75Qwdz+dQKOjDxKb5rEnDBxfPYZxs6ZBhcG7Fb7ZLW0a6Q8ulImYBGdSp94D26rA+GbvxrHUfHCjYfAq8Grm3Pz0dXSbS0kp0/3TJZ0= Received: by 10.114.197.1 with SMTP id u1mr5657686waf.1182795875505; Mon, 25 Jun 2007 11:24:35 -0700 (PDT) Received: by 10.115.76.7 with HTTP; Mon, 25 Jun 2007 11:24:35 -0700 (PDT) Message-ID: Date: Mon, 25 Jun 2007 11:24:35 -0700 From: "Jake Donham" Sender: jake.donham@gmail.com To: "Martin Jambon" , caml-list@inria.fr Subject: Re: [Caml-list] camlp4 -I and shared libs In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: ea2b1111c6e3a25e X-Miltered: at discorde with ID 46800864.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 libs:01 -linkpkg:01 ocamlfind:01 ocamlc:01 camlp:01 -package:01 pcre:01 ocamlfind:01 ocamlc:01 -package:01 pcre:01 -linkpkg:01 cmo:01 usr:01 > It seems you forgot either -c or -linkpkg. > The following should work. > > ocamlfind ocamlc -c -syntax camlp4o -package micmatch_pcre toto.ml > ocamlfind ocamlc -o toto -syntax camlp4o -package micmatch_pcre -linkpkg toto.ml Thanks for the reply. This does not seem to be the problem however. In my last message I was recreating from memory--here is my actual command line and the response: ocamlfind ocamlc -g -syntax camlp4o -ppopt pa_micmatch_pcre.cmo -package extlib,calendar,camlpdf,micmatch_pcre -I .. -c scrape.ml Error while loading "/usr/local/lib/ocaml/site-lib/pcre/pcre.cma": error loading shared library: dllpcre_stubs.so: cannot open shared object file: No such file or directory. Preprocessor error. I spent some time debugging it, and I see no way that the dynamic loading code could find dllpcre_stubs.so without the appropriate path being added. Thanks, Jake