caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Crach de l'installation de pxp
@ 2010-11-03 15:09 Sebastien Ferre
  2010-11-03 16:41 ` [Caml-list] " Stéphane Glondu
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Ferre @ 2010-11-03 15:09 UTC (permalink / raw)
  To: OCaml List; +Cc: Yves Bekkers

Bonjour,

Nous essayons d'installer le package ocaml pxp après avoir installé avec 
succès pcre requis.
L'installation de pxp crach avec des problèmes avec pcre ...

Version Ocaml : 3.11
Version pcre : 6.1.1
Version pxp : 1.2.1
O.S. Linux  2.6.34-gentoo-r4

Voici la trace de l'installation de pxp. quequ'un peut-il nous dire 
comment contourner cette difficulté ?


make -C tools all
make[1]: entrant dans le répertoire « /root/soclib/pxp-1.2.1/tools »
make -C src
make[2]: entrant dans le répertoire « /root/soclib/pxp-1.2.1/tools/src »
make -C m2parsergen
make[3]: entrant dans le répertoire « 
/root/soclib/pxp-1.2.1/tools/src/m2parsergen »
make[3]: Rien à faire pour « all ».
make[3]: quittant le répertoire « 
/root/soclib/pxp-1.2.1/tools/src/m2parsergen »
make -C lexpp
make[3]: entrant dans le répertoire « 
/root/soclib/pxp-1.2.1/tools/src/lexpp »
ocamlfind ocamlc -g  -package "netstring" -o lexpp -linkpkg 
uni_types.cmo uni_lexer.cmo uni_parser.cmo lexpp_file.cmo mll_lexer.cmo 
ucs2_to_utf8.cmo main.cmo
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_dealloc_tables':
pcre_stubs.c:(.text+0x1c): undefined reference to `pcre_free'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_dealloc_regexp':
pcre_stubs.c:(.text+0x4d): undefined reference to `pcre_free'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_config_match_limit_stub':
pcre_stubs.c:(.text+0xda): undefined reference to `pcre_config'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_config_stackrecurse_stub':
pcre_stubs.c:(.text+0x10a): undefined reference to `pcre_config'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_config_link_size_stub':
pcre_stubs.c:(.text+0x14a): undefined reference to `pcre_config'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_config_newline_stub':
pcre_stubs.c:(.text+0x17a): undefined reference to `pcre_config'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_config_utf8_stub':
pcre_stubs.c:(.text+0x1aa): undefined reference to `pcre_config'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_names_stub':
pcre_stubs.c:(.text+0x275): undefined reference to `pcre_fullinfo'
pcre_stubs.c:(.text+0x293): undefined reference to `pcre_fullinfo'
pcre_stubs.c:(.text+0x2b1): undefined reference to `pcre_fullinfo'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_lastliteral_stub':
pcre_stubs.c:(.text+0x405): undefined reference to `pcre_fullinfo'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_firstbyte_stub':
pcre_stubs.c:(.text+0x4d5): undefined reference to `pcre_fullinfo'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o):pcre_stubs.c:(.text+0x5c5): 
more undefined references to `pcre_fullinfo' follow
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_get_stringnumber_stub':
pcre_stubs.c:(.text+0xa1f): undefined reference to `pcre_get_stringnumber'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_maketables_stub':
pcre_stubs.c:(.text+0xabc): undefined reference to `pcre_maketables'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_exec_stub':
pcre_stubs.c:(.text+0xd69): undefined reference to `pcre_exec'
pcre_stubs.c:(.text+0xe27): undefined reference to `pcre_exec'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_firsttable_stub':
pcre_stubs.c:(.text+0x10a7): undefined reference to `pcre_fullinfo'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_study_stub':
pcre_stubs.c:(.text+0x1203): undefined reference to `pcre_study'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_compile_stub':
pcre_stubs.c:(.text+0x1276): undefined reference to `pcre_compile'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_version_stub':
pcre_stubs.c:(.text+0x1334): undefined reference to `pcre_version'
/usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function 
`pcre_ocaml_init':
pcre_stubs.c:(.text+0x1409): undefined reference to `pcre_callout'
collect2: ld a retourné 1 code d'état d'exécution
File "_none_", line 1, characters 0-1:
Error: Error while building custom runtime system
make[3]: *** [lexpp] Erreur 2
make[3]: quittant le répertoire « /root/soclib/pxp-1.2.1/tools/src/lexpp »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /root/soclib/pxp-1.2.1/tools/src »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /root/soclib/pxp-1.2.1/tools »
make: *** [all] Erreur 2


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

* Re: [Caml-list] Crach de l'installation de pxp
  2010-11-03 15:09 Crach de l'installation de pxp Sebastien Ferre
@ 2010-11-03 16:41 ` Stéphane Glondu
  0 siblings, 0 replies; 2+ messages in thread
From: Stéphane Glondu @ 2010-11-03 16:41 UTC (permalink / raw)
  To: Sebastien Ferre; +Cc: OCaml List, Yves Bekkers

Le 03/11/2010 16:09, Sebastien Ferre a écrit :
> Nous essayons d'installer le package ocaml pxp après avoir installé avec
> succès pcre requis.
> L'installation de pxp crach avec des problèmes avec pcre ...
> [...]
> ocamlfind ocamlc -g -package "netstring" -o lexpp -linkpkg uni_types.cmo
> uni_lexer.cmo uni_parser.cmo lexpp_file.cmo mll_lexer.cmo
> ucs2_to_utf8.cmo main.cmo
> /usr/lib/ocaml/site-lib/pcre/libpcre_stubs.a(pcre_stubs.o): In function
> `pcre_dealloc_tables':
> pcre_stubs.c:(.text+0x1c): undefined reference to `pcre_free'
> [...]

It looks like you are missing pcre in your link flags. They should be 
embedded in pcre.{cma,cmxa} (try objinfo on pcre.cma). Could you try the 
same "ocamlfind ..." commandline with -verbose and see what command(s) 
are actually called? Does adding "-custom" change anything w.r.t. 
success or failure?


Cheers,

-- 
Stéphane


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

end of thread, other threads:[~2010-11-03 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-03 15:09 Crach de l'installation de pxp Sebastien Ferre
2010-11-03 16:41 ` [Caml-list] " Stéphane Glondu

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