Build break on SLES 9
gcc -m64 -DGCC_PRINTF -Wall -Werror -I../../../tools/xenstat/libxenstat/src -c -o xentop.o xentop.c
gcc -m64 -L../../../tools/xenstat/libxenstat/src xentop.o -lxenstat -lcurses -o xentop/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make[4]: *** [xentop] Error 1
make[4]: Leaving directory `/tmp/xen-unstable.hg/tools/xenstat/xentop'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/tmp/xen-unstable.hg/tools/xenstat'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/tmp/xen-unstable.hg/tools'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/tmp/xen-unstable.hg'
make: *** [world] Error 2
David F Barrera
Quoted 6 lines · David F Barrera
gcc -m64 -DGCC_PRINTF -Wall -Werror
-I../../../tools/xenstat/libxenstat/src -c -o xentop.oxentop.c
gcc -m64 -L../../../tools/xenstat/libxenstat/src xentop.o
-lxenstat -lcurses -o xentop/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
If you change LD_LIBS in tools/xenstat/xentop/Makefile to include -lncurses instead of -lcurses, does that fix the build failure?
-- Keir
Quoted 13 lines · Keir Fraser
Quoted 6 lines · David F Barrera
gcc -m64 -DGCC_PRINTF -Wall -Werror
-I../../../tools/xenstat/libxenstat/src -c -o xentop.oxentop.c
gcc -m64 -L../../../tools/xenstat/libxenstat/src xentop.o
-lxenstat -lcurses -o xentop/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit statusIf you change
LD_LIBSintools/xenstat/xentop/Makefileto include -lncurses instead of -lcurses, does that fix the build failure?
Yes, it does.
Quoted 9 lines
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 13 lines · David F Barrera
Quoted 11 lines · Keir Fraser
Quoted 7 lines · David F Barrera
gcc -m64 -DGCC_PRINTF -Wall -Werror
-I../../../tools/xenstat/libxenstat/src -c -o xentop.oxentop.c
gcc -m64 -L../../../tools/xenstat/libxenstat/src xentop.o
-lxenstat -lcurses -o xentop/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit statusIf you change
LD_LIBSintools/xenstat/xentop/Makefileto include -lncurses instead of -lcurses, does that fix the build failure?
Quoted 1 line
Yes, it does.
Thanks for pointing out and fixing this issue. Many distributions ship links from libcurses.{a,so} to libncurses.{a,so}, including all the distributions we tested on (Debian, Gentoo, and Fedora); apparently SLES 9 does not.
- Josh Triplett