tcpdump Mailing List

Covers the classic tcpdump text-based network sniffer and its libpcap sniffer library component.

List Archives

Latest Posts

Re: BPF issues that require careful planning Denis Ovsienko (Apr 09)
libpcap pull request 1504 implements this, if anyone wishes to tell a
sound reason not to proceed, please do it now. Otherwise this change is
going to be made in about a week.

Re: tcpdump and pcapng with comments Gert Doering (Apr 08)
Hi,

you need to ask that question to the person that provided this particular
flex binary to you. Way outside "tcpdump" relevance.

gert

Re: tcpdump and pcapng with comments Guy Harris (Apr 08)
That's a good question.

I do not know the answer, as I was not involved in producing the flex binary.

Perhaps you should talk to the person who checked the binary into the repository.

This is not a libpcap issue; all we could do is to have the configure script try to run flex without the command-line
arguments and, if that fails, report that flex doesn't work, tell the person trying to build libpcap that they need to
somehow...

Re: tcpdump and pcapng with comments Mahesh V (Apr 08)
I dont have that information.
Question remains, why does flex choose m4 binary that is compiled into it
and not from the PATH (env variable)
which m4 and which flex (both exist in the same path)

Re: tcpdump and pcapng with comments Francois-Xavier Le Bail via tcpdump-workers (Apr 07)

Re: tcpdump and pcapng with comments Guy Harris (Apr 07)
What process produced that binary? Is it a binary you compiled, is it a copy of a binary from the OS, or is it from
somewhere else?

Re: tcpdump and pcapng with comments Mahesh V (Apr 07)
Flex is not getting built. We have the binary checked in to our repository.
"which flex" gives the same path : tools/arm-5.3-uclibc-1.0.12/usr/bin/flex

Re: tcpdump and pcapng with comments Guy Harris (Apr 07)
"which" gave you a *relative* path?

But that path appears to differ from the path that flex tried to use.

What does "which flex" print?

Why was flex built at all? Why not just rely on the system flex or the cross-build flex that comes with the OS?

Re: tcpdump and pcapng with comments Mahesh V (Apr 07)
I did not run autoconf.
Only thing that I did was run the following
1) configure
2) make
Is it possible to set M4 using some other means?

Re: tcpdump and pcapng with comments Denis Ovsienko via tcpdump-workers (Apr 07)

Re: tcpdump and pcapng with comments Mahesh V (Apr 06)
configure:7921: checking for flex
configure:7937: found tools/arm-5.3-uclibc-1.0.12/usr/bin/flex
configure:7948: result: flex
configure:7986: flex conftest.l
*flex: fatal internal error, exec of
/var/tmp/tool-chains/buildroot-2016.02-5.3-arm/crosstools-arm-gcc-5.3-linux-4.1-uclibc-1.0.12-binutils-2.25-NPTL/usr/bin/m4
failed*

which m4

*# which m4tools/arm-5.3-uclibc-1.0.12/usr/bin/m4*
m4 exists and I have set M4PATH env variable as well;...

Re: tcpdump and pcapng with comments Guy Harris (Apr 06)
The test just runs the (F)lex command that it found, with some options that we require that Flex support, so there's no
compiled code to run, but...

...without the config.out file, we can't figure out what the problem is.

Re: tcpdump and pcapng with comments Michael Richardson (Apr 06)
Mahesh V <maheshvenkateshwaran () gmail com> wrote:
> I added some code (modified) tcpdump to write the pcapng file.
> while configuring/compiling the source code I get this error
> This is a cross compilation for ARM platform

Well, likely the resulting flex test can't be run, since it's cross-compiled.

I suggest *NOT* doing cross-compilation while you are working on new code.

> configure: error:...

Re: tcpdump and pcapng with comments Mahesh V (Apr 06)
Just to clarify, I am building libpcap (where I have added the code)
tcpdump compilation is fine but obviously gives symbol error because
libpcap is bot yet built.
thanks

Re: tcpdump and pcapng with comments Mahesh V (Apr 06)
Hi Folks

I added some code (modified) tcpdump to write the pcapng file.
while configuring/compiling the source code I get this error
This is a cross compilation for ARM platform

configure: error: *flex is insufficient to compile libpcap.*
libpcap requires Flex 2.5.31 or later, or a compatible version of lex.

# flex -V
flex 2.5.37
Same error is true for bison/m4. (I am not sure what is that tool for)

Any help in this regard?

More Lists

Dozens of other network security lists are archived at SecLists.Org.