From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id E2E0A820A1 for ; Fri, 9 Aug 2013 11:34:02 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.89,844,1367964000"; d="scan'208";a="23587176" Received: from adijon-153-1-57-105.w81-51.abo.wanadoo.fr (HELO alcazar) ([81.51.200.105]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 09 Aug 2013 11:34:02 +0200 Date: Fri, 9 Aug 2013 11:33:48 +0200 From: Maxence Guesdon To: caml-list@inria.fr Message-ID: <20130809113348.3a174c2f@alcazar> In-Reply-To: <5204B5E7.9000409@glondu.net> References: <20130809110908.0c2145c9@alcazar> <5204B5E7.9000409@glondu.net> Organization: INRIA X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Problem native dynlink loading cryptokit On Fri, 09 Aug 2013 11:27:03 +0200 St=C3=A9phane Glondu wrote: > Le 09/08/2013 11:09, Maxence Guesdon a =C3=A9crit : > > Here is a test program: > > [...] > > gives me the following error: > >=20 > > Fatal error: exception Failure("error loading shared > > library: /home/guesdon/.opam/4.00.1/lib/cryptokit/cryptokit.cmxs: > > undefined symbol: caml_sha1_init") > >=20 > > Am I doing something wrong ? Or is something missing in cryptokit > > build ? >=20 > It works for me (with system packages). >=20 > caml_sha1_init should be in cryptokit.cmxs. The output of >=20 > objdump -j .text -T /path/to/cryptokit.cmxs >=20 > should contain all the C functions defined in cryptokit, plus some > caml_curry* functions and camlCryptokit__* functions (compiled from > OCaml). Is it true for you? No, I only have camlCryptokit__sha1_init_3833 which I assume corresponds to the function of src/cryptokit.ml: external sha1_init: unit -> string =3D "caml_sha1_init" - m