From bendily at gmail.com Fri Mar 20 21:19:29 2009 From: bendily at gmail.com (Brad Bendily) Date: Fri, 20 Mar 2009 16:19:29 -0500 (CDT) Subject: [dnstop] compiling dnstop on sles 10-sp2. Message-ID: 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 From jose at monkey.org Fri Mar 20 21:57:35 2009 From: jose at monkey.org (Jose Nazario) Date: Fri, 20 Mar 2009 17:57:35 -0400 (EDT) Subject: [dnstop] compiling dnstop on sles 10-sp2. In-Reply-To: References: Message-ID: see if it's -lcurses. what does ls /usr/lib/lib*curses*.so show? might just be under a different name. also, if you just instaled ncurses did you re-ldconfig? ________ jose nazario, ph.d. http://monkey.org/~jose/ From bendily at gmail.com Sat Mar 21 03:01:20 2009 From: bendily at gmail.com (Brad Bendily) Date: Fri, 20 Mar 2009 22:01:20 -0500 Subject: [dnstop] compiling dnstop on sles 10-sp2. In-Reply-To: References: Message-ID: this box is 64bit. :~/dnstop-20090128 # ls /usr/lib/lib*curses*.so /usr/lib/libncurses.so /usr/lib/libncursesw.so :~/dnstop-20090128 # ls -l /usr/lib64/lib*curses*.so lrwxrwxrwx 1 root root 24 Feb 25 13:57 /usr/lib64/libncurses.so -> /lib64/libncurses.so.5.5* lrwxrwxrwx 1 root root 16 Feb 25 13:57 /usr/lib64/libncursesw.so -> libncursesw.so.5* :~/dnstop-20090128 # ls -l /usr/lib/lib*curses*.so lrwxrwxrwx 1 root root 22 Feb 25 13:57 /usr/lib/libncurses.so -> /lib/libncurses.so.5.5* lrwxrwxrwx 1 root root 16 Feb 25 13:57 /usr/lib/libncursesw.so -> libncursesw.so.5* On Fri, Mar 20, 2009 at 4:57 PM, Jose Nazario wrote: > see if it's -lcurses. what does ls /usr/lib/lib*curses*.so show? > > might just be under a different name. also, if you just instaled ncurses > did you re-ldconfig? > > ________ > jose nazario, ph.d. http://monkey.org/~jose/ > -- Have Mercy & Say Yeah -------------- next part -------------- An HTML attachment was scrubbed... URL: From wessels at measurement-factory.com Sat Mar 21 04:50:59 2009 From: wessels at measurement-factory.com (Duane Wessels) Date: Fri, 20 Mar 2009 22:50:59 -0600 (MDT) Subject: [dnstop] compiling dnstop on sles 10-sp2. In-Reply-To: References: Message-ID: On Fri, 20 Mar 2009, Brad Bendily wrote: > this box is 64bit. > > :~/dnstop-20090128 # ls /usr/lib/lib*curses*.so > /usr/lib/libncurses.so /usr/lib/libncursesw.so as a workaround you could try changing -lcurses to -lncurses in the Makefile.