Version française
Home     About     Download     Resources     Contact us    
Browse thread
help using json-wheel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Greg Meredith <lgreg.meredith@g...>
Subject: Re: [Caml-list] help using json-wheel
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