[ARGUS] Compiling argus-2.0.6.fixes.1 under FreeBSD 5.2.1
Peter Van Epp
vanepp at sfu.ca
Wed May 19 12:25:09 EDT 2004
On Wed, May 19, 2004 at 11:46:30AM -0400, Richard Bejtlich wrote:
> Hello,
>
> I am having trouble compiling argus-2.0.6.fixes.1 under FreeBSD 5.2.1.
> During make I see this:
>
> gcc -O2 -I. -I../include -I/usr/local/include -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_STD
> INT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRING_H=1
> -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1
> -DCONFIG_X86_BSWAP=1 -DSTDC_HEADERS=1
> -DARGUS_SYSLOG=1 -c ./argus_filter.c
> argus_filter.c:3717: error: conflicting types for `ether_ntohost'
> /usr/include/net/ethernet.h:374: error: previous declaration of `ether_ntohost'
> argus_filter.c:3718: error: conflicting types for `ether_hostton'
> /usr/include/net/ethernet.h:371: error: previous declaration of `ether_hostton'
> *** Error code 1
>
Try applying this diff. 4.9 RELEASE is happy without this def and
probably 5.2.1 will be too (I'll check that later along with OS X):
*** common/argus_filter.c.orig Wed May 19 09:19:09 2004
--- common/argus_filter.c Wed May 19 09:20:09 2004
***************
*** 3713,3719 ****
extern int ether_hostton(char *, struct ether_addr *);
#endif
! #if !defined(HAVE_ETHER_HOSTTON) && !defined(linux) && !defined(CYGWIN) && !defined(__NetBSD__)
extern int ether_ntohost(char *, struct ether_addr *);
extern int ether_hostton(char *, struct ether_addr *);
#endif
--- 3713,3719 ----
extern int ether_hostton(char *, struct ether_addr *);
#endif
! #if !defined(HAVE_ETHER_HOSTTON) && !defined(linux) && !defined(CYGWIN) && !defined(__NetBSD__) && !defined(__FreeBSD__)
extern int ether_ntohost(char *, struct ether_addr *);
extern int ether_hostton(char *, struct ether_addr *);
#endif
More information about the argus
mailing list