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

[Xen-devel] xl build failure: /usr/bin/ld: xl_cmdimpl.o: undefined reference to symbol 'yajl_gen_string'



Hi,

Anyone has this build issue?

$ make DESTDIR=/share/build/xen-unstable/dist/install verbose=y crash_debug=y
debug=y install-xen install-tools
...
gcc     -o xl xl.o xl_cmdimpl.o xl_cmdtable.o xl_sxp.o libxlutil.so
/share/build/xen-unstable/tools/libxl/../../tools/libxl/libxenlight.so
-Wl,-rpath-link=/share/build/xen-unstable/tools/libxl/../../tools/libxc
-Wl,-rpath-link=/share/build/xen-unstable/tools/libxl/../../tools/xenstore
-Wl,-rpath-link=/share/build/xen-unstable/tools/libxl/../../tools/blktap2/control
 /share/build/xen-unstable/tools/libxl/../../tools/libxc/libxenctrl.so
/usr/bin/ld: xl_cmdimpl.o: undefined reference to symbol 'yajl_gen_string'
/usr/bin/ld: note: 'yajl_gen_string' is defined in DSO /usr/lib64/libyajl.so.1
so try adding it to the linker command line
/usr/lib64/libyajl.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [xl] Error 1
make[3]: Leaving directory `/share/build/xen-unstable/tools/libxl'
make[2]: *** [subdir-install-libxl] Error 2
make[2]: Leaving directory `/share/build/xen-unstable/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/share/build/xen-unstable/tools'
make: *** [install-tools] Error 2

Attached patch is a simple fix, but maybe other better fixes.

Thanks,

Zhigang

Attachment: xen-unstable-xl-yajl.patch
Description: Text Data

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

 


Rackspace

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