client beta.4

Carter Bullard carter at qosient.com
Thu Jun 14 19:46:35 EDT 2001


Hey Peter,
   I suspect that the original grep distribution included getopt.c
and getopt.h.  I need to get the config.h file to be complete bare
bones, so that it doesn't look for anything but the basics.

This is straight grep() from gnu, so the fault will lie in the
configure run from the general distribution.

Carter

Carter Bullard
QoSient, LLC
300 E. 56th Street, Suite 18K
New York, New York  10022

carter at qosient.com
Phone +1 212 588-9133
Fax   +1 212 588-9134
http://qosient.com



-----Original Message-----
From: owner-argus-info at lists.andrew.cmu.edu
[mailto:owner-argus-info at lists.andrew.cmu.edu] On Behalf Of Peter Van
Epp
Sent: Thursday, June 14, 2001 6:05 PM
To: argus
Subject: client beta.4


	With the following patch, all of OpenBSD, FreeBSD and Solaris
agree that ragrep is still broken :-) Where is getopt.h supposed to be?
>From the 
"getopt.h" I'd expect somewhere in the include path but it isn't present
on 
any of the three I tried (nor in the distribution) and they all get
unhappy about option (which I expect is in getopt.h).

Open and FreeBSD (with getopt.h commented out):

making in ./ragrep
gcc -DHAVE_CONFIG_H -I. -I../include
-DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2 -c ragrep.c
ragrep.c:89: elements of array `long_options' have incomplete type
ragrep.c:91: warning: excess elements in struct initializer
ragrep.c:91: warning: (near initialization for `long_options[0]') ...

Solaris 2.6:

making in ./ragrep
make[1]: Entering directory
`/ucs1/vanepp/argus-clients-2.0.1.alpha.4/ragrep'
make[2]: Entering directory
`/ucs1/vanepp/argus-clients-2.0.1.alpha.4/ragrep'
gcc -DHAVE_CONFIG_H -I. -I../include
-DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2 -c ragrep.c
In file included from ragrep.c:35:
config.h:198: warning: `_FILE_OFFSET_BITS' redefined
/usr/include/sys/feature_tests.h:80: warning: this is the location of
the previous definition
ragrep.c:50: getopt.h: No such file or directory
make[2]: *** [ragrep.o] Error 1
make[2]: Leaving directory
`/ucs1/vanepp/argus-clients-2.0.1.alpha.4/ragrep'
make[1]: Leaving directory
`/ucs1/vanepp/argus-clients-2.0.1.alpha.4/ragrep'
making in ./ratop
make[1]: Entering directory
`/ucs1/vanepp/argus-clients-2.0.1.alpha.4/ratop'
gcc -O2 -I . -I../include -I../common  -DHAVE_SYS_SOCKIO_H=1
-DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_STRERROR=1
-DHAVE_SOLARIS=1 -DSTDC_HEADERS=1  -c ./ratop.c In file included from
./ratop.c:42:
ratop.h:55: warning: `MAXNAMELEN' redefined
/usr/include/sys/param.h:161: warning: this is the location of the
previous definition gcc -O2 -o ../bin/ratop ratop.o ../lib/argus_parse.a
../lib/argus_common.a ../lib/argus_client.a -lsocket -lnsl -lcurses -lm
Undefined                       first referenced
 symbol                             in file
mvwchgat                            ratop.o
ld: fatal: Symbol referencing errors. No output written to ../bin/ratop
collect2: ld returned 1 exit status
make[1]: *** [../bin/ratop] Error 1
make[1]: Leaving directory
`/ucs1/vanepp/argus-clients-2.0.1.alpha.4/ratop'


*** include/argus_util.h.orig	Thu Jun 14 06:31:23 2001
--- include/argus_util.h	Thu Jun 14 06:33:27 2001
***************
*** 163,168 ****
--- 163,173 ----
     "sps", "pipe", "sctp", "fc",
  };
  
+ #if defined(__OpenBSD__)
+ #include <netinet/in_systm.h>
+ #include <netinet/ip.h>
+ #endif
+ 
  #include <netinet/ip_icmp.h>
  
  char *icmptypestr[ICMP_MAXTYPE + 1] = {



More information about the argus mailing list