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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2B0BDBC69 for ; Fri, 30 Mar 2007 00:22:33 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2TMMWXs009588 for ; Fri, 30 Mar 2007 00:22:32 +0200 Received: by nz-out-0506.google.com with SMTP id l8so284277nzf for ; Thu, 29 Mar 2007 15:22:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=TaLt3kRbISF+TWfKy4wsLZZEW+jWjeWwArBJkHMMomEInxNzhyiLelN+fAEMqU5j4MOxZECgCb8HhQ0qcO7j8dzXTrWOZJuYTWF5zT1WC5Snkb11GurnPjvN95JoemHxTUIYL8djh8Bk7wYLEc5D4zf8A+J3GRJk6mpRP/UxVfU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=Jh5Y+zT4R7Ivn2r0PgGVoZHwDxLUPtjQH4gAQ91Z+wIVkrO6RN3pAs5R/Wvg9DlKgJROjyuAfuMTdZaFq/Px7ZoFlk2GYsheDGzSBTWdKcaCnSxnp6lwWY2kmgpKfiVfIIxRvkm+gvJ06JchMTWOu5JN721hgVBo5fMfwC+6GKE= Received: by 10.65.214.19 with SMTP id r19mr2531967qbq.1175206951913; Thu, 29 Mar 2007 15:22:31 -0700 (PDT) Received: from ?192.168.1.34? ( [83.52.61.101]) by mx.google.com with ESMTP id n22sm3046799nfc.2007.03.29.15.22.30; Thu, 29 Mar 2007 15:22:31 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <2A0CAD37-6509-4FD8-A5C0-D704C7E17E2A@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Caml List From: Joel Reymont Subject: OCaml and C code in a dynamic library Date: Thu, 29 Mar 2007 23:22:27 +0100 X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 460C3C28.000 on concorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at concorde with ID 460C3C28.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 osx:01 usr:01 bin:01 dynamic:03 dynamic:03 static:03 library:03 library:03 entries:05 succeeded:08 build:12 but:14 some:14 Has anyone succeeded in wrapping OCaml code in a dynamic library for use in C? I can build a static OCaml library without any problems but when I try to package that and some other C code in a dynamic library I get errors like this on Mac OSX: /usr/bin/ld: ./libfib.a(fibcaml.o) has local relocation entries in non-writable section (__TEXT,__text) Thanks, Joel -- http://wagerlabs.com/