You are not logged in.
Hello everybody,
I have an error when I try to upgrade openswan with yaourt/AUR (2.6.24-2 => 2.6.25-1) on a i686 arch install
This is the error :
make[3]: Entering directory `/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/OBJ.linux.i386/programs/addconn'
cc -c -fno-strict-aliasing -g -Werror -DKLIPS -DSCANDIR_HAS_CONST -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/ports/linux/include -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/ports/linux/include -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/ports/linux/include -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/ports/linux/include -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/programs/pluto -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/programs/addconn/ -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25 -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/linux/include -I/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/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 /tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/programs/addconn/addconn.c
cc1: warnings being treated as errors
In file included from /tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/programs/addconn/addconn.c:51:0:
/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/include/ipsecconf/confread.h:37:19: error: comparison between 'enum keyword_string_config_field' and 'enum keyword_string_conn_field'
/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/include/ipsecconf/confread.h:38:19: error: comparison between 'enum keyword_numeric_config_field' and 'enum keyword_numeric_conn_field'
/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/include/ipsecconf/confread.h:39:34: error: comparison between 'enum keyword_string_config_field' and 'enum keyword_string_conn_field'
/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/include/ipsecconf/confread.h:40:34: error: comparison between 'enum keyword_numeric_config_field' and 'enum keyword_numeric_conn_field'
make[3]: *** [addconn.o] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/OBJ.linux.i386/programs/addconn'
make[2]: *** [programs] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/OBJ.linux.i386/programs'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/OBJ.linux.i386'
make: *** [programs] Error 2
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build openswan package.
Error: unable to update openswanFollowing packages have not been installed:
openswan
Is a bug with the AUR package or is a problème on my install ?
Thx for the help.
--
Olive
Last edited by nolive (2010-05-05 06:58:38)
Offline
It could be the -Werror flag. If you can find out where it is being set, you may be able to disable it.
Also have a look at the problematic lines in confread.h in order to see if the error is justified (i.e. if there really is a comparison between two different enum types). You might be able to fix it by casting both enum types to unsigned.
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
ok, that's build when I comment this in /tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25/programs/Makefile.program
# die if there are any warnings
ifndef WERROR
#WERROR:= -Werror
endifAnd run the compile directly (not with yaourt or pkgbuild) with
sudo make programs installin /tmp/yaourt-tmp-olivier/aur-openswan/openswan/src/openswan-2.6.25
But my ipsec VPN don't work :
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 argumentThank's for your help. I haven't the skills for checking the code.
Offline
this is an issue with gcc 4.5. An openswan devellopper just release a patch who fix this issue : https://gsoc.xelerance.com/issues/1108 .
I try this patch, the build work and my vpn connection work fine.
Offline