caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* help using json-wheel
@ 2007-01-17 20:25 Greg Meredith
  2007-01-17 23:28 ` [Caml-list] " Gerd Stolpmann
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Meredith @ 2007-01-17 20:25 UTC (permalink / raw)
  To: caml-list

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

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] help using json-wheel
  2007-01-17 20:25 help using json-wheel Greg Meredith
@ 2007-01-17 23:28 ` Gerd Stolpmann
  2007-01-17 23:59   ` Greg Meredith
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Stolpmann @ 2007-01-17 23:28 UTC (permalink / raw)
  To: Greg Meredith; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] help using json-wheel
  2007-01-17 23:28 ` [Caml-list] " Gerd Stolpmann
@ 2007-01-17 23:59   ` Greg Meredith
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Meredith @ 2007-01-17 23:59 UTC (permalink / raw)
  To: Gerd Stolpmann; +Cc: caml-list

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-17 23:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-17 20:25 help using json-wheel Greg Meredith
2007-01-17 23:28 ` [Caml-list] " Gerd Stolpmann
2007-01-17 23:59   ` Greg Meredith

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