caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Max Skaller <skaller@ozemail.com.au>
To: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
Cc: rnyberg@it.su.se, caml-list@inria.fr
Subject: Re: [Caml-list] shared libraries [pcre-ocaml]
Date: Wed, 24 Apr 2002 10:20:14 +1000	[thread overview]
Message-ID: <3CC5FA3E.9020706@ozemail.com.au> (raw)
In-Reply-To: <20020423094308M.garrigue@kurims.kyoto-u.ac.jp>

Jacques Garrigue wrote:

>>Argg... crappy unix hackery.
>>
>
>Almost correct answer
>

Yeah. The correct answer is to fix the stupid dynamic
loader hackery used in unix systems. Obviously,
there should be a way to load a library from
the directory in which the caller is installed:
that is, the filename

    here/dllpcre.so.0

should be allowed, where 'here' means
" the place that dllpcre.so" was found.
That way would always work provided
both libraries are kept in the same directory.
It is the moral equivalent of what most unix
C compilers do with

#include "relative.h"

where the file is searched for in the directory
in which the including file is located.

Another solution would be to bind the inode
number directly into the caller so that only
physically removing the library could cause
a load failure (and in this case, that would seem
desirable .. you could even consider shared libraries
as being like directories .. so that removal
would fail while there were references ..)

So .. when are the Ocaml team going to design
an operating system based on theory not
historical hackery? <j/2>

-- 
John Max Skaller, mailto:skaller@ozemail.com.au
snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia.
voice:61-2-9660-0850




-------------------
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


  parent reply	other threads:[~2002-04-24  0:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-22  8:30 Richard Nyberg
2002-04-22  9:42 ` Markus Mottl
2002-04-22 10:03   ` Richard Nyberg
2002-04-22 20:29 ` John Max Skaller
2002-04-23  0:43   ` Jacques Garrigue
2002-04-23  6:51     ` Richard Nyberg
2002-04-23  9:59     ` Markus Mottl
2002-04-24  0:20     ` John Max Skaller [this message]
2002-04-24 12:13       ` Xavier Leroy

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=3CC5FA3E.9020706@ozemail.com.au \
    --to=skaller@ozemail.com.au \
    --cc=caml-list@inria.fr \
    --cc=garrigue@kurims.kyoto-u.ac.jp \
    --cc=rnyberg@it.su.se \
    /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;
as well as URLs for NNTP newsgroup(s).