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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 56BAA7F0B9 for ; Wed, 7 Sep 2016 10:58:08 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=christoph.hoeger@tu-berlin.de; spf=None smtp.mailfrom=christoph.hoeger@tu-berlin.de; spf=None smtp.helo=postmaster@mail.tu-berlin.de Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of christoph.hoeger@tu-berlin.de) identity=pra; client-ip=130.149.7.33; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="christoph.hoeger@tu-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of christoph.hoeger@tu-berlin.de) identity=mailfrom; client-ip=130.149.7.33; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="christoph.hoeger@tu-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail.tu-berlin.de) identity=helo; client-ip=130.149.7.33; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="postmaster@mail.tu-berlin.de"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AKNqL+xMfAhNX06SL6TAl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0K/X8rarrMEGX3/hxlliBBdydsKMdzbSP+PixESxYuNDa7yBEKMQNHzY+yu?= =?us-ascii?q?wo3CUYSPafDkP6KPO4JwcbJ+9lEGFfwnegLEJOE9z/bVCB6le77DoVBwmtfVEt?= =?us-ascii?q?fre9ScbuiJG83uW2s4DIbh9TzG62aLZ2aRG3thn5t88MgIIkJLxnmTXTpX4dUO?= =?us-ascii?q?RMxHh0IkqTqDZi6cqqtMpo8z5RoO4m784GUaL3cKkiZaBFST4rKWQ04ovnuE+Q?= =?us-ascii?q?HkO0+nIAXzBOwVJzCA/f4USiUw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CFAwCT1c9XhyEHlYJdHQEYAQYZgnsBA?= =?us-ascii?q?QEBAYEfUqR8lT+IBDwQAQEBAQEBAQEBAQESAQEBCgsJCRkvgjIYgkEPAXsCJgJ?= =?us-ascii?q?TDA0GAgEBiEYEoAWPZoxagQWHIooYgloFmViZF4YBkEs1gjgBAQgCAVOBWW6GM?= =?us-ascii?q?gEBAQ?= X-IPAS-Result: =?us-ascii?q?A0CFAwCT1c9XhyEHlYJdHQEYAQYZgnsBAQEBAYEfUqR8lT+?= =?us-ascii?q?IBDwQAQEBAQEBAQEBAQESAQEBCgsJCRkvgjIYgkEPAXsCJgJTDA0GAgEBiEYEo?= =?us-ascii?q?AWPZoxagQWHIooYgloFmViZF4YBkEs1gjgBAQgCAVOBWW6GMgEBAQ?= X-IronPort-AV: E=Sophos;i="5.30,295,1470693600"; d="scan'208";a="235529889" Received: from mail.tu-berlin.de ([130.149.7.33]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Sep 2016 10:58:07 +0200 X-tubIT-Incoming-IP: 91.66.17.232 Received: from ip5b4211e8.dynamic.kabel-deutschland.de ([91.66.17.232] helo=[192.168.178.42]) by mail.tu-berlin.de (exim-4.84_2/mailfrontend-6) with esmtpsa [TLSv1.2:DHE-RSA-AES128-SHA:128] for id 1bhYgH-0000L1-66; Wed, 07 Sep 2016 10:58:06 +0200 To: caml users From: =?UTF-8?Q?Christoph_H=c3=b6ger?= Organization: =?UTF-8?Q?Technische_Universit=c3=a4t_Berlin?= Message-ID: <6607ba43-1e6f-184d-5c04-5565bdd8604d@tu-berlin.de> Date: Wed, 7 Sep 2016 10:58:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.9.7.84817 X-PMX-Spam: Gauge=IIIIIII, Probability=0%, Report='' Subject: [Caml-list] ctypes and oasis Dear all, I attempt to compile an oasis project structured like this: library Bar Modules: Wrapper CSources: bar.c BuildDepends: ctypes.foreign CCLib: -lfoo Essentially, bar is both an extension of foo and a binding of this extension for OCaml (using ctypes). The "extension" point is problematic. While I can build this lib just fine, the ctype bindings to the extension methods in bar.c are not found at runtime using Dl: Dl.DL_error("./main.native: undefined symbol: some_bar") This is to be expected, as there is no dynamic library for bar. So how do I solve this? Is there some way to tell oasis to build a shared library from the csources (and link it to all depending artifacts)? thanks, Christoph -- Christoph Höger Technische Universität Berlin Fakultät IV - Elektrotechnik und Informatik Übersetzerbau und Programmiersprachen Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin Tel.: +49 (30) 314-24890 E-Mail: christoph.hoeger@tu-berlin.de