varnishstat build error on RHEL5
Alex Davies
alex at davz.net
Tue Dec 16 18:27:38 CET 2008
Hi,
I'm trying to build varnishstat on RHEL5. It was not installed by my
standard ./configure;make;make install but I notice that there is a
folder in "bin" called varnishstat. However, when I attempt to run
"make", I get an error:
[root at frontend varnishstat]# make clean
rm -f varnishstat varnishstat
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
[root at frontend varnishstat]# make
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -g -O2 -MT
varnishstat.o -MD -MP -MF .deps/varnishstat.Tpo -c -o varnishstat.o
varnishstat.c
mv -f .deps/varnishstat.Tpo .deps/varnishstat.Po
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -o
varnishstat varnishstat.o ../../lib/libvarnish/libvarnish.la
../../lib/libvarnishcompat/libvarnishcompat.la
../../lib/libvarnishapi/libvarnishapi.la -lrt -lpthread
mkdir .libs
gcc -g -O2 -o .libs/varnishstat varnishstat.o
../../lib/libvarnish/.libs/libvarnish.so
../../lib/libvarnishcompat/.libs/libvarnishcompat.so
../../lib/libvarnishapi/.libs/libvarnishapi.so -lrt -lpthread
-Wl,--rpath -Wl,/usr/local/lib
varnishstat.o: In function `do_curses':
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:111: undefined
reference to `initscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:112: undefined
reference to `raw'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:113: undefined
reference to `noecho'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:114: undefined
reference to `nonl'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:115: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:115: undefined
reference to `intrflush'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:116: undefined
reference to `curs_set'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:117: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:117: undefined
reference to `werase'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:128: undefined
reference to `COLS'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:128: undefined
reference to `mvprintw'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:129: undefined
reference to `mvprintw'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:142: undefined
reference to `mvprintw'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:143: undefined
reference to `mvprintw'
varnishstat.o: In function `do_curses':
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:32:
undefined reference to `LINES'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:33:
undefined reference to `LINES'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:35:
undefined reference to `LINES'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:36:
undefined reference to `LINES'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:37:
undefined reference to `LINES'
varnishstat.o:/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:39:
more undefined references to `LINES' follow
varnishstat.o: In function `do_curses':
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:161: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:161: undefined
reference to `wrefresh'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:162: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:162: undefined
reference to `wtimeout'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:163: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:163: undefined
reference to `wgetch'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:200: undefined
reference to `beep'
varnishstat.o: In function `do_curses':
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:32:
undefined reference to `mvprintw'
varnishstat.o: In function `do_curses':
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:185: undefined
reference to `endwin'
varnishstat.o: In function `do_curses':
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:33:
undefined reference to `mvprintw'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:35:
undefined reference to `mvprintw'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:36:
undefined reference to `mvprintw'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:101:
undefined reference to `mvprintw'
/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:102:
undefined reference to `mvprintw'
varnishstat.o:/usr/src/varnish-2.0.2/bin/varnishstat/../../include/stat_field.h:104:
more undefined references to `mvprintw' follow
varnishstat.o: In function `do_curses':
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:173: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:173: undefined
reference to `wredrawln'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:174: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:174: undefined
reference to `wrefresh'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:168: undefined
reference to `stdscr'
/usr/src/varnish-2.0.2/bin/varnishstat/varnishstat.c:168: undefined
reference to `werase'
collect2: ld returned 1 exit status
make: *** [varnishstat] Error 1
Could anyone be so kind as to advise me in the correct way to get
varnishstat working?
Many thanks,
Alex
--
Alex Davies
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender immediately by e-mail and delete this e-mail permanently.
More information about the varnish-misc
mailing list