xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* linker error with xen-tools (tip)
@ 2010-04-01  5:57 Dulloor
  2010-04-01  6:01 ` Dulloor
  0 siblings, 1 reply; 3+ messages in thread
From: Dulloor @ 2010-04-01  5:57 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linker error with xen-tools (tip)
  2010-04-01  5:57 linker error with xen-tools (tip) Dulloor
@ 2010-04-01  6:01 ` Dulloor
  2010-04-01  6:32   ` Dulloor
  0 siblings, 1 reply; 3+ messages in thread
From: Dulloor @ 2010-04-01  6:01 UTC (permalink / raw)
  To: xen-devel

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@gmail.com> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linker error with xen-tools (tip)
  2010-04-01  6:01 ` Dulloor
@ 2010-04-01  6:32   ` Dulloor
  0 siblings, 0 replies; 3+ messages in thread
From: Dulloor @ 2010-04-01  6:32 UTC (permalink / raw)
  To: xen-devel

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@gmail.com> 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@gmail.com> 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
>>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-01  6:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-01  5:57 linker error with xen-tools (tip) Dulloor
2010-04-01  6:01 ` Dulloor
2010-04-01  6:32   ` Dulloor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).