Compile Errors in Linux

Zach Brown zab at zabbo.net
Mon Sep 14 13:47:21 PDT 1998


On Mon, 14 Sep 1998, Don Miller wrote:

> Group,
> 
> I am using linux version 5.2 to compile the bro software.  I am having
> problems with the DNS.cc source code.  The error has to do with the
> "void DNS_Mgr::AddResult function.
> 
> There is a message that says there is a syntax error before the ( on
> line 688.   Has anyone seen this?

It helps if you give us the output of whatever is giving you the error,
and linux 5.2?  whats that? :)

it seems there is a collision between a member of nb_dns_result and
<netdb.h>..  the attached patch is an ugly nasty hack that gets it to
compile..  then you get to run into collisions in TCP.h.. 

I don't have time now, but maybe later I'll try to get this to compile
under glibc and linux.

-- zach

--- DNS.cc.old  Mon Sep 14 13:41:33 1998
+++ DNS.cc      Mon Sep 14 13:42:10 1998
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <netdb.h>
+#undef h_errno /* collides w/ member in struct in nb_dns.h */
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/socket.h>
--- nb_dns.c.old        Mon Sep 14 13:41:40 1998
+++ nb_dns.c    Mon Sep 14 13:42:01 1998
@@ -43,6 +43,7 @@
 #include <errno.h>
 #include <memory.h>
 #include <netdb.h>
+#undef h_errno /* collides w/ member in struct in nb_dns.h */
 #include <resolv.h>
 #include <stdio.h>
 #include <stdlib.h>




More information about the Bro mailing list