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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 461707FDC7 for ; Thu, 26 May 2016 22:11:13 +0200 (CEST) IronPort-PHdr: 9a23:MwapVR22LyYd+qIUsmDT+DRfVm0co7zxezQtwd8ZsegVKPad9pjvdHbS+e9qxAeQG96LurQY1qGP6PuocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC3oLriqvroMabSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK7zeqB9Sb1DEBwnNXo07Yvlr0rtVwyKs1wYW2teshdSAg7KpEX9Wp7/miL3ruR51W+WMJulHvgPRT2+4vIzG1fTgyAdOmth/Q== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=olaf@aepfle.de; spf=None smtp.mailfrom=olaf@aepfle.de; spf=None smtp.helo=postmaster@mo4-p00-ob.smtp.rzone.de Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of olaf@aepfle.de) identity=pra; client-ip=81.169.146.162; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="olaf@aepfle.de"; x-sender="olaf@aepfle.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of olaf@aepfle.de) identity=mailfrom; client-ip=81.169.146.162; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="olaf@aepfle.de"; x-sender="olaf@aepfle.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mo4-p00-ob.smtp.rzone.de) identity=helo; client-ip=81.169.146.162; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="olaf@aepfle.de"; x-sender="postmaster@mo4-p00-ob.smtp.rzone.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0D+AABtV0dXf6KSqVFchA99AYNCtBmCDwENgXgihys4FAEBAQEBAQEBEQEBCQsLCSEvgi6CPx0BATg0AgUhAhEFGIh3CrEgZ4RBAQEFjRYpCB5jjn2CNSuCLo1qilKGAIgWCmaBUYZ8CoVfj0weAQGEMWyKFQEBAQ X-IPAS-Result: A0D+AABtV0dXf6KSqVFchA99AYNCtBmCDwENgXgihys4FAEBAQEBAQEBEQEBCQsLCSEvgi6CPx0BATg0AgUhAhEFGIh3CrEgZ4RBAQEFjRYpCB5jjn2CNSuCLo1qilKGAIgWCmaBUYZ8CoVfj0weAQGEMWyKFQEBAQ X-IronPort-AV: E=Sophos;i="5.26,369,1459807200"; d="scan'208";a="179155185" Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 May 2016 22:11:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1464293471; l=1702; s=domk; d=aepfle.de; h=Content-Disposition:Content-Type:MIME-Version:Subject:To:From:Date; bh=fku3Vfor1y0z9EVajTyQw1eeobCv8zsGkTxralZi+y8=; b=EDI3s5GgQzrDgACRR+XNK8NhTTotxrQo0ruldTnEtLR5XLmjvc8Ed4bQjcSgyRruPaa Jzo7l9vJLCKYSnzbD0YSGDQIZ2m0W/XE5ify7pEbFNMST9PiudGJITwRgp91ldsuCOmBi 9f5JNpouaVilRIFLMqid62LOCGp3Ep6nbpA= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWtqWFmrC5F/k8792bTjkQ== X-RZG-CLASS-ID: mo00 Received: from probook (aftr-185-17-204-168.dynamic.mnet-online.de [185.17.204.168]) by smtp.strato.de (RZmta 37.28 DYNA|AUTH) with ESMTPSA id R049cds4QKBB1Qj (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Thu, 26 May 2016 22:11:11 +0200 (CEST) Received: by probook (Postfix, from userid 1000) id C3A5E50B06; Thu, 26 May 2016 22:11:10 +0200 (CEST) Date: Thu, 26 May 2016 22:11:10 +0200 From: Olaf Hering To: caml-list@inria.fr Message-ID: <20160526201110.GA14443@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.6.1 (6648) Subject: [Caml-list] OASIS help: link stublib to system lib and another caml lib The ocaml-fuse package as is does not build for bytecode target. I updated the _oasis file as shown below and everything worked great. But when feeding the resulting package to google-drive-ocamlfuse I got link errors because ocaml-fuse was not linked to -lfuse and -lcamlidl. I figured out how to link to fuse, its in $libdir so the compiler picks it up. But I can not figure out a generic way to link against -lcamlidl. This package is in $libdir/ocaml, so I would have to exent CCLib: with something like '-L $libdir/ocaml -lcamlidl'. This works if I force it to be '-L/usr/lib64/ocaml -lcamlidl' for a 64bit build. But this would break for 32bit builds. Unfortunately I have not found the spot in the documentation where this is explained. Appearently there is also no example covering such setup. So how has the _oasis file to be changed to link to the system -lfuse and to -lcamlidl in the ocaml installation path? Olaf $ cat ocaml-fuse/ocamlfuse-2.7.1_cvs2/_oasis: OASISFormat: 0.4 Name: ocamlfuse Version: 2.7.1-cvs2 Synopsis: OCaml bindings for FUSE (Filesystem in UserSpacE) Description: OCaml bindings for FUSE (Filesystem in UserSpacE) Authors: Vincenzo Ciancia LicenseFile: LICENSE License: GPL OCamlVersion: >= 3.12 FindlibVersion: >= 1.5 Homepage: http://sourceforge.net/apps/mediawiki/ocamlfuse # BuildTools: ocamldoc, ocamlbuild Library Fuse Path: lib BuildDepends: unix, threads, bigarray, camlidl FindlibName: Fuse Modules: Fuse, Fuse_bindings, Fuse_lib, Result, Unix_util CSources: Fuse_util.c, Unix_util_stubs.c, Fuse_bindings_stubs.c, Fuse_bindings.h CCOpt: -g -O2 -fPIC -DPIC -w CCLib: -lfuse -L/usr/lib64/ocaml -lcamlidl