From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dulloor Subject: Re: linker error with xen-tools (tip) Date: Thu, 1 Apr 2010 02:32:28 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Never mind ! Figured it out. One of my files should go to libxenguest. -dulloor On Thu, Apr 1, 2010 at 2:01 AM, Dulloor 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 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 =A0-O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=3Dgnu99 >> -Wall -Wstrict-prototypes -Wno-unused-value >> -Wdeclaration-after-statement =A0-D__XEN_TOOLS__ -MMD -MF >> .loadpolicy.o.d =A0-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE =A0-Wall -g >> -Werror =A0-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=3Dgnu99 >> -Wall -Wstrict-prototypes -Wno-unused-value >> -Wdeclaration-after-statement =A0-D__XEN_TOOLS__ -MMD -MF >> .flask-loadpolicy.d =A0-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE =A0-Wal= l >> -g -Werror =A0-I../../../tools/libxc -I../../../tools/include >> -I../../../tools/flask/libflask/include -I. =A0 =A0 -L../../../tools/lib= xc >> -L../../../tools/flask/libflask loadpolicy.o =A0 -L. -lflask >> -L../../../tools/libxc -lxenctrl -o flask-loadpolicy >> ../../../tools/libxc/libxenctrl.so: undefined reference to `xc_dom_print= f' >> 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 >> >