From: Mary Fernandez <mff@research.att.com>
To: Damien Bobillot <damien.bobillot@m4x.org>
Cc: Kathleen S Fisher <kfisher@research.att.com>,
Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Link errors with O'Caml 3.09 on MacOS
Date: Wed, 23 Nov 2005 10:17:33 -0500 [thread overview]
Message-ID: <1132759053.4008.39.camel@localhost.localdomain> (raw)
In-Reply-To: <839F88BA-52A7-4905-BE12-F2EDF301CEF6@m4x.org>
Hi Damien,
Thanks for your quick response. I have another linking
problem on the Mac O/S 10.4 with O'Caml 3.09. I'm getting
undefined _caml* symbols (see below). From the link step,
you can see that I'm using a lot of libraries
(pcre, netstring, pxp, camomile, etc).
Any ideas?
Thanks, Mary
/usr/local/bin/ocamlopt -linkall -o galax-run.opt -I
/usr/local/lib/ocaml/site-lib/pcre -I
/usr/local/lib/ocaml/site-lib/netstring -I
/us\r/local/lib/ocaml/site-lib/pxp-engine -I
/usr/local/lib/ocaml/site-lib/pxp-lex-iso88591 -I
/usr/local/lib/ocaml/site-lib/pxp-lex-utf8 -I
\/usr/local/lib/ocaml/site-lib/camomile nums.cmxa unix.cmxa str.cmxa
pcre.cmxa netstring.cmxa pxp_engine.cmxa pxp_lex_utf8.cmxa
pxp_lex_li\nk_utf8.cmx pxp_lex_iso88591.cmxa pxp_lex_link_iso88591.cmx
bigarray.cmxa camomile.cmxa -cclib -lnums -cclib -lunix -cclib -lstr
-cclib -\lpcre_stubs -cclib -lpcre -ccopt -L/usr/local/lib -ccopt
-L/usr/local/lib/ocaml/site-lib/pcre galax.cmxa
toplevel/galax-run.cmx -I /\usr/local/lib/ocaml/site-lib/pcre -I
/usr/local/lib/ocaml/site-lib/netstring -I
/usr/local/lib/ocaml/site-lib/pxp-engine -I
/usr/local/lib/ocaml/site-lib/camomile ... all my .cmx files ...
ld: Undefined symbols:
_camlAvlTree
_camlBitsvect
_camlByte_labeled_dag
_camlBytesvect
_camlCaseMap
_camlCharEncoding
_camlCharmap
_camlHangul
_camlIMap
_camlISet
_camlLocale
_camlOOChannel
_camlSubText
_camlTbl31
_camlUCS4
_camlUChar
_camlUCharInfo
_camlUCharTbl
_camlUCol
_camlULine
----:**-F1 *shell*
(Shell:run)--L??--98%---------------------------------------------------------------------------------------
On Tue, 2005-11-22 at 06:45, Damien Bobillot wrote:
> Kathleen Fisher wrote :
>
> > We installed O'Caml 3.09 on MacOS 10.4 from the .dmg image, then
> > installed
> > Camlidl with no errors. When we link our Camlidl test program,
> > we get the link errors below. However, when we install OCaml 3.09
> > from source, compile it, and install Camlidl, we do not get
> > any link errors.
> >
> > Can someone explain this behavior?
> >
> > Thanks!
> > Kathleen Fisher
> >
> > /usr/local/bin/ocamlc -I /usr/local/lib/ocaml -cc cc -custom -o
> > test test.cmo test_stubs.o test.o test_idl.cmo /usr/local/lib/ocaml/
> > libcamlidl.a
> > ld: Undefined symbols:
> > _sprintf$LDBLStub
> > _fprintf$LDBLStub
> > _sscanf$LDBLStub
>
> Try to add the following options : -cclib -lSystemStub
--
Mary Fernandez <mff@research.att.com>
AT&T Labs - Research
next prev parent reply other threads:[~2005-11-23 15:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 19:01 Link errors with O'Caml 3.09 and Camlidl 1.05 Kathleen Fisher
2005-11-22 11:45 ` [Caml-list] " Damien Bobillot
2005-11-23 15:17 ` Mary Fernandez [this message]
2005-11-23 15:34 ` [Caml-list] Link errors with O'Caml 3.09 on MacOS Alain Frisch
2006-02-10 13:06 ` Mary Fernandez
2006-02-14 12:52 ` Alain Frisch
2006-02-14 13:00 ` Alain Frisch
2006-02-14 14:00 ` Yoriyuki Yamagata
2006-02-14 14:25 ` Mary Fernandez
2006-02-14 13:24 car
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=1132759053.4008.39.camel@localhost.localdomain \
--to=mff@research.att.com \
--cc=caml-list@inria.fr \
--cc=damien.bobillot@m4x.org \
--cc=kfisher@research.att.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