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
tools/libxl/Makefile +1 -1
@@ -142,7 +142,7 @@ libxlutil.a: $(LIBXLU_OBJS) $(AR) rcs libxlutil.a $^ xl: $(XL_OBJS) libxlutil.so libxenlight.so - $(CC) $(LDFLAGS) -o $@ $(XL_OBJS) libxlutil.so $(LDLIBS_libxenlight) $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS) + $(CC) $(LDFLAGS) -o $@ $(XL_OBJS) libxlutil.so $(LDLIBS_libxenlight) $(LDLIBS_libxenctrl) $(LIBXL_LIBS) $(APPEND_LDFLAGS) testidl: testidl.o libxlutil.so libxenlight.so $(CC) $(LDFLAGS) -o $@ testidl.o libxlutil.so $(LDLIBS_libxenlight) $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Zhigang Wang
Hi,
Anyone has this build issue?
Olaf Herring post a series which included a fix for this on Thursday, see <[email protected]>.
Ian.