From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 09104BC57 for ; Wed, 17 Mar 2010 09:39:33 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsBAIUyoEsmachzmWdsb2JhbACbFwEBAQEBBg0KBxMitzCEdgQ X-IronPort-AV: E=Sophos;i="4.49,656,1262559600"; d="scan'208";a="47004559" Received: from mx2.janestreet.com (HELO mx1.janestreet.com) ([38.105.200.115]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Mar 2010 09:39:13 +0100 Received: from nyc-qsv-mail1.delacy.com ([172.25.22.57]) by mx1.janestreet.com with esmtp (Exim 4.71) (envelope-from ) id 1NromU-00032M-TT for caml-list@inria.fr; Wed, 17 Mar 2010 11:39:10 +0300 Received: from nyc-qsv-004.delacy.com ([172.25.22.194] helo=qsmtp.delacy.com) by nyc-qsv-mail1.delacy.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1NromU-0000zS-Rm; Wed, 17 Mar 2010 04:39:10 -0400 Received: from lon-qws-r01.delacy.com ([172.30.3.51] helo=lon-qws-r01) by qsmtp.delacy.com with smtp (Exim 4.71) (envelope-from ) id 1NromS-0000Bj-Hp; Wed, 17 Mar 2010 04:39:09 -0400 Received: by lon-qws-r01 (sSMTP sendmail emulation); Wed, 17 Mar 2010 08:39:07 +0000 From: "Mark Shinwell" Date: Wed, 17 Mar 2010 08:39:07 +0000 To: Goswin von Brederlow Cc: caml-list Subject: Re: [Caml-list] Rewriting the Digest module causes linking errors Message-ID: <20100317083907.GC26002@janestreet.com> References: <87wrxb5p59.fsf@frosties.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wrxb5p59.fsf@frosties.localdomain> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam: no; 0.00; shinwell:01 rewriting:01 0100,:01 bigarrays:01 patched:01 ocaml:01 stdlib:01 ocamlc:01 ocaml:01 ocaml-:01 ocaml-:01 compiler:01 wrote:01 rewrite:01 caml-list:01 On Wed, Mar 17, 2010 at 09:27:30AM +0100, Goswin von Brederlow wrote: > I want to rewrite the Digest module to expose a more lowlevel interface > to the md5 digest and add support to digest Bigarrays. I've patched the > respective files involved and it all looks alright but when I try to > build ocaml I get the following error: > > File "_none_", line 1, characters 0-1: > Error: Error while linking boot/stdlib.cma(Digest): > The external function `caml_md5_update_string' is not available > make[2]: *** [ocamlc] Error 2 > make[2]: Leaving directory `/home/mrvn/src/debian/ocaml/ocaml-3.11.2' > make[1]: *** [world] Error 2 > make[1]: Leaving directory `/home/mrvn/src/debian/ocaml/ocaml-3.11.2' > make: *** [build-stamp] Error 2 > > Can anyone explain why the new functions are not available? You need to bootstrap the compiler. I think "make bootstrap" will do the trick, although you may have to run it twice if I remember correctly. Mark