All of lore.kernel.org
 help / color / mirror / Atom feed
* xl build failure: /usr/bin/ld: xl_cmdimpl.o: undefined reference to symbol 'yajl_gen_string'
@ 2012-02-13 19:56 Zhigang Wang
  2012-02-13 20:07 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Zhigang Wang @ 2012-02-13 19:56 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]

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 #2: xen-unstable-xl-yajl.patch --]
[-- Type: text/x-patch, Size: 672 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-13 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 19:56 xl build failure: /usr/bin/ld: xl_cmdimpl.o: undefined reference to symbol 'yajl_gen_string' Zhigang Wang
2012-02-13 20:07 ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.