From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA07133; Fri, 18 Apr 2003 01:42:38 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA06909 for ; Fri, 18 Apr 2003 01:42:37 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h3HNgA906747 for ; Fri, 18 Apr 2003 01:42:27 +0200 (MET DST) Received: from greything.gak.com (12-235-178-211.client.attbi.com[12.235.178.211]) by sccrmhc02.attbi.com (sccrmhc02) with SMTP id <2003041723420400200aq33le>; Thu, 17 Apr 2003 23:42:05 +0000 Message-Id: <4.3.2.7.2.20030417161344.05d6ed50@mail.attbi.com> X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Thu, 17 Apr 2003 16:43:49 -0700 To: caml-list@inria.fr From: Greg Kimberly Subject: [Caml-list] A step short of -noautolink? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam: no; 0.00; -noautolink:01 gerd:01 ocamlnet:01 findlib:01 pcre-ocaml:01 pcre:01 libpcre:01 usr:01 implicitly:01 -lpcre:01 overlooking:01 figuring:01 caml:01 lib:01 makefile:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm new to caml so apologies if this is too obvious. I've installed Gerd Stolpmann's intriguing ocamlnet package. It and the required prerequisites (e.g. findlib) installed with only one problem on my RedHat 8 system. The one problem is that prerequisite package pcre-ocaml (version 5.02.0) contains a .cma file that refers to the pcre library. On RedHat 8 the pre-installed version of libpcre is 3.9-5 (it is in /lib/), while pcre-ocaml v5.02 needs a newer libpcre (I downloaded 4.1 and installed it in /usr/local/lib/). So far, so good. Unfortunately, the default build for the examples fails because the examples implicitly include pcre.cma which contains linker directives which cause the /lib/libpcre.so.0 to be linked- which is the wrong version. At this point I can see two possible fixes: Upgrade the version of libpcre in /lib - not good in the general case as it might cause compatiblility problems elsewhere Use -noautolink in the example makefile to suppress the inclusion of the linker directive -lpcre which has been inherited from pcre.cma This is the solution I'm using but it seems non-optimal to throw away all included linker directives just to remove one unwanted dependency. Is there some better way to deal with this issue that I'm overlooking? Is there some way to tell camlc to ignore a particular inherited directive from a .cma? This concern may seem pedantic, but I find that figuring out how to do these sorts of things efficiently when starting to use a development environment makes life a lot easier down the road. Thanks, Greg ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners