ratop not working in Ubuntu

Carter Bullard carter at qosient.com
Mon Aug 17 15:58:44 EDT 2009


Gentle people,
Yes, you do need curses to get any output, so I've fixed the compiler  
errors
and put in an error message if ratop is not compiled with curses  
support.

You can run ratop without the curses window, which is useful when
debugging, so that is why the variable, etc  ...., are there.

I have put in fixes for this in beta.12 code, which I'll put up  
possibly tomorrow.

Carter

On Aug 17, 2009, at 2:24 PM, Harry Bock wrote:

> 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
>

Carter Bullard
CEO/President
QoSient, LLC
150 E 57th Street Suite 12D
New York, New York  10022

+1 212 588-9133 Phone
+1 212 588-9134 Fax



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20090817/dad66b9e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3815 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20090817/dad66b9e/attachment.bin>


More information about the argus mailing list