Zhigang Wang
2012-Feb-13 19:56 UTC
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2012-Feb-13 20:07 UTC
Re: xl build failure: /usr/bin/ld: xl_cmdimpl.o: undefined reference to symbol ''yajl_gen_string''
On Mon, 2012-02-13 at 19:56 +0000, Zhigang Wang wrote:> Hi, > > Anyone has this build issue?Olaf Herring post a series which included a fix for this on Thursday, see <patchbomb.1328791978@probook.site>. Ian.