WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: linker error with xen-tools (tip)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: linker error with xen-tools (tip)
From: Dulloor <dulloor@xxxxxxxxx>
Date: Thu, 1 Apr 2010 02:32:28 -0400
Delivery-date: Wed, 31 Mar 2010 23:33:03 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=cBrLEHaHdPYBXAiPCFGznTmIKHBeV2h2djWCdSk5tGM=; b=rCBfb7Po0ccLWMxkrMAAHGhoUCLqOBVgu+j3OoizVw91uKcKmyafWujM4Z2sAl4lrb 2RJzUSeIaTc4mgJMd6HKdMS/1D06gSJaJGcPDBIbMCupssOd/dS06mAs/wybbfu5YyTr D/b7mKjahFtIzDkmM94WRiZ8zq1luW+UmyR68=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=aF2+wBdqLz6VMrGWh+cVDXDDcTKrPrpz0FIDd86sFjGc8ujjlfFZl3P5SNxrrc0XSu gH661gX8x+h3UvOLnHMpG7ujKRM9EnPHiicdKkrbrZuOOD6KFtGLAAoMBf/tcHUWD/1v iDt0PAIoQWi/02jCvAARk/fn8Ol/8zI7d6bJw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <r2x940bcfd21003312301t6b76c71x688163dfe8346c07@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <u2o940bcfd21003312257he8a1ce7aracf1bf27ac0598e1@xxxxxxxxxxxxxx> <r2x940bcfd21003312301t6b76c71x688163dfe8346c07@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Never mind ! Figured it out. One of my files should go to libxenguest.

-dulloor

On Thu, Apr 1, 2010 at 2:01 AM, Dulloor <dulloor@xxxxxxxxx> wrote:
> Also, "make clean" doesn't help either. The error goes away only on a
> (trial and error) reordering of my patch set.
>
> -dulloor
>
> On Thu, Apr 1, 2010 at 1:57 AM, Dulloor <dulloor@xxxxxxxxx> wrote:
>> With my modifications to libxc(adding/modifying a few files), I get
>> the following error, but only intermittently. There are no compilation
>> errors in my code. And, also interestingly when I add back the same
>> changes piece-meal and in a different order, this linker error
>> disappears. What could be the reason ?
>>
>> gcc  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
>> -Wall -Wstrict-prototypes -Wno-unused-value
>> -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF
>> .loadpolicy.o.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Wall -g
>> -Werror  -I../../../tools/libxc -I../../../tools/include
>> -I../../../tools/flask/libflask/include -I. -c -o loadpolicy.o
>> loadpolicy.c
>> gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
>> -Wall -Wstrict-prototypes -Wno-unused-value
>> -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF
>> .flask-loadpolicy.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Wall
>> -g -Werror  -I../../../tools/libxc -I../../../tools/include
>> -I../../../tools/flask/libflask/include -I.     -L../../../tools/libxc
>> -L../../../tools/flask/libflask loadpolicy.o   -L. -lflask
>> -L../../../tools/libxc -lxenctrl -o flask-loadpolicy
>> ../../../tools/libxc/libxenctrl.so: undefined reference to `xc_dom_printf'
>> collect2: ld returned 1 exit status
>> make[5]: *** [flask-loadpolicy] Error 1
>> make[5]: Leaving directory
>> `/data/devel/xen-devel/xen-unstable-numa-tip.hg/tools/flask/utils'
>> make[4]: *** [subdir-install-utils] Error 2
>> make[4]: Leaving directory
>> `/data/devel/xen-devel/xen-unstable-numa-tip.hg/tools/flask'
>> make[3]: *** [subdirs-install] Error 2
>> make[3]: Leaving directory
>> `/data/devel/xen-devel/xen-unstable-numa-tip.hg/tools/flask'
>> make[2]: *** [subdir-install-flask] Error 2
>> make[2]: Leaving directory
>> `/data/devel/xen-devel/xen-unstable-numa-tip.hg/tools'
>> make[1]: *** [subdirs-install] Error 2
>> make[1]: Leaving directory
>> `/data/devel/xen-devel/xen-unstable-numa-tip.hg/tools'
>> make: *** [install-tools] Error 2
>>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>