From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=DNS_FROM_RFC_POST,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 249DCBC37 for ; Thu, 11 Jun 2009 17:46:19 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8CAA/EMErRVYTzmGdsb2JhbACYAD8BAQEBAQgJDAcSpjeBGJAMAQMCBIQGBQ X-IronPort-AV: E=Sophos;i="4.42,203,1243807200"; d="scan'208";a="27856888" Received: from an-out-0708.google.com ([209.85.132.243]) by mail2-smtp-roc.national.inria.fr with ESMTP; 11 Jun 2009 17:46:08 +0200 Received: by an-out-0708.google.com with SMTP id b38so840517ana.3 for ; Thu, 11 Jun 2009 08:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=KBXa+yoP/L6+LbeGKKX8rWXR55HRUa/8wD+YJZG/TEE=; b=Bf/upZ+mS4UYOptyM/TBXakeO+/qxV2NR1rCbH7cD5ZVdzPiXj4rfZ36prK0uzk+i3 04PdGKu5IGh7gQNhjydllnDLddMKzFu6/x7TLHSpp5yHKtSd4Rqz/klwJ8oA356RnZne wT43pNzdn0fQvBBvVhMVyhTaj0HOslUTUqQI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sqJicRikmRO2MLgIvcAjrNHoqD9GnS9wRWh3QdILLVIg4vj4x0dCKoHqrsWz+3mjGe oUOyPNMb6AsO8IahHol0wrS4bDgK9W4mQjPYxJsdcsSDCzfvYqxL92IBTncgpxs9TJZr bWG4coW6iHzHZ7dX/OpUup+UQxJWZN5V7K0iY= MIME-Version: 1.0 Received: by 10.100.248.4 with SMTP id v4mr3092378anh.57.1244735165056; Thu, 11 Jun 2009 08:46:05 -0700 (PDT) In-Reply-To: <4A30CD39.1010804@irisa.fr> References: <4A30CD39.1010804@irisa.fr> Date: Thu, 11 Jun 2009 18:46:05 +0300 Message-ID: Subject: Re: [Caml-list] Batteries and portability From: dmitry grebeniuk To: Tiphaine Turpin , caml-list@yquem.inria.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; grebeniuk:01 usr:01 camomile:01 -linkall:01 camomile:01 runtime:01 config:01 exception:01 dmitry:01 caml-list:01 portability:02 compiling:02 sys:03 module:03 module:03 > 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 error appears because of camomile's module initialization (module Default with default config values). 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 patch has a [small] runtime cost.