Re: [Caml-list] Batteries and portability

2009-06-13 Thread dmitry grebeniuk
2009/6/13 Peng Zang : > Has anyone pushed this patch upstream to the > camomile author(s)? > > It seems like a good change that should be made > in the original sources to make it more portable... This patch is very useful (at least for me; thanks, Tiphaine!), but it's not performance-wise to m

Re: [Caml-list] Batteries and portability

2009-06-13 Thread Peng Zang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Has anyone pushed this patch upstream to the camomile author(s)? It seems like a good change that should be made in the original sources to make it more portable... Peng On Friday 12 June 2009 09:08:47 am Tiphaine Turpin wrote: > The following comp

Re: [Caml-list] Batteries and portability

2009-06-12 Thread Tiphaine Turpin
The following completed patch works for me. Tiphaine dmitry grebeniuk a écrit : > If you really don't use camomile and it is not used > in batteries indirectly, you can defer initialization. > Apply the patch to camomile: > http://overbld.abcname.net/files/camomile-noprecomp.html > But the patc

Re: [Caml-list] Batteries and portability

2009-06-12 Thread David Rajchenbach-Teller
We could try that, but that looks to me like something that would break more things than it would fix. Cheers, David On Thu, 2009-06-11 at 17:42 +0200, David MENTRE wrote: > Wouldn't it be possible to convert those files into OCaml strings and > use them instead? They would be included in the co

Re: [Caml-list] Batteries and portability

2009-06-11 Thread Tiphaine Turpin
I'll try that. thanks a lot. Tiphaine dmitry grebeniuk a écrit : >> When trying to execute a compiled program on another machine, I get the >> following error: >> >> Fatal error: exception >> Sys_error("/usr/share/camomile/database/general_category.mar: No such >> file or directory") >> >> I don

Re: [Caml-list] Batteries and portability

2009-06-11 Thread dmitry grebeniuk
> When trying to execute a compiled program on another machine, I get the > following error: > > Fatal error: exception > Sys_error("/usr/share/camomile/database/general_category.mar: No such > file or directory") > > I don't think I'm using camomille and I'm not compiling with -linkall This err

Re: [Caml-list] Batteries and portability

2009-06-11 Thread dmitry grebeniuk
> When trying to execute a compiled program on another machine, I get the > following error: > > Fatal error: exception > Sys_error("/usr/share/camomile/database/general_category.mar: No such > file or directory") > > I don't think I'm using camomille and I'm not compiling with -linkall This err

Re: [Caml-list] Batteries and portability

2009-06-11 Thread Tiphaine Turpin
Edgar Friendly a écrit : > If someone has a solution for this, we'd love to solve this problem in a > not-too-hackish way, but I worry that a non-camomile build of batteries > is the only way to eliminate this dependency. Is it possible ? I'm not able to run the configure script without Camomile.

Re: [Caml-list] Batteries and portability

2009-06-11 Thread Edgar Friendly
Tiphaine Turpin wrote: > Dear list, > > When trying to execute a compiled program on another machine, I get the > following error: > > Fatal error: exception > Sys_error("/usr/share/camomile/database/general_category.mar: No such > file or directory") > > I don't think I'm using camomille and I'

[Caml-list] Batteries and portability

2009-06-11 Thread Tiphaine Turpin
Dear list, When trying to execute a compiled program on another machine, I get the following error: Fatal error: exception Sys_error("/usr/share/camomile/database/general_category.mar: No such file or directory") I don't think I'm using camomille and I'm not compiling with -linkall, however link