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

Simon Deziel simon at xelerance.com
Mon Jul 15 19:20:26 UTC 2013


Hi Whit,

On 13-07-15 02:42 PM, Whit Blauvelt wrote:
> 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/lib
 ex
>  ec/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? 

This was reported to us some times ago [1] and it is now fixed in git [2].

Have a good day,
Simon


[1]: https://lists.openswan.org/pipermail/users/2013-June/022471.html
[2]:
https://github.com/xelerance/Openswan/commit/31e261a07a1aa6b9de1491e8f6053189aff5554b



More information about the Users mailing list