FreeBSD 4.1 compile problems with 2.0.0a

Russell Fulton r.fulton at auckland.ac.nz
Mon Sep 4 17:56:11 EDT 2000


I have tried to compile the latest argus on Free BSD 4.1.  First problem
I struck was:

gcc -pthread -O -I. -I../include -DHAVE_SYS_IOCCOM_H=1 
-DHAVE_SYS_SOCKIO_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERR
OR=1 -DHAVE_SOCKADDR_SA_LEN=1 -c ./argus_filter.c
./argus_filter.c:3385: conflicting types for `ether_ntohost'
/usr/include/net/ethernet.h:114: previous declaration of `ether_ntohost'
*** Error code 1

I fixed this by altering the ifndef to exclude this for FreeBDS.

#ifdef ETHER_SERVICE
struct ether_addr;
#if ! defined( linux ) && ! defined (__FreeBSD__) 
 extern int ether_ntohost(char *, struct ether_addr *); 
#endif
#endif


Next I got:

gcc -pthread -O -I . -I../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
In file included from ./argus.c:59:
ArgusModeler.h:109: netinet/rtp.h: No such file or directory
*** Error code 1

I did a find in /usr for rtp.h but did not find anything and I have no 
idea what it is. 

In short I'm stuck ;-)

Oh, yes!  while poking around in ArgusModeler.h I found a 
defined(__FreeBSD) which I assume should be defined(__FreeBSD__)

Russell.




More information about the argus mailing list