[Openswan Users] Error when build openswan-2.6.25 and git version on arch

Olivier Gleizes olivier at galamus.fr
Tue May 4 12:19:08 EDT 2010


Hello,

I have an error when i try to build openswan on Arch (i686)
I have the same error with the AUR, 2.6.25 and git version.

cc -c -g -Werror -DKLIPS -DSCANDIR_HAS_CONST  
-I/home/olivier/builds/openswan-2/ports/linux/include  
-I/home/olivier/builds/openswan-2/ports/linux/include  
-I/home/olivier/builds/openswan-2/ports/linux/include  
-I/home/olivier/builds/openswan-2/ports/linux/include  
-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  -Wall -Wpointer-arith 
-Wcast-qual -Wstrict-prototypes -Wbad-function-cast  -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
cc1: warnings being treated as errors
In file included from 
/home/olivier/builds/openswan-2/programs/addconn/addconn.c:51:0:
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:37:19: 
erreur: comparison between âEUR~enum 
keyword_string_config_fieldâEUR^(TM) and âEUR~enum 
keyword_string_conn_fieldâEUR^(TM)
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:38:19: 
erreur: comparison between âEUR~enum 
keyword_numeric_config_fieldâEUR^(TM) and âEUR~enum 
keyword_numeric_conn_fieldâEUR^(TM)
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:39:34: 
erreur: comparison between âEUR~enum 
keyword_string_config_fieldâEUR^(TM) and âEUR~enum 
keyword_string_conn_fieldâEUR^(TM)
/home/olivier/builds/openswan-2/include/ipsecconf/confread.h:40:34: 
erreur: comparison between âEUR~enum 
keyword_numeric_config_fieldâEUR^(TM) and âEUR~enum 
keyword_numeric_conn_fieldâEUR^(TM)

I try to comment the -Werror in the Makefile of programs, and the build 
work.
But I have an error when I try to setup my VPN :

sudo ipsec auto --up toto
003 ERROR: "toto" #1: sendto on eth0 to xxx.xxx.xxx.xxx:500 failed in 
main_outI1. Errno 22: Invalid argument
104 "toto" #1: STATE_MAIN_I1: initiate
010 "toto" #1: STATE_MAIN_I1: retransmission; will wait 20s for response
003 ERROR: "toto" #1: sendto on eth0 to xxx.xxx.xxx.xxx:500 failed in 
EVENT_RETRANSMIT. Errno 22: Invalid argument
010 "toto" #1: STATE_MAIN_I1: retransmission; will wait 40s for response
003 ERROR: "toto" #1: sendto on eth0 to xxx.xxx.xxx.xxx:500 failed in 
EVENT_RETRANSMIT. Errno 22: Invalid argument

This is really an error in the code or a problem elsewhere ?

Maybe this is possibly linked to the gcc version
recently arrived in Arch :

olivier at x60:~/builds$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr
--enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-lto --enable-gnu-unique-object --disable-multilib
--disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info
Thread model: posix
gcc version 4.5.0 (GCC)

-- 
Olivier

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20100504/249a5be9/attachment.html 


More information about the Users mailing list