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=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr 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 273D4BBCA for ; Thu, 3 Apr 2008 09:12:16 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvQBAPIe9EeK54gDiGdsb2JhbACRTwEBAQ8mmWk X-IronPort-AV: E=Sophos;i="4.25,597,1199660400"; d="scan'208";a="9135373" Received: from rouge.crans.org ([138.231.136.3]) by mail2-smtp-roc.national.inria.fr with ESMTP; 03 Apr 2008 09:12:15 +0200 Received: from localhost (localhost.crans.org [127.0.0.1]) by rouge.crans.org (Postfix) with ESMTP id E289D8079; Thu, 3 Apr 2008 09:12:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at crans.org Received: from rouge.crans.org ([10.231.136.3]) by localhost (rouge.crans.org [10.231.136.3]) (amavisd-new, port 10024) with LMTP id vVN-fGjK+aWQ; Thu, 3 Apr 2008 09:12:14 +0200 (CEST) Received: from [138.231.142.254] (korell.crans.org [138.231.142.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rouge.crans.org (Postfix) with ESMTP id 8CDC78071; Thu, 3 Apr 2008 09:12:14 +0200 (CEST) Message-ID: <47F4834D.6010800@glondu.net> Date: Thu, 03 Apr 2008 09:12:13 +0200 From: =?UTF-8?B?U3TDqXBoYW5lIEdsb25kdQ==?= User-Agent: Thunderbird 1.5.0.14ubu (X11/20080306) MIME-Version: 1.0 To: Yitzhak Mandelbaum Cc: Eric Cooper , caml-list@yquem.inria.fr Subject: Re: [Caml-list] Ocamlnet and EINPROGRESS References: <42D3D95E-3C90-4C9E-BB4B-34F8107DE4F6@research.att.com> <20080403015251.GA20849@stratocaster.home> <46F1D786-911B-4177-8D51-82D86F4E6D45@research.att.com> <20080403023058.GA22150@stratocaster.home> <2E48665C-67B4-4182-BC23-EBA1A6DF9BF6@research.att.com> In-Reply-To: <2E48665C-67B4-4182-BC23-EBA1A6DF9BF6@research.att.com> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=FCE03DAA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; ocamlnet:01 yitzhak:01 mandelbaum:01 ocamlfind:01 ocamlc:01 -package:01 -linkpkg:01 ocamlfind:01 ocamlc:01 -thread:01 -package:01 netclient:01 -linkpkg:01 cheers:01 phane:98 Yitzhak Mandelbaum a =C3=A9crit : > timelib.cma: mintime.ml ocamlfind ocamlc -package unix -linkpkg \ -o $@= > -a mintime.ml > minprog: timelib.cma unixprog.ml ocamlfind ocamlc $(INCLUDES) -thread= > -o $@ \ -package netclient -linkpkg $^ minprog.ml With these rules, you link the Unix module twice. Try without -linkpkg in the first rule. More generally, avoid using -linkpkg when making .cma unless you know what you are doing (use it only in the final stage of linking). Cheers, --=20 St=C3=A9phane