From: Greg Kimberly <lists@gak.com>
To: caml-list@inria.fr
Subject: [Caml-list] A step short of -noautolink?
Date: Thu, 17 Apr 2003 16:43:49 -0700 [thread overview]
Message-ID: <4.3.2.7.2.20030417161344.05d6ed50@mail.attbi.com> (raw)
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
next reply other threads:[~2003-04-17 23:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-17 23:43 Greg Kimberly [this message]
2003-04-18 0:14 ` Jacques Garrigue
2003-04-18 12:24 ` Gerd Stolpmann
2003-04-19 3:07 ` Jacques Garrigue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4.3.2.7.2.20030417161344.05d6ed50@mail.attbi.com \
--to=lists@gak.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox