From: Richard Jones <rich@annexia.org>
To: Ranjan Bagchi <ranjan@frotz.com>
Cc: caml-list@inria.fr
Subject: [Caml-list] Re: ocamlc -linkall: problems with external functions?
Date: Tue, 24 Feb 2004 08:35:44 +0000 [thread overview]
Message-ID: <20040224083544.GA13071@redhat.com> (raw)
In-Reply-To: <403AF139.7030303@frotz.com>
On Mon, Feb 23, 2004 at 10:37:45PM -0800, Ranjan Bagchi wrote:
> mod_caml_executable: $(ALL_CMOS) apache_c.o wrappers.o dummy.o
> $(OCAMLC) -linkall -custom $(OCAMLCFLAGS) $(ALL_CMAS) $^ -o $@
>
> results in the very strange startup error (when doing
> /usr/sbin/apachectl start):
> Fatal error: unknown C primitive `pcre_get_match_limit_wrapper'
I'm guessing that this is something to do with the link order ...?
You could try adding the -verbose option to ocamlc which should
display the actual commands it is executing.
> (PS -- why I'm doing this. I'm trying to load into the executable the
> rpc library. The reason why is that Dynlink seems to really dislike
> loading -- at run time -- the rpc.cma and equeue.cma libraries.
> However, I've found that building an executable with --linkall produces
> a system that Dynlink can use to load in code building **using** rpc:
> stub modules, etc)
Hopefully I'm going to be able to fix some of this soon ... by using
the same tricks that Vlad Seryakov uses in his AOLServer/caml program
(see an earlier posting on caml-list).
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
http://www.YouUnlimited.co.uk/ - management courses
-------------------
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 prev parent reply other threads:[~2004-02-24 8:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-24 6:37 [Caml-list] " Ranjan Bagchi
2004-02-24 8:35 ` Richard Jones [this message]
2004-02-24 18:01 ` [Caml-list] " Ranjan Bagchi
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=20040224083544.GA13071@redhat.com \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
--cc=ranjan@frotz.com \
/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