Compiling Bro

Hallo all!

I've tried to compile Bro on Linux version 2.2.12 with gcc (version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)), but it didn’t work. The
problem is, that the symbols from yacc/lex (yylhs, yylen, yydefred,
yydgoto,…) are defined in libpcap and in Bro. I got the following errors:

../libpcap-0.4/libpcap.a(grammar.o)(.data+0x3c): multiple definition of
`yylhs'
parse.o(.data+0x40): first defined here
/usr/i486-linux/bin/ld: Warning: size of symbol `yylhs' changed from 272 to
204 in grammar.o
../libpcap-0.4/libpcap.a(grammar.o)(.data+0x108): multiple definition of
`yylen'
parse.o(.data+0x160): first defined here
/usr/i486-linux/bin/ld: Warning: size of symbol `yylen' changed from 272 to
204 in grammar.o
../libpcap-0.4/libpcap.a(grammar.o)(.data+0x1d4): multiple definition of
`yydefred'
parse.o(.data+0x280): first defined here
/usr/i486-linux/bin/ld: Warning: size of symbol `yydefred' changed from 588
to 300 in grammar.o

My Questions: Why does libpcap export this symbols? Why does nobody but me
has this problem and what can I do to solve it?

Hartmut Irrgang