From hir at ratio.de Thu Nov 18 05:04:30 1999 From: hir at ratio.de (hir) Date: Thu, 18 Nov 1999 14:04:30 +0100 Subject: Compiling Bro Message-ID: <001f01bf31c5$73f94ea0$af4ca8c0@hir> 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 From vern at ee.lbl.gov Sun Nov 21 00:23:36 1999 From: vern at ee.lbl.gov (Vern Paxson) Date: Sun, 21 Nov 1999 00:23:36 PST Subject: Compiling Bro In-Reply-To: Your message of Thu, 18 Nov 1999 14:04:30 PST. Message-ID: <199911210823.AAA04822@daffy.ee.lbl.gov> > 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: Those are all yacc symbols. I suspect the problem is that your version of yacc doesn't support the -p flag. If not, then you'll have to get one that does, such as GNU bison. Vern