caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Greg Meredith" <lgreg.meredith@gmail.com>
To: "Gerd Stolpmann" <info@gerd-stolpmann.de>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] help using json-wheel
Date: Wed, 17 Jan 2007 15:59:43 -0800	[thread overview]
Message-ID: <5de3f5ca0701171559h3c75d473ue9721b1fa7ad0ba1@mail.gmail.com> (raw)
In-Reply-To: <1169076487.6906.26.camel@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 4337 bytes --]

Gerd, et al,

Martin wrote to and nudged me toward the better use of ocamlfind. Many
thanks to all who have responded. My usage pattern of OCaml hadn't put me in
contact with this aspect of the OCaml environment. How could have gotten by
without it?

Best wishes,

--greg

On 1/17/07, Gerd Stolpmann <info@gerd-stolpmann.de> wrote:
>
> Am Mittwoch, den 17.01.2007, 12:25 -0800 schrieb Greg Meredith:
> > All,
> >
> > i'm trying to use Martin Jambon's json-wheel. The dependency chain
> > backs up into pcre. When i add that to the list of libs, i get a
> > missing external which i thought might be in libpcre_stubs.a in the
> > pcre pkg lib. But, no joy. Any help would be greatly appreciated.
> >
> > Best wishes,
> >
> > --greg
> >
> > -*- mode: compilation; default-directory:
> > "~/work/src/projex/biosimilarity/reflection/rho/ocaml/" -*-
> > Compilation started at Wed Jan 17 12:17:34
> >
> > make -k
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c rho.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c vm.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c logic.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c mc.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c geometry.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c geometrize.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c shell.ml
> > ocamllex lexer.mll
> > 40 states, 261 transitions, table size 1284 bytes
> > ocamlyacc parser.mly
> > ocamlc -g -c parser.mli
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c lexer.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c parser.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c frontend.ml
> > ocamlc -g -I `ocamlfind query pcre` -I `ocamlfind query netstring` -I
> > `ocamlfind query json-wheel` -c repl.ml
> > ocamlc -ccopt -L`ocamlfind query pcre` -cclib -llibpcre_stubs.a -I
> > `ocamlfind query pcre` -I `ocamlfind query netstring` -I `ocamlfind
> > query json-wheel` dynlink.cma pcre.cma netstring.cma jsonwheel.cma
> > rho.cmo vm.cmo logic.cmo mc.cmo geometry.cmo geometrize.cmo shell.cmo
> > lexer.cmo parser.cmo frontend.cmo repl.cmo -o repl
>
> Why this mess of -I/-L options?
>
> ocamlfind ocamlc -package pcre,netstring,json-wheel -linkpkg \
> rho.cmo ... repl.cmo -o repl
>
> should do the trick. My guess would be that it does not find libpcre.so,
> or the wrong one.
>
> Gerd
>
> > Error while
> > linking
> /Users/lgm/work/src/devtools/ocaml/godi/lib/ocaml/pkg-lib/pcre/pcre.cma(Pcre):
> > The external function `pcre_isspace_stub' is not available
> > make: *** [repl] Error 2
> > make: Target `all' not remade because of errors.
> >
> > Compilation exited abnormally with code 2 at Wed Jan 17 12:17:34
> >
> > note i get the same behavior if i try the following variations:
> >
> > -cclib -lpcre_stubs.a
> >
> > or
> >
> > pass libpcre_stubs.a as a library to ocamlc instead of passing it on
> > as a cclib.
> >
> > --
> > L.G. Meredith
> > Partner
> > Biosimilarity LLC
> > 505 N 72nd St
> > Seattle, WA 98103
> >
> > +1 206.650.3740
> > _______________________________________________
> > Caml-list mailing list. Subscription management:
> > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> > Archives: http://caml.inria.fr
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
> --
> ------------------------------------------------------------
> Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
> gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
> Phone: +49-6151-153855                  Fax: +49-6151-997714
> ------------------------------------------------------------
>
>


-- 
Meredith Gregory
Partner
Biosimilarity LLC
505 N 72nd St
Seattle, WA 98103

+1 206.650.3740

[-- Attachment #2: Type: text/html, Size: 5834 bytes --]

      reply	other threads:[~2007-01-17 23:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 20:25 Greg Meredith
2007-01-17 23:28 ` [Caml-list] " Gerd Stolpmann
2007-01-17 23:59   ` Greg Meredith [this message]

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=5de3f5ca0701171559h3c75d473ue9721b1fa7ad0ba1@mail.gmail.com \
    --to=lgreg.meredith@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=info@gerd-stolpmann.de \
    /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).