[dnstop] compiling dnstop on sles 10-sp2.

Brad Bendily bendily at gmail.com
Fri Mar 20 21:19:29 UTC 2009


Hi,
I'm trying to compile dnstop on a Suse Linux Enterprise Server 10, Service 
Pack 2.
I was just hoping someone could point me in the right direction on how
to resolve this?
if more info is required, please let me know.
thanks
Brad B.


During the ./configure
i see this messages about curses:
checking for initscr in -lcurses... no


during the make I get:
gcc -g -O2  -o dnstop dnstop.o hashtbl.o lookup3.o -lresolv -lnsl -lpcap
dnstop.o: In function `init_curses':
/root/dnstop-20090128/dnstop.c:1658: undefined reference to `initscr'
/root/dnstop-20090128/dnstop.c:1659: undefined reference to `cbreak'
/root/dnstop-20090128/dnstop.c:1660: undefined reference to `noecho'
dnstop.o: In function `report':
/root/dnstop-20090128/dnstop.c:1547: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1547: undefined reference to `wmove'
/root/dnstop-20090128/dnstop.c:1566: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1566: undefined reference to `wmove'
/root/dnstop-20090128/dnstop.c:1568: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1568: undefined reference to `wmove'
/root/dnstop-20090128/dnstop.c:1569: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1569: undefined reference to `wclrtobot'
/root/dnstop-20090128/dnstop.c:1572: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1572: undefined reference to `wrefresh'
/root/dnstop-20090128/dnstop.c:1553: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1553: undefined reference to `wclrtoeol'
/root/dnstop-20090128/dnstop.c:1557: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1557: undefined reference to `wmove'
/root/dnstop-20090128/dnstop.c:1562: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:1562: undefined reference to `wclrtoeol'
dnstop.o: In function `keyboard':
/root/dnstop-20090128/dnstop.c:982: undefined reference to `stdscr'
/root/dnstop-20090128/dnstop.c:982: undefined reference to `wgetch'
dnstop.o: In function `main':
/root/dnstop-20090128/dnstop.c:1915: undefined reference to `nodelay'
/root/dnstop-20090128/dnstop.c:1923: undefined reference to `endwin'
dnstop.o: In function `init_curses':
/root/dnstop-20090128/dnstop.c:1661: undefined reference to `nodelay'
dnstop.o:(.data+0x20): undefined reference to `printw'
collect2: ld returned 1 exit status



I have a curses.h and ncurses.h is a symlink to curses.h in
/usr/include/curses.h

In the config.log I see:
configure:2734: checking for initscr in -lcurses
configure:2769: gcc -o conftest -g -O2   conftest.c -lcurses   >&5
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: 
cannot find -lcurses
collect2: ld returned 1 exit status
configure:2775: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char initscr ();
| int
| main ()
| {
| return initscr ();
|   ;
|   return 0;
| }
configure:2793: result: no




More information about the dnstop mailing list