<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY LINK="#0000ff">
Hi Jeff,<BR>
<BR>
thanks for the reply.<BR>
<BR>
It works perfectly.<BR>
<BR>
<BR>
Regards,<BR>
António<BR>
<BR>
On Mon, 2013-06-17 at 08:59 -0400, Jeff Frantz wrote: <BR>
<BLOCKQUOTE TYPE=CITE>
Hi Antonio,<BR>
<BR>
<BR>
<BR>
Comment out this line:<BR>
<BR>
CFLAGS+= -Wno-error=cpp<BR>
<BR>
<BR>
<BR>
In each of these two files: <BR>
<BR>
openswan-2.6.39/lib/libopenswan/Makefile<BR>
<BR>
openswan-2.6.39/programs/pluto/Makefile<BR>
<BR>
<BR>
<BR>
-Jeff<BR>
<BR>
<BR>
<BR>
<B>From:</B> users-bounces@lists.openswan.org [mailto:users-bounces@lists.openswan.org] <B>On Behalf Of </B>Antonio Silva<BR>
<B>Sent:</B> Sunday, June 16, 2013 3:17 PM<BR>
<B>To:</B> users@lists.openswan.org<BR>
<B>Subject:</B> [Openswan Users] Error compile version 2.6.39 in debian squeeze<BR>
<BR>
<BR>
<BR>
<BR>
hi,<BR>
<BR>
I'm trying to compile and build openswan 2.6.39 debian package in debian squeeze but i have the following error:<BR>
<BR>
make[1]: Entering directory `/usr/src/openswan/openswan-2.6.39'<BR>
Setting up for OBJDIR=OBJ.linux.x86_64<BR>
OBJDIR: OBJ.linux.x86_64<BR>
(cd /usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64 && OBJDIRTOP=/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64 OBJDIR=/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64 /usr/bin/make programs )<BR>
make[2]: Entering directory `/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64'<BR>
make[3]: Entering directory `/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64/lib'<BR>
make[4]: Entering directory `/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64/lib/libopenswan'<BR>
cc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DUSE_SHA2 -I/usr/src/openswan/openswan-2.6.39/lib/libcrypto/libsha2 -I/usr/src/openswan/openswan-2.6.39/ports/linux/include -I/usr/src/openswan/openswan-2.6.39/ports/linux/include -I/usr/src/openswan/openswan-2.6.39/ports/linux/include -I. -I/usr/src/openswan/openswan-2.6.39/linux/net/ipsec -I/usr/src/openswan/openswan-2.6.39/linux/include -I/usr/src/openswan/openswan-2.6.39 -DDEBUG -DPFKEYV2 -DKLIPS -DWITH_UDPFROMTO -DHAVE_IP_PKTINFO -I/usr/src/openswan/openswan-2.6.39/include -I/usr/src/openswan/openswan-2.6.39/ports/linux/include -I/usr/src/openswan/openswan-2.6.39/ports/linux/include -I/usr/src/openswan/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/lib/ipsec\" -DFINALLIBDIR=\"/usr/lib/ipsec\" -DFINALSBINDIR=\"/usr/sbin\" -D_FORTIFY_SOURCE=2 -c -o addrtoa.o /usr/src/openswan/openswan-2.6.39/linux/net/ipsec/addrtoa.c<BR>
cc1: error: -Werror=cpp: No option -Wcpp<BR>
make[4]: *** [addrtoa.o] Error 1<BR>
make[4]: Leaving directory `/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64/lib/libopenswan'<BR>
make[3]: *** [programs] Error 1<BR>
make[3]: Leaving directory `/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64/lib'<BR>
make[2]: *** [programs] Error 1<BR>
make[2]: Leaving directory `/usr/src/openswan/openswan-2.6.39/OBJ.linux.x86_64'<BR>
make[1]: *** [programs] Error 2<BR>
make[1]: Leaving directory `/usr/src/openswan/openswan-2.6.39'<BR>
make: *** [build-stamp] Error 2<BR>
dpkg-buildpackage: error: debian/rules build gave error exit status 2<BR>
<BR>
<BR>
I don't know why i have this problem... i have all the dependencies installed. <BR>
I'm guessing that could be because the version of gcc for debian squeeze, i had compile the previous version 2.6.38 without problems.<BR>
<BR>
Can you help me?<BR>
<BR>
Thanks,<BR>
António <BR>
<BR>
<BR>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>