Ethereal-dev: [ethereal-dev] Ethereal on Solaris -- lexical scanner problems.
I'm attempting to compile Ethereal on my Solaris machine.
Everything seems to go fine, until it gets to the linking stage.
At that point, there's apparently a conflict between the two parsers
generated by lex/flex in libpcap and dfilter-scanner.
Any suggestions as to how to resolve this? I am using gcc, on a
Solaris-2.5.1 machine -- and using the Solaris lexical compiler.
Regards,
Wes Brown
The output is as follows:
make[2]: Entering directory `/home/webrown/ethereal-0.7.1'
gcc -Wall -g -O2 -Iwiretap -I/usr/openwin/include -I/opt/gnu/include
-I/opt/gno
me/lib/glib/include -I/opt/gnome/include -o ethereal capture.o column.o
dfilte
r-grammar.o dfilter-scanner.o dfilter.o display.o ethereal.o ethertype.o
file.o
filter.o follow.o gtkpacket.o menu.o packet-aarp.o packet-arp.o
packet-atalk.o p
acket-bootp.o packet-cdp.o packet-clip.o packet-data.o packet-dns.o
packet-eth.o
packet-fddi.o packet-ftp.o packet-giop.o packet-gre.o packet-http.o
packet-icmp
v6.o packet-ip.o packet-ipsec.o packet-ipv6.o packet-ipx.o packet-isakmp.o
packe
t-lapb.o packet-llc.o packet-lpd.o packet-nbipx.o packet-nbns.o packet-ncp.o
pac
ket-nntp.o packet-null.o packet-osi.o packet-ospf.o packet-pop.o
packet-ppp.o pa
cket-pppoe.o packet-pptp.o packet-radius.o packet-raw.o packet-rip.o
packet-rsvp
.o packet-rtsp.o packet-sdp.o packet-smb.o packet-tcp.o packet-telnet.o
packet-t
ftp.o packet-tr.o packet-trmac.o packet-udp.o packet-vines.o packet-x25.o
packet
.o prefs.o print.o proto.o ps.o resolv.o summary.o util.o xdlc.o snprintf.o
wir
etap/libwiretap.a
-R/opt/tcltk/lib:/opt/kde/lib:/opt/qt/lib:/opt/mikmod/lib:/op
t/gimp/lib:/opt/gnome/lib:/opt/gnu/lib:/usr/lib:/usr/ccs/lib:/usr/openwin/li
b:/u
sr/dt/lib -L/opt/gnome/lib -lgtk -lgdk -lgmodule -lglib -ldl -lintl -lXext
-lX11
-lsocket -lnsl -lw -lm -lpcap
ld: fatal: symbol `yyin' is multiply defined:
(file dfilter-scanner.o and file /opt/gnu/lib/libpcap.a(scanner.o));
ld: fatal: symbol `yyout' is multiply defined:
(file dfilter-scanner.o and file /opt/gnu/lib/libpcap.a(scanner.o));
ld: fatal: symbol `yylex' is multiply defined:
(file dfilter-scanner.o and file /opt/gnu/lib/libpcap.a(scanner.o));
ld: fatal: symbol `yywrap' is multiply defined:
(file dfilter-scanner.o and file /opt/gnu/lib/libpcap.a(scanner.o));
ld: warning: symbol `yytext' has differing alignments:
(file dfilter-scanner.o value=0x4; file
/opt/gnu/lib/libpcap.a(scanner.o
) value=0x1);
largest value applied
ld: warning: symbol `yytext' has differing sizes:
(file dfilter-scanner.o value=0x4; file
/opt/gnu/lib/libpcap.a(scanner.o
) value=0x400);
/opt/gnu/lib/libpcap.a(scanner.o) definition taken
ld: fatal: symbol `yyparse' is multiply defined:
(file dfilter-grammar.o and file /opt/gnu/lib/libpcap.a(grammar.o));
ld: fatal: File processing errors. No output written to ethereal
make[2]: *** [ethereal] Error 1
make[2]: Leaving directory `/home/webrown/ethereal-0.7.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/webrown/ethereal-0.7.1'
make: *** [all-recursive-am] Error 2