Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Greg Meredith <lgreg.meredith@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] help using json-wheel
Date: Thu, 18 Jan 2007 00:28:07 +0100	[thread overview]
Message-ID: <1169076487.6906.26.camel@localhost.localdomain> (raw)
In-Reply-To: <5de3f5ca0701171225n2bcd74d2jf6c59b4e2a56859@mail.gmail.com>

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


  reply	other threads:[~2007-01-17 23:28 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 ` Gerd Stolpmann [this message]
2007-01-17 23:59   ` [Caml-list] " Greg Meredith

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=1169076487.6906.26.camel@localhost.localdomain \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=lgreg.meredith@gmail.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