From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: xl build failure: /usr/bin/ld: xl_cmdimpl.o: undefined reference to symbol 'yajl_gen_string' Date: Mon, 13 Feb 2012 14:56:20 -0500 Message-ID: <4F396AE4.9090404@oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000200080209010503030602" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000200080209010503030602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------000200080209010503030602 Content-Type: text/x-patch; name="xen-unstable-xl-yajl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-unstable-xl-yajl.patch" diff -r 9ad1e42c341b tools/libxl/Makefile --- a/tools/libxl/Makefile Fri Feb 10 17:24:50 2012 +0000 +++ b/tools/libxl/Makefile Mon Feb 13 14:54:39 2012 -0500 @@ -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) --------------000200080209010503030602 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000200080209010503030602--