Unable to compile

David Touzeau david at articatech.com
Sat Jun 27 07:39:39 PDT 2015


Hi
I'm unable to compile latest release on Debian 7
How to fix it ?

==> network/example (all)
make[2]: Entering directory `/root/wanproxy-0.8.0/network/example'
==> network/example/network-packet-receive-hexdump1 (all)
make[3]: Entering directory 
`/root/wanproxy-0.8.0/network/example/network-packet-receive-hexdump1'
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include 
common/common.h -pipe -O -g -W -Wall -Werror -Wno-system-headers 
-Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual 
-Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter 
-Wchar-subscripts -Wreorder -c -o network-packet-receive-hexdump1.o 
network-packet-receive-hexdump1.cc
network-packet-receive-hexdump1.cc: In function ‘int main(int, char**)’:
network-packet-receive-hexdump1.cc:72:38: error: ‘getopt’ was not 
declared in this scope
network-packet-receive-hexdump1.cc:77:13: error: ‘optarg’ was not 
declared in this scope
network-packet-receive-hexdump1.cc:83:10: error: ‘optind’ was not 
declared in this scope
make[3]: *** [network-packet-receive-hexdump1.o] Error 1
make[3]: Leaving directory 
`/root/wanproxy-0.8.0/network/example/network-packet-receive-hexdump1'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/wanproxy-0.8.0/network/example'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/wanproxy-0.8.0/network'
make: *** [all] Error 2


Bets regards


More information about the wanproxy mailing list