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.9 required=5.0 tests=HTML_10_20,HTML_MESSAGE, NO_REAL_NAME,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 1C526BC0A for ; Fri, 17 Nov 2006 02:14:29 +0100 (CET) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kAH1ESSW012500 for ; Fri, 17 Nov 2006 02:14:28 +0100 Received: by wx-out-0506.google.com with SMTP id i29so794157wxd for ; Thu, 16 Nov 2006 17:14:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=niK8nz+iMLMJBRR7BO44SfQMThzWE1mzrs35VoE382E999J8fYencOtz5G9iTt3i7Uf5WUH/lUdEY/SFEYRRtB+W2KOqkWUywDStIxCVHvOQBgI1ctStqwYqVa8/YNoZilkBkucCMWnVGLzySAC8QPC4KOruFooRq7e8it1X84M= Received: by 10.70.59.17 with SMTP id h17mr1933805wxa.1163726063457; Thu, 16 Nov 2006 17:14:23 -0800 (PST) Received: by 10.70.14.5 with HTTP; Thu, 16 Nov 2006 17:14:23 -0800 (PST) Message-ID: <9781290e0611161714h70822e5dyd6ddd3baf6672fb7@mail.gmail.com> Date: Fri, 17 Nov 2006 10:14:23 +0900 From: takanotume@gmail.com To: caml-list@yquem.inria.fr Subject: link with librrd MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_68973_9039710.1163726063319" X-j-chkmail-Score: MSGID : 455D0CF4.000 on discorde : j-chkmail score : X : 0/20 1 X-Miltered: at discorde with ID 455D0CF4.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 gcc:01 -static:01 bytecode:01 bytecode:01 compile:01 compile:01 native:02 native:02 library:03 library:03 exit:04 exit:04 shared:04 ------=_Part_68973_9039710.1163726063319 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm trying to compile my Ocaml code with librrd (RRDtool library), but the linked native code doesn't work correctly. When run the code, it doesn't jumps to Ocaml part but librrd's part and exit. I feel librrd is doubtful because it include "main" symbol. e.g., "gcc -static" fails by duplicate "main" symbols. In case of Ocaml bytecode, it works well with shared librrd. Anyone know how to make native code with librrd? Nobuhiko Tsuruoka ------=_Part_68973_9039710.1163726063319 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm trying to compile my Ocaml code with librrd (RRDtool library), but the linked native code doesn't work correctly.
When run the code, it doesn't jumps to Ocaml part but librrd's part and exit.
I feel librrd is doubtful because it include "main" symbol. e.g., "gcc -static" fails by duplicate "main" symbols.

In case of Ocaml bytecode,  it works well with shared librrd.

Anyone know how to make native code with librrd?

Nobuhiko Tsuruoka

------=_Part_68973_9039710.1163726063319--