[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] XEN::SCHEDULER::libxl.c::make install error ::libxenlight.so: undefined reference to `xc_sched_rm_domain_set'




Hello Gurus,
I am adding a new rm scheduler to the rt-xen,
unfortunately I met "undefined reference to " error ,the output is below:

================error output begin==============


ln -sf libxenlight.so.4.3.0 libxenlight.so.4.3
ln -sf libxenlight.so.4.3 libxenlight.so
gcc  Â-pthread -o xl xl.o xl_cmdimpl.o xl_cmdtable.o xl_sxp.o libxlutil.so /home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl/../../tools/libxl/libxenlight.so -Wl,-rpath-link=/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl/../../tools/libxc -Wl,-rpath-link=/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl/../../tools/xenstore -Wl,-rpath-link=/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl/../../tools/blktap2/control /home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl/../../tools/libxc/libxenctrl.so -lyajlÂ
/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl/../../tools/libxl/libxenlight.so: undefined reference to `xc_sched_rm_domain_get'
/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl/../../tools/libxl/libxenlight.so: undefined reference to `xc_sched_rm_domain_set'
collect2: error: ld returned 1 exit status
make[3]: *** [xl] Error 1
make[3]: Leaving directory `/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools/libxl'
make[2]: *** [subdir-install-libxl] Error 2
make[2]: Leaving directory `/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/jackyshen/RT-XEN/RT-Xen-rt-xen_2.0/tools'
make: *** [install-tools] Error 2

=============== error output end ===================


I searched all the folder ,it should be defined in the file :(reference rtpartion)


==================== grep for rm===============
jackyshen@jackyshen-ThinkPad-T410:~/RT-XEN/RT-Xen-rt-xen_2.0$ grep -r Âxc_sched_rm_domain_set
dist/install/usr/local/include/xenctrl.h~:int xc_sched_rm_domain_set(xc_interface *xch,
dist/install/usr/local/include/xenctrl.h:int xc_sched_rm_domain_set(xc_interface *xch,
tools/libxc/xc_rm.c:xc_sched_rm_domain_set(
tools/libxc/xenctrl.h:int xc_sched_rm_domain_set(xc_interface *xch,
tools/libxl/libxl.c: Â Ârc = xc_sched_rm_domain_set(CTX->xch, domid, &sdom);
Binary file tools/libxl/libxenlight.so.4.3.0 matches
Binary file tools/libxl/libxl.o matches
tools/python/xen/lowlevel/xc/xc.c:static PyObject *pyxc_sched_rm_domain_set(XcObject *self,
tools/python/xen/lowlevel/xc/xc.c: Â Âif ( xc_sched_rm_domain_set(self->xc_handle, domid, &sdom) != 0 )
tools/python/xen/lowlevel/xc/xc.c: Â Â Â(PyCFunction)pyxc_sched_rm_domain_set,

====================grep for rtpartion ============
jackyshen@jackyshen-ThinkPad-T410:~/RT-XEN/RT-Xen-rt-xen_2.0$ grep -r Âxc_sched_rtpartition_domain_set
dist/install/usr/local/include/xenctrl.h~:int xc_sched_rtpartition_domain_set(xc_interface *xch,
dist/install/usr/local/include/xenctl.hbak:int xc_sched_rtpartition_domain_set(xc_interface *xch, Â Â ===>bakfile can be ignored
dist/install/usr/local/include/xenctrl.h:int xc_sched_rtpartition_domain_set(xc_interface *xch,
Binary file dist/install/usr/local/lib/libxenlight.so.4.3.0 matches
Binary file dist/install/usr/local/lib/libxenlight.a matches
Binary file dist/install/usr/local/lib/libxenctrl.so.4.3.0 matches
Binary file dist/install/usr/local/lib/libxenctrl.a matches
Binary file dist/install/usr/local/lib/python2.7/dist-packages/xen/lowlevel/xc.so matches
Binary file tools/libxc/libxenctrl.so.4.3.0 matches
Binary file tools/libxc/libxenctrl.a matches
Binary file tools/libxc/xc_rtpartition.o matches
tools/libxc/xc_rtpartition.c:xc_sched_rtpartition_domain_set(
Binary file tools/libxc/xc_rtpartition.opic matches
tools/libxc/xenctrl.h:int xc_sched_rtpartition_domain_set(xc_interface *xch,
tools/libxl/libxl.c: Â Ârc = xc_sched_rtpartition_domain_set(CTX->xch, domid, &sdom);
Binary file tools/libxl/libxenlight.so.4.3.0 matches
tools/libxl/libxl.cbak: Â Ârc = xc_sched_rtpartition_domain_set(CTX->xch, domid, &sdom);
Binary file tools/libxl/libxl.o matches
tools/libxl/libxl.cbak.20141211: Â Ârc = xc_sched_rtpartition_domain_set(CTX->xch, domid, &sdom);
tools/python/xen/lowlevel/xc/xc.c:static PyObject *pyxc_sched_rtpartition_domain_set(XcObject *self,
tools/python/xen/lowlevel/xc/xc.c: Â Âif ( xc_sched_rtpartition_domain_set(self->xc_handle, domid, &sdom) != 0 )
tools/python/xen/lowlevel/xc/xc.c: Â Â Â(PyCFunction)pyxc_sched_rtpartition_domain_set,
tools/python/xen/lowlevel/xc/xc.cbak:static PyObject *pyxc_sched_rtpartition_domain_set(XcObject *self, Â Â Â Â Â Â Â Â Â Â Â ===>bakfile
tools/python/xen/lowlevel/xc/xc.cbak: Â Âif ( xc_sched_rtpartition_domain_set(self->xc_handle, domid, &sdom) != 0 )
tools/python/xen/lowlevel/xc/xc.cbak: Â Â Â(PyCFunction)pyxc_sched_rtpartition_domain_set,
jackyshen@jackyshen-ThinkPad-T410:~/RT-XEN/RT-Xen-rt-xen_2.0$Â



Could you please advice me where I need to define it?
Thank you very much!


ÂBest regards
Jie Shen


Graduate Student in Computer Science
Illinois Institute of TechnologyÂÂÂ
Stuart Building Chicago, IL 60616
+1Â 312 404 0122

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.