Nice catch!
I think libpcap uses bison... in the docs/FAQ file:
Q. I have experienced problems defining multiple filters: ntop reports
'syntax error'. What shall I do?
A. If you believe the filter is syntactically correct then it's likely
that the libpcap you have used has been compiled using an old
non-reentrant version of flex. Please make sure you're using
version 2.5.4 or above.
ntop does ask for yacc|bison - look in the missing file, where it warns you
(but it's only a warning, so perhaps you missed it)...
bison|yacc)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter
Backx
Sent: Wednesday, February 20, 2002 5:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] (no subject)
This is a very long shot, but you might be using the flex and bison
replacement for lex and yacc. I believe there are slight differences between
the two, but IIRC (it's been a while) bison has a command line option to
make it entirely compatible with yacc. You might want to check exactly what
you are using and possibly add that parameter.
-- Peter
----- Original Message -----
From: "Burton M. Strauss III" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 11:38 PM
Subject: RE: [Ntop] (no subject)
> You are missing a required library. From the name, I'm guessing it's the
> yacc package...
>
> However, I can't seem to find any references to yylex in the source
>
> The question was asked once before
> (http://listmanager.unipi.it/pipermail/ntop/2001-June/000209.html), but no
> reply ever surfaced.
>
> I would install yacc and recompile.
>
> Also--
>
> Excerpted & Slightly updated from a 07Jan2001 post to ntop and ntop-dev)
>
> Please give us more information... Please reply to the list, not to me
> privately...
>
> Specifically:
>
> Hardware
> Type & # of processors
> Amount of memory
> # network interfaces and types (vendor, bus, etc.)
>
> Software
> NTop version, source and any applied patches
> If you've compiled from the source, say so!
> If you're using a package (such as an .rpm), where did you get
> it from and what is the EXACT name?
> The EXACT command line you are using to invoke NTop
> OS vendor & version
> Any major upgrades (kernel, networking, etc.)
> gcc version (e.g. gcc --version)
> glibc version
> What else is running
>
> Network
> Roughly where are the interface(s) you're monitoring (Public
Internet,
> Private LAN, what?)
> What's the bandwidth (e.g. 10 Mbps University internet, 1.5 Mbps T1,
> CableModem capped at 1.5Mbps, 56K dialup)
> How many machines (traffic sources/destinations) and users
>
> Operations
> The EXACT command like you use to invoke ntop. If it's in a script,
> cut & paste it and resolve all the variables!
> Error Messages: Cut & paste the exact text. If it's in the log,
give
> us 15 or 20 lines before.
>
> (If you're uncomfortable giving specifics, then leave it generic)
>
> -----Burton
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Rodrigo Souza
> Sent: Wednesday, February 20, 2002 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: [Ntop] (no subject)
>
>
> I am with the following error:
>
>
> gcc -g -O2 -pipe -o .libs/ntop main.o
>
.libs/libntopreport.so -L/usr/lib/mysql -lmysqlclient -lcrypt -lm -L/home/st
> 099128
>
/ntop/gdchart0.94c -lgdchart -L/home/st099128/ntop/gdchart0.94c/gd-1.8.3 -lg
> d -L/home/st099128/ntop/gdchart0.94c/gd-1.8.
>
3/libpng-1.0.8 -lpng -L/home/st099128/ntop/gdchart0.94c/zlib-1.1.3 -lz -lpth
> read -lresolv -lnsl -ldl -lmysqlclient -lcry
> pt -lm -lgdchart -lgd -lpng -lz
>
.libs/libntop.so -L/usr/local/lib -lpcap -lgdbm -lpthread -lresolv -lnsl -ld
> l -lmysqlcli
>
ent -lcrypt -lm -lgdchart -lgd -lpng -lz -lpthread -lresolv -lnsl -ldl -L/us
> r/lib/mysql -lmysqlclient -lcrypt -lm -L/hom
>
e/st099128/ntop/gdchart0.94c -lgdchart -L/home/st099128/ntop/gdchart0.94c/gd
> -1.8.3 -lgd -L/home/st099128/ntop/gdchart0.9
>
4c/gd-1.8.3/libpng-1.0.8 -lpng -L/home/st099128/ntop/gdchart0.94c/zlib-1.1.3
> -lz -Wl,--rpath -Wl,/usr/local/lib
> .libs/libntop.so: undefined reference to `lex_init'
> .libs/libntop.so: undefined reference to `yylex'
> collect2: ld returned 1 exit status
> make[2]: *** [ntop] Error 1
> make[2]: Leaving directory `/home/st099128/ntop/ntop'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/st099128/ntop/ntop'
> make: *** [all-recursive-am] Error 2
>
> it can help me ???
>
> thx,
>
> Rodrigo Souza
> http://csst.com.br/linuxbox/
>
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://listmanager.unipi.it/mailman/listinfo/ntop
>
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://listmanager.unipi.it/mailman/listinfo/ntop
>
>
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop