argus-clients-3.0.0.rc.14 on a Power5(PPC) system running RHEL4
Carter Bullard
carter at qosient.com
Fri Jun 30 10:14:00 EDT 2006
Hey Mike,
Hmmmm, parser->Lflag is defined as a (char), not an (unsigned
char).
So, not sure what the problem is here.
ratop issue fixed, and thanks on the typo.
I have a mod for the pthread library problem, see earlier mail.
Carter
On Jun 28, 2006, at 6:41 PM, MN wrote:
>
> On a PowerPC (8 processor Power5) system running Red Hat Enterprise
> Linux
> AS release 4 (Nahant Update 2) (Linux PPC64 2.6.9-22.0.1.EL), with gcc
> version 3.4.4 20050721 (Red Hat 3.4.4-2):
>
> After a successful './configure', 'make' of the clients fails / errors
> in a few spots (see snippets after signature).
>
> The things that need fixing:
>
> [1] In ratop/ratop.c line 1837:
> if ((retn = ArgusFilterCompile (&lfilter, ptr, 1)) < 0)
> fails as 'retn' is declared as (unsigned) char and the implicit cast
> occurs before the comparison.
>
> [2] for ragrep.c (line 354) and ra.c (line 213)
> if (parser->Lflag < 0)
> parser->Lflag = 0;
>
> fails as Lflag is an (unsigned) char (
> ../include/argus_parser.h: char idflag, jflag, lflag, Lflag, mflag;
> ).
>
>
> [3] To get the links to work, adding "-l pthread" to the link command
> works (ie:
> gcc -O3 -o ../bin/ra ra.o ../lib/argus_parse.a ../lib/
> argus_common.a ../lib/argus_client.a -lm -lsasl
> should become
> gcc -O3 -o ../bin/ra ra.o ../lib/argus_parse.a ../lib/
> argus_common.a ../lib/argus_client.a -lm -lsasl -lpthread
>
>
> [4] README (top level) has a typo on line 50:
> list at argus-info at lists.andres.cmu.edu
> ^
>
> Hope this helps and thanks for Argus...
>
> - mike
>
>
> make[1]: Entering directory `/usr/local/src/argus-clients-3.0.0.rc.
> 14/clients'
> gcc -O3 -I. -I../include -I../common -DPACKAGE_NAME=\"\" -
> DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -
> DPACKAGE_BUGREPORT=\"\" -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 -DARGUS_SASL=1 -
> D_FILE_OFFSET_BITS=64 -DARGUS_THREADS=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 ./ra.c
> ./ra.c: In function `RaProcessRecord':
> ./ra.c:213: warning: comparison is always false due to limited
> range of data type
> gcc -O3 -o ../bin/ra ra.o ../lib/argus_parse.a ../lib/
> argus_common.a ../lib/argus_client.a -lm -lsasl
> ../lib/argus_parse.a(argus_main.o)(.text+0x2390): In function `main':
> : undefined reference to `pthread_attr_getstacksize'
> ../lib/argus_parse.a(argus_main.o)(.text+0x239c): In function `main':
> : undefined reference to `pthread_attr_setstacksize'
> ../lib/argus_parse.a(argus_main.o)(.text+0x23fc): In function `main':
> : undefined reference to `pthread_create'
> ../lib/argus_parse.a(argus_main.o)(.text+0x2450): In function `main':
> : undefined reference to `pthread_join'
> ../lib/argus_client.a(argus_client.o)(.text+0x12e8): In function
> `ArgusConnectRemote':
> : undefined reference to `pthread_sigmask'
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/ra] Error 1
>
>
>
>
> make[1]: Entering directory `/usr/local/src/argus-clients-3.0.0.rc.
> 14/ratop'
> gcc -O3 -I. -I../include -I../common -DPACKAGE_NAME=\"\" -
> DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -
> DPACKAGE_BUGREPORT=\"\" -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 -DARGUS_SASL=1 -
> D_FILE_OFFSET_BITS=64 -DARGUS_THREADS=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 `ArgusUpdateScreen':
> ./ratop.c:1837: warning: comparison is always false due to limited
> range of data type
> gcc -O3 -o ../bin/ratop ratop.o ../lib/argus_parse.a ../lib/
> argus_common.a ../lib/argus_client.a -lm -lsasl -lcurses
> ../lib/argus_parse.a(argus_main.o)(.text+0x2390): In function `main':
> : undefined reference to `pthread_attr_getstacksize'
> ../lib/argus_parse.a(argus_main.o)(.text+0x239c): In function `main':
> : undefined reference to `pthread_attr_setstacksize'
> ../lib/argus_parse.a(argus_main.o)(.text+0x23fc): In function `main':
> : undefined reference to `pthread_create'
> ../lib/argus_parse.a(argus_main.o)(.text+0x2450): In function `main':
> : undefined reference to `pthread_join'
> ../lib/argus_client.a(argus_client.o)(.text+0x12e8): In function
> `ArgusConnectRemote':
> : undefined reference to `pthread_sigmask'
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/ratop] Error 1
>
>
>
>
> make[1]: Entering directory `/usr/local/src/argus-clients-3.0.0.rc.
> 14/radium'
> gcc -O3 -I. -I../include -I../common -DPACKAGE_NAME=\"\" -
> DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -
> DPACKAGE_BUGREPORT=\"\" -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 -DARGUS_SASL=1 -
> D_FILE_OFFSET_BITS=64 -DARGUS_THREADS=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 ./radium.c
> gcc -O3 -o radium radium.o ../lib/argus_parse.a ../lib/
> argus_common.a ../lib/argus_client.a -lnsl -lwrap -lm -lsasl
> radium.o(.text+0x38): In function `ArgusCloseOutput':
> : undefined reference to `pthread_join'
> radium.o(.text+0x137c): In function `ArgusInitOutput':
> : undefined reference to `pthread_create'
> radium.o(.text+0x25d0): In function `RaParseComplete':
> : undefined reference to `pthread_join'
> radium.o(.text+0x25e0): In function `RaParseComplete':
> : undefined reference to `pthread_join'
> radium.o(.text+0x3f20): In function `ArgusOutputProcess':
> : undefined reference to `pthread_sigmask'
> ../lib/argus_parse.a(argus_main.o)(.text+0x2390): In function `main':
> : undefined reference to `pthread_attr_getstacksize'
> ../lib/argus_parse.a(argus_main.o)(.text+0x239c): In function `main':
> : undefined reference to `pthread_attr_setstacksize'
> ../lib/argus_parse.a(argus_main.o)(.text+0x23fc): In function `main':
> : undefined reference to `pthread_create'
> ../lib/argus_parse.a(argus_main.o)(.text+0x2450): In function `main':
> : undefined reference to `pthread_join'
> ../lib/argus_client.a(argus_client.o)(.text+0x12e8): In function
> `ArgusConnectRemote':
> : undefined reference to `pthread_sigmask'
> collect2: ld returned 1 exit status
> make[1]: *** [radium] Error 1
>
>
>
>
> make[1]: Entering directory `/usr/local/src/argus-clients-3.0.0.rc.
> 14/ragrep'
> make[2]: Entering directory `/usr/local/src/argus-clients-3.0.0.rc.
> 14/ragrep'
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=
> \"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
> 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 -DARGUS_SASL=1 -D_FILE_OFFSET_BITS=64 -
> DARGUS_THREADS=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 -I. -I../include -DLOCALEDIR=\"/usr/local/share/
> locale\" -O3 -I. -I./../include -I./../common -DPACKAGE_NAME=
> \"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=
> \"\" -DPACKAGE_BUGREPORT=\"\" -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 -DARGUS_SASL=1 -
> D_FILE_OFFSET_BITS=64 -DARGUS_THREADS=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 ragrep.c
> ragrep.c: In function `RaProcessRecord':
> ragrep.c:354: warning: comparison is always false due to limited
> range of data type
>
>
>
>
>
>
> ----- End forwarded message -----
>
More information about the argus
mailing list