Anyone seen this problem before ?

Ashley Thomas athomas at unity.ncsu.edu
Wed Mar 27 16:09:32 PST 2002


hi,

I have posted a similar mail before but could'nt find an answer.

I get this error while installing bro:

(bro-pub-0.7a90/libpcap0.6.2)
-------------------------------------------------------------------------------------------

<snip>
gcc -I. -O -I../libpcap-0.6.2 -c cq.c
gcc -I. -O -I../libpcap-0.6.2 -Ibind8/include -Ibind8/portinc -c nb_dns.c
gcc -I. -O -I../libpcap-0.6.2 -c setsignal.c
gcc -I. -O -I../libpcap-0.6.2 -I. -c version.c
c++ -o bro main.o net_util.o parse.o scan.o re-parse.o re-scan.o util.o
Attr.o BackDoor.o BroString.o CCL.o CompHash.o Conn.o DFA.o Desc.o  Dict.o
Discard.o DNS.o DNS_Mgr.o EquivClass.o Event.o  Expr.o File.o Finger.o
Frag.o Frame.o FTP.o Func.o Hash.o HTTP.o ICMP.o ID.o Ident.o  InterConn.o
List.o Logger.o Login.o NFA.o NTP.o NVT.o Net.o NetVar.o  Obj.o PktSrc.o
Portmap.o PriorityQueue.o Queue.o Reassem.o  Rlogin.o RE.o RPC.o Scope.o
Sessions.o SteppingStone.o Stmt.o  TCP.o Telnet.o Timer.o Type.o UDP.o
Val.o Var.o XDR.o  cq.o nb_dns.o setsignal.o version.o  -Lbind8/lib -lbind
../libpcap-0.6.2/libpcap.a  -lm
parse.o: Definition of symbol `_yylhs' (multiply defined)
parse.o: Definition of symbol `_yylen' (multiply defined)
parse.o: Definition of symbol `_yydefred' (multiply defined)
parse.o: Definition of symbol `_yydgoto' (multiply defined)
parse.o: Definition of symbol `_yysindex' (multiply defined)
parse.o: Definition of symbol `_yyrindex' (multiply defined)
parse.o: Definition of symbol `_yygindex' (multiply defined)
parse.o: Definition of symbol `_yytable' (multiply defined)
parse.o: Definition of symbol `_yycheck' (multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yylhs'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yylen'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yydefred'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yydgoto'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yysindex'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yyrindex'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yygindex'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yytable'
(multiply defined)
../libpcap-0.6.2/libpcap.a(grammar.o): Definition of symbol `_yycheck'
(multiply defined)
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home/athomas/BRO/bro-pub-0.7a90 (line 90 of Makefile).

-----------------------------------------------------------------------------------------

Any pointers on what might be the problem and how to get around ?

It sees multiple definitions while doing 'make' ...

Is it some problem with the flex/bison etc..

I am attaching what i saw while doing .configure if that might help in
showing what might be the problem in my setting up ...



While doing a ./configure in libpcap-0.6.2

i see:

<snip>
checking for flex... (cached) flex
checking for flex 2.4 or higher... (cached) yes
checking for bison... no
configure: warning: don't have both flex and bison; reverting to lex/yacc
checking for capable lex... (cached) yes
<snip>


and running ./configure in bro-pub-0.7a90

i see:

<snip>
checking for bison... no
checking for byacc... no
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for flex... flex
checking for yywrap in -lfl... yes
<snip>

----------------------------------------------------------------------------------------

Any help is appreciated..
thanks for your time



regards
ashley




More information about the Bro mailing list