From: Ian Campbell Subject: Re: [PATCH v4 05/27] libxc: ocaml: add simple binding for xentoollog (output only). Date: Mon, 11 Nov 2013 15:30:28 +0000 Message-ID: <1384183828.19117.57.camel@kazak.uk.xensource.com> References: <1383760205-20397-1-git-send-email-rob.hoes@citrix.com> <1383760205-20397-6-git-send-email-rob.hoes@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383760205-20397-6-git-send-email-rob.hoes@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Rob Hoes Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-11-06 at 17:49 +0000, Rob Hoes wrote: > +xtl_LIBS = \ > + -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \ > + -cclib -lxenctrl Sadly: /usr/bin/ld: cannot find -lxenctrl collect2: error: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking You need to be using LDLIBS_libxenlight and CFLAGS_libxenlight etc like the tools/ocaml/libs/xl/Makefile does. On your system you are probably linking locally against the library in /usr/lib etc which is not desired... I'm part way through applying this series, so what I'm going to try and do is drop the test case from this patch and the patch which adds some more later. Ones the dust has settled please can you send a separate patch (or patches) to readd these tests. Ian.