ratop not working in Ubuntu

Harry Bock harry at oshean.org
Mon Aug 17 14:24:33 EDT 2009


Try installing libncurses-dev and rebuild the clients; it looks like you
don't have ARGUS_CURSES defined, causing this error.

Carter: I stumbled upon this as well awhile back, but forgot to mention it -
those variables (ArgusCursesEnabled and RaScreenResize) are defined under
#if defined(ARGUS_CURSES), but then used in the code without the #ifdef.
Does ratop have a non-curses mode? It might be best to just not compile
ratop at all if it doesn't.

Anyway, here's a patch to "fix" compilation of ratop without curses support:
http://projects.oshean.org/index.cgi/argus-clients/patch/?id=43eaed68b60061d401cfe49fb9ec84d476d8684f
(Unfortunately I don't have a patch against the vanilla distro nor against
CVS, so it's in git format... apologizes for the inconvenience!)


On Mon, Aug 17, 2009 at 2:07 PM, John Kennedy <wilson.amajohn at gmail.com>wrote:

> I have not been able to get ratop to work on Ubuntu 8.04 LTS. When calling
> ratop -S localhost:561 it just hangs nothing ever happens.
>
> Here is the output and error code when trying to compile it. I am using
> argus-clients-3.0.2.beta.10
>
> gcc -O3 -I. -I../include -I../common  -DPACKAGE_NAME=\"\"
> -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
> -DPACKAGE_BUGREPORT=\"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1
> -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 -DHAVE_SETLINEBUF=1 -DHAVE_SETENV=1
> -DHAVE_ALARM=1 -DHAVE_GETADDRINFO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_SYS_VFS_H=1 -DHAVE_INTTYPES_H=1 -DARGUS_THREADS=1
> -DHAVE_SCHED_GET_PRIORITY_MIN=1 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1
> -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1
> -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1 -DSTDC_HEADERS=1 -c
> ./ratop.c
> ./ratop.c: In function âArgusClientInitâ:
> ./ratop.c:432: error: âArgusCursesEnabledâ undeclared (first use in this
> function)
> ./ratop.c:432: error: (Each undeclared identifier is reported only once
> ./ratop.c:432: error: for each function it appears in.)
> ./ratop.c: In function âRaResizeHandlerâ:
> ./ratop.c:740: error: âRaScreenResizeâ undeclared (first use in this
> function)
> make: *** [ratop.o] Error 1
>
> Regards
>
> John Kennedy
>
>


-- 
Harry Bock
Software Developer, Package Maintainer
OSHEAN, Inc.
Email: harry at oshean.org
PGP Key ID: 546CC353
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20090817/60ecbcf7/attachment.html>


More information about the argus mailing list