[squid-users] build error with kernel headers 4.2
Eray Aslan
eraya at a21an.org
Thu Sep 17 05:24:10 UTC 2015
I am getting a bunch of build errors with kernel headers 4.2:
libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I../..
-I../../include -I../../lib -I../../src -I../../include -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -pipe -D_REENTRANT
-m64 -march=native -O2 -pipe -std=c++11 -c Intercept.cc -fPIC -DPIC -o
.libs/Intercept.o
In file included from /usr/include/linux/netfilter.h:7:0,
from /usr/include/linux/netfilter_ipv4.h:8,
from Intercept.cc:91:
/usr/include/linux/in.h:28:16: error: redeclaration of ‘IPPROTO_IP’
IPPROTO_IP = 0, /* Dummy protocol for TCP */
^
In file included from ../../src/ip/Address.h:20:0,
from ../../src/comm/Connection.h:17,
from Intercept.cc:15:
/usr/include/netinet/in.h:42:5: note: previous declaration ‘<anonymous enum> IPPROTO_IP’
IPPROTO_IP = 0, /* Dummy protocol for TCP. */
^
In file included from /usr/include/linux/netfilter.h:7:0,
from /usr/include/linux/netfilter_ipv4.h:8,
from Intercept.cc:91:
/usr/include/linux/in.h:30:18: error: redeclaration of ‘IPPROTO_ICMP’
IPPROTO_ICMP = 1, /* Internet Control Message Protocol */
^
In file included from ../../src/ip/Address.h:20:0,
from ../../src/comm/Connection.h:17,
from Intercept.cc:15:
/usr/include/netinet/in.h:44:5: note: previous declaration ‘<anonymous enum> IPPROTO_ICMP’
IPPROTO_ICMP = 1, /* Internet Control Message Protocol. */
^
[...]
and so on. Known problem?
--
Eray
More information about the squid-users
mailing list