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@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to