minor compile issue on rc29

carter at qosient.com carter at qosient.com
Tue Sep 19 07:42:36 EDT 2006


Is this true of all OpenBSD's?  I thought we cleared this up 2-3 months ago!!!

Carter

Carter Bullard
QoSient LLC
150 E. 57th Street Suite 12D
New York, New York 10022
+1 212 588-9133 Phone
+1 212 588-9134 Fax  

-----Original Message-----
From: Andreas Östling <andreaso at it.su.se>
Date: Tue, 19 Sep 2006 12:59:16 
To:argus-info at lists.andrew.cmu.edu
Subject: [ARGUS] minor compile issue on rc29


I get this error when compiling argus-rc29 on OpenBSD 3.9:

argus_util.c:2141: error: conflicting types for `ether_hostton'
/usr/include/netinet/if_ether.h:304: error: previous declaration of 
`ether_hostton'

OpenBSD (at least 3.9) use const char *, struct ether_addr * so simply 
removing the conflicting __OpenBSD__ hook will make it work again.

--- argus_util.c.org    Tue Sep 19 12:51:06 2006
+++ argus_util.c        Tue Sep 19 12:51:29 2006
@@ -2137,11 +2137,7 @@
 };
 #endif
 #if !defined(__APPLE_CC__) && !defined(__APPLE__)
-#if defined(__OpenBSD__)
-extern int ether_hostton(char *, struct ether_addr *);
-#else
 extern int ether_hostton(const char *, struct ether_addr *);
-#endif
 #endif
 #endif


/Andreas



More information about the argus mailing list