Did that but still get the same problem.

# ls /etc/netsniff-ng/
rules  trafgen_stddef.h
# cd trafgen/
# ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp
Syntax error at line6, at char 't'! syntax error, unexpected number!

I suspect the problem is due to the "cpp" version:
# file /usr/bin/cpp
/usr/bin/cpp: symbolic link to `/usr/bin/cpp-4.6'

I am running Ubuntu 12.04, don't know how to upgrade to cpp-4.9.

On another system, I have ubuntu  14.10 server.  It has cpp-4.9.

Tried to install  netsniff-ng on it, 

# apt-get install git build-essential flex bison ccache libnl-3-dev 
libnl-genl-3-dev libgeoip-dev libnetfilter-conntrack-dev libncurses5-dev 
liburcu-dev libnet1-dev libpcap-dev
# git clone git://github.com/netsniff-ng/netsniff-ng.git

However, when I tried to install it 
# ./configure 
...
[*] Generating config.h ...
[!] Some libraries or header definitions are missing or too old. Thus
    certain tools will not be built (see below). Please refer to the
    INSTALL file for the libraries needed to build the complete
    netsniff-ng toolkit.
[!] The NaCl crypto library is currently not present on your system or
    could not be found. Either install it from your distro or build it
    manually using 'make nacl' and make sure that the NACL_INC_DIR and
    NACL_LIB_DIR environment variables are set appropriately.
[!] The following tools will *not* be built: curvetun mausezahn
[*] The following tools will be built: netsniff-ng trafgen astraceroute 
flowtop ifpps bpfc

Any ideas?


On Friday, June 5, 2015 at 5:24:13 PM UTC-5, Vadim Kochan wrote:
>
> On Fri, Jun 05, 2015 at 03:04:24PM -0700, Perf Tech wrote: 
> > Sorry, I meant to say I got the following. I am stuck with syntax errors 
> :-( 
> > 
> > # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us --cpp 
> > Syntax error at line6, at char 't'! syntax error, unexpected number! 
> > # ./trafgen --dev eth0 --conf tmp2.txt --rand --gap 1000us 
> > Syntax error at line2, at char 'T'! syntax error, unexpected number, 
> > expecting ')'! 
> > 
>
> I think you need to copy trafgen_stddef.h into /etc/netsniff-ng/stddef.h 
> :-) 
> Because when I renamed my /etc/netsniff-ng/stddef.h I got the same 
> error. 
>
> Regards, 
>

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to