Problem compiling bro 0.4 on RedHat Linux 5.2

I'm trying to compile bro 0.4 on RedHat Linux 5.2, which has the
egcs compilers installed by default:

% c++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

When I try to compile bro, it stops on

% make
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -DVERSION="\"0.4\"" -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c
c++ -I. -I../libpcap-0.4a6 -g -Wall -g -D__STDC__=2 -c In method `void DNS_Mgr::AddResult(class DNS_Request *, struct nb_dns_result *)': parse error before `('
make: *** [DNS.o] Error 1

Here are the source lines in the area of the error (via cat -n
   683 return r;
   684 }
   686 void DNS_Mgr::AddResult(DNS_Request* dr, struct nb_dns_result* r)
   687 {
   688 hostent* h = (r && r->h_errno == 0) ? r->hostent : 0;
   690 DNS_Mapping* new_dm;
   691 DNS_Mapping* prev_dm;
   692 int keep_prev = 0;

Anyone have any suggestions? I'm not very good with c++, so this is beyond
my ability to fix.

Mike Iglesias Internet:
University of California, Irvine phone: 949-824-6926
Office of Academic Computing FAX: 949-824-2069

Our current installation of Bro on Solaris 2.6 only logs to the bro.log
file. Other log files such as ftp.log are created but not written to
even when events should have been logged. While troubleshooting this, we
reviewed the attached config.log file and discovered a couple of errors
that could be the cause of our problem:

- Line 43, there are declaration conflicts for openlog, syslog and
- Line 65-70, contains several type conflicts
- Line 87, contains a declaration conflict for gettimeofday
- Line 101, there is an undefined symbol gethostbyname
- Line 135, there is an undefined symbol socket
- Line 169, the str library is not found -- where can we download this

These errors all seem to be related to the conftest.c file. Has anyone
else had these problems? How were you able to resolve them?



config.log (7.71 KB)