argus-2.0.0V -- compile problems on FreeBSD

Carter Bullard carter at qosient.com
Wed Jan 31 08:35:18 EST 2001


Hmmmmm,
Thats not how its suppose to work.
Can you fgrep for the defintion of stdout
in your /usr/include/* files to see how its
declared?

Thanks,

Carter


-----Original Message-----
From: owner-argus at lists.andrew.cmu.edu
[mailto:owner-argus at lists.andrew.cmu.edu]On Behalf Of Russell Fulton
Sent: Tuesday, January 30, 2001 5:21 PM
To: Argus (E-mail)
Subject: Re: argus-2.0.0V -- compile problems on FreeBSD



I have compile problems on FreeBSD:

gcc -pthread -O -I . -I../include  -I../include/linux-include 
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_ETHER_HOSTTON=1 
-DHAVE_STRERROR=1 -DHAVE_SOCKADDR_SA_LEN=1 -c ./argus.c
./argus.c: In function `main':
./argus.c:382: invalid lvalue in assignment
./argus.c:383: invalid lvalue in assignment
*** Error code 1

      if ((tmpfile = fopen ("/dev/null", "w")) != NULL) {
         fclose(stdout);
         fclose(stderr);
=>         stdout = tmpfile;
=>         stderr = tmpfile;
      } else
         ArgusLog (LOG_ERR, "Cannot map stdout to /dev/null\n");


It would appear that freebsd does not like reassigning to stderr and 
stdout ???

Russell Fulton, Computer and Network Security Officer
The University of Auckland,  New Zealand

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2876 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20010131/11e9315c/attachment.bin>


More information about the argus mailing list