[Openswan Users] Build problem - "cc1: error: -Werror=cpp: No option -Wcpp"

Whit Blauvelt whit at transpect.com
Mon Jul 15 18:42:31 UTC 2013


Hi,

Trying to build openswan on what's basically a Debian Squeeze system with at
present a custom 3.1.8 kernel installed. Not attached to that OS or kernel.
Just a spare box sitting around that I want to set up a backup instance of
Openswan on in case the production box fails. Not getting far:

# ./buildlin.sh 
OBJDIR: OBJ.linux.x86_64
(cd /usr/src/openswan-2.6.39/OBJ.linux.x86_64 && OBJDIRTOP=/usr/src/openswan-2.6.39/OBJ.linux.x86_64 OBJDIR=/usr/src/openswan-2.6.39/OBJ.linux.x86_64 make programs )
make[1]: Entering directory `/usr/src/openswan-2.6.39/OBJ.linux.x86_64'
make[2]: Entering directory `/usr/src/openswan-2.6.39/OBJ.linux.x86_64/lib'
make[3]: Entering directory `/usr/src/openswan-2.6.39/OBJ.linux.x86_64/lib/libopenswan'
cc -DUSE_SHA2 -I/usr/src/openswan-2.6.39/lib/libcrypto/libsha2  -I/usr/src/openswan-2.6.39/ports/linux/include  -I/usr/src/openswan-2.6.39/ports/linux/include  -I/usr/src/openswan-2.6.39/ports/linux/include  -I. -I/usr/src/openswan-2.6.39/linux/net/ipsec -I/usr/src/openswan-2.6.39/linux/include -I/usr/src/openswan-2.6.39 -DDEBUG -DPFKEYV2 -DKLIPS -DWITH_UDPFROMTO -DHAVE_IP_PKTINFO -I/usr/src/openswan-2.6.39/include  -I/usr/src/openswan-2.6.39/ports/linux/include  -I/usr/src/openswan-2.6.39/ports/linux/include  -I/usr/src/openswan-2.6.39/ports/linux/include  -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2  -DGCC_LINT  -Wall -Wpointer-arith -Wno-error=cast-qual -Wno-error=cpp -Wstrict-prototypes -Wbad-function-cast -DNAT_TRAVERSAL -DUSE_MODP_RFC5114 -DFINALCONFDIR=\"/etc\" -DFINALCONFDDIR=\"/etc/ipsec.d\" -DFINALCONFFILE=\"/etc/ipsec.conf\" -DFINALVARDIR=\"/var\" -DFINALLIBEXECDIR=\"/usr/local/libexec/ipsec\" -DFINALLIBDIR=\"/usr/local/lib/ipsec\" -DFINALSBINDIR=\"/usr/local/sbin\"   -c -o addrtoa.o /usr/src/openswan-2.6.39/linux/net/ipsec/addrtoa.c
cc1: error: -Werror=cpp: No option -Wcpp
make[3]: *** [addrtoa.o] Error 1
make[3]: Leaving directory `/usr/src/openswan-2.6.39/OBJ.linux.x86_64/lib/libopenswan'
...

Can't find any references to this error either through Google or a Gmane
search of this list. A dependency I need to install? 

Thanks,
Whit


More information about the Users mailing list