Skip to contentSkip to conversation

Compile error for libxl on centos 5

PATCH Andres Lagar-Cavilla 3 participants 4 messages May 25, 2012 – May 29, 2012

lore
Share & tools
lore
#0 lore raw

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

tools/libxl/Makefile +1 -2
diff -r 69c3ae25bb1d 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)

#1 lore raw
Quoted 7 lines · Andres Lagar-Cavilla

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.

There's a test for libutil in configure, that should set the appropriate flags, did you do a make distclean && ./configure after updating your tree?

If so, could you please attach your tools/config.log?

Thanks, Roger.

#2 lore raw
Quoted 6 lines
Quoted 5 lines · Andres Lagar-Cavilla

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.

Quoted 8 lines
Quoted 4 lines

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.

There's a test for libutil in configure, that should set the appropriate flags, did you do a make distclean && ./configure after updating your tree?

Correct-o. No fix needed -- stale config.
Thanks
Andres

Quoted 5 lines

If so, could you please attach your tools/config.log?

Thanks, Roger.

#3 lore raw
In reply to Andres Lagar-Cavilla

Andres Lagar-Cavilla writes ("Compile error for libxl on centos 5"):

Quoted 3 lines

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.

Thanks.

Quoted 3 lines

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.

We have autoconfery that is supposed to handle this. We haven't taken a decision to desupport Centos 5.

Can you check that you have the most recent version, run configure, and post the resulting transcript, config.log and config.status ?

Thanks,
Ian.