[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Compile error for libxl on centos 5


  • To: xen-devel@xxxxxxxxxxxxx
  • From: "Andres Lagar-Cavilla" <andres@xxxxxxxxxxxxxxxx>
  • Date: Fri, 25 May 2012 13:27:31 -0700
  • Cc: ian.jackson@xxxxxxxxxx, ian.campbell@xxxxxxxxxx
  • Delivery-date: Fri, 25 May 2012 20:28:03 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=lagarcavilla.org; h=message-id :date:subject:from:to:cc:reply-to:mime-version:content-type: content-transfer-encoding; q=dns; s=lagarcavilla.org; b=ryoY1q7o KhL9e473igLkdQJIr1RjXOIQ0JCSbmLPwSmhB8IgjL4KkaX6C3TRREFMLyPLjnAJ LOhsukN+TMtm+PrM1FskUd2L+bpKldQx8fCa8tyvzZZNc0Za5tEuXWiztotY7Anr 5Ch2gmsXSsUC1MiqUyhDBQAlJdTD3oiYgjs=
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

I am getting libxenlight.so and xl link failures, complaining about
missing login_tty and opentty symbols. The patch below fixes this for me,
in a quick & dirty manner.

FYI, not proposing this for the tree. I'm not sure to which extent you
want to support an oldish distro, whether libutil is universally necessary
and/or available.

Andres

diff -r 69c3ae25bb1d tools/libxl/Makefile
--- a/tools/libxl/Makefile
+++ b/tools/libxl/Makefile
@@ -60,7 +60,7 @@ ifeq ($(BISON),)
          scanners, please install it an rerun configure)
 endif

-LIBXL_LIBS += -lyajl
+LIBXL_LIBS += -lyajl -lutil

 LIBXL_OBJS = flexarray.o libxl.o libxl_create.o libxl_dm.o libxl_pci.o \
            libxl_dom.o libxl_exec.o libxl_xshelp.o libxl_device.o \
@@ -154,7 +154,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) -lyajl $(APPEND_LDFLAGS)
+   $(CC) $(LDFLAGS) -o $@ $(XL_OBJS) libxlutil.so $(LDLIBS_libxenlight)
$(LDLIBS_libxenctrl) -lyajl -lutil $(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
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.