Giovanni | 3 Jun 2012 21:33
Picon
Favicon

Problem build tcpdump pcap_parse is undefined

Hi,

I have a problem to build tcpdump. I attach all file requested.
I have this problem with libpcap1.1.1, libpcap1.2.1 and with lastest git libpcap.
The log is produced with lastest tcpdump and libpcap.
Maybe the problem is my system.
I have these versions:

gcc (SUSE Linux) 4.3.2
bison-2.3-127.22
flex-2.5.35-43.19
glibc-2.9-2.13.1

I tried to build libpcap with 

./configure --without-flex --without-bison
the problem is always the same.

/tmp/libpcap> nm -po libpcap.a | egrep parse
libpcap.a:gencode.o:         U pcap_parse
libpcap.a:gencode.o:00009a00 T finish_parse
libpcap.a:grammar.o:00000070 T yyparse
libpcap.a:grammar.o:         U finish_parse

Thank you
Giovanni
Guy Harris | 1 Jul 2012 00:05
Picon
Favicon

Re: Problem build tcpdump pcap_parse is undefined


On Jun 3, 2012, at 12:33 PM, Giovanni wrote:

> I tried to build libpcap with 
> 
> ./configure --without-flex --without-bison
> the problem is always the same.

Have you tried building with just

	./configure

(so that it uses Flex and Bison) and if you build with

	./configure --without-flex --without-bison

(so that it uses "lex" and "yacc", which are, on your system, probably Flex and Bison run as "lex" and "yacc"
and thus running in compatibility mode)?

> /tmp/libpcap> nm -po libpcap.a | egrep parse
> libpcap.a:gencode.o:         U pcap_parse
> libpcap.a:gencode.o:00009a00 T finish_parse
> libpcap.a:grammar.o:00000070 T yyparse
> libpcap.a:grammar.o:         U finish_parse

So that's what you get when you build with

	./configure --without-flex --without-bison

If so, the problem *might* be that, because you told the configure script to use lex and yacc rather than flex
(Continue reading)


Gmane