All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: xen-devel <xen-devel@lists.xensource.com>
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	[thread overview]
Message-ID: <4F396AE4.9090404@oracle.com> (raw)

[-- 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

             reply	other threads:[~2012-02-13 19:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-13 19:56 Zhigang Wang [this message]
2012-02-13 20:07 ` xl build failure: /usr/bin/ld: xl_cmdimpl.o: undefined reference to symbol 'yajl_gen_string' Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F396AE4.9090404@oracle.com \
    --to=zhigang.x.wang@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.