<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt><font size="-1">Hello,<br>
<br>
I have an error when i try to build openswan on Arch (i686)<br>
I have the same error with the AUR, 2.6.25 and git version.<br>
<br>
cc -c -g -Werror -DKLIPS -DSCANDIR_HAS_CONST&nbsp;
-I/home/olivier/builds/openswan-2/ports/linux/include&nbsp;
-I/home/olivier/builds/openswan-2/ports/linux/include&nbsp;
-I/home/olivier/builds/openswan-2/ports/linux/include&nbsp;
-I/home/olivier/builds/openswan-2/ports/linux/include&nbsp;
-I/home/olivier/builds/openswan-2/programs/pluto
-I/home/olivier/builds/openswan-2/programs/addconn/
-I/home/olivier/builds/openswan-2
-I/home/olivier/builds/openswan-2/linux/include
-I/home/olivier/builds/openswan-2/include&nbsp; -Wall -Wpointer-arith
-Wcast-qual -Wstrict-prototypes -Wbad-function-cast&nbsp; -DKLIPS
-DNAT_TRAVERSAL -DNAT_TRAVERSAL -DKERNEL_ALG -DIKE_ALG
-DFINALCONFDIR=\"/etc\" -DFINALCONFDDIR=\"/etc/ipsec.d\"
-DFINALCONFFILE=\"/etc/ipsec.conf\" -DFINALVARDIR=\"/var\" -Werror
/home/olivier/builds/openswan-2/programs/addconn/addconn.c<br>
cc1: warnings being treated as errors<br>
In file included from
/home/olivier/builds/openswan-2/programs/addconn/addconn.c:51:0:<br>
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:37:19:
erreur: comparison between &acirc;&#8364;&#732;enum keyword_string_config_field&acirc;&#8364;&#8482; and
&acirc;&#8364;&#732;enum keyword_string_conn_field&acirc;&#8364;&#8482;<br>
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:38:19:
erreur: comparison between &acirc;&#8364;&#732;enum keyword_numeric_config_field&acirc;&#8364;&#8482; and
&acirc;&#8364;&#732;enum keyword_numeric_conn_field&acirc;&#8364;&#8482;<br>
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:39:34:
erreur: comparison between &acirc;&#8364;&#732;enum keyword_string_config_field&acirc;&#8364;&#8482; and
&acirc;&#8364;&#732;enum keyword_string_conn_field&acirc;&#8364;&#8482;<br>
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:40:34:
erreur: comparison between &acirc;&#8364;&#732;enum keyword_numeric_config_field&acirc;&#8364;&#8482; and
&acirc;&#8364;&#732;enum keyword_numeric_conn_field&acirc;&#8364;&#8482;<br>
<br>
I try to comment the -Werror in the Makefile of programs, and the build
work.<br>
But I have an error when I try to setup my VPN :<br>
<br>
sudo ipsec auto --up toto<br>
003 ERROR: "toto" #1: sendto on eth0 to xxx.xxx.xxx.xxx:500 failed in
main_outI1. Errno 22: Invalid argument<br>
104 "toto" #1: STATE_MAIN_I1: initiate<br>
010 "toto" #1: STATE_MAIN_I1: retransmission; will wait 20s for response<br>
003 ERROR: "toto" #1: sendto on eth0 to xxx.xxx.xxx.xxx:500 failed in
EVENT_RETRANSMIT. Errno 22: Invalid argument<br>
010 "toto" #1: STATE_MAIN_I1: retransmission; will wait 40s for response<br>
003 ERROR: "toto" #1: sendto on eth0 to xxx.xxx.xxx.xxx:500 failed in
EVENT_RETRANSMIT. Errno 22: Invalid argument<br>
<br>
This is really an error in the code or a problem elsewhere ?<br>
<br>
Maybe this is possibly linked to the gcc version<br>
recently arrived in Arch :<br>
<br>
olivier@x60:~/builds$ gcc -v<br>
Using built-in specs.<br>
COLLECT_GCC=gcc<br>
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper<br>
Target: i686-pc-linux-gnu<br>
Configured with: ../configure --prefix=/usr<br>
--enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared<br>
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu<br>
--enable-lto --enable-gnu-unique-object --disable-multilib<br>
--disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog<br>
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man<br>
--infodir=/usr/share/info<br>
Thread model: posix<br>
gcc version 4.5.0 (GCC) <br>
<br>
-- <br>
Olivier<br>
<br>
</font></tt>
</body>
</html>