[Openswan Users] Error in server.c(782) when compiling

Mihajlo Cvetanović mac at netset.co.yu
Wed Jun 28 14:58:00 CEST 2006


Hi all,

I have a couple of questions. First of all, why isn't there KLIPS binary 
for FC5 on ftp.openswan.org? Not even some old release, nothing at all...
Second, is there a way to compile KLIPS binary on one computer and to 
install it on another, so that I don't have to compile the whole kernel 
on every computer with Openswan? If there is, how to do it? Is there a 
howto on the Net? I've searched to no avail.
Third, what should I do with this error? 
openswan/programs/pluto/server.c won't compile with error on line 782. 
The source is 2.4.5 from openswan.org without patches, the kernel is 
freshly compiled 2.6.15. I've looked into server.c and it seems that 
LIST_INSERT_HEAD macro is used from <queue.h>, which expands to a dummy 
while loop, and does need semicolon appended (unlike the macro in 
openswan/include/sysqueue.h). I might insert the semicolon, but it 
doesn't seem right to fiddle with the code.

[openswan-2.4.5]# make programs
...
make[2]: Entering directory `/usr/src/openswan-2.4.5/programs/pluto'
cc  -I/usr/src/openswan-2.4.5/programs/pluto/linux26 
-I/usr/src/openswan-2.4.5/include 
-I/usr/src/openswan-2.4.5/lib/libcrypto 
-I/usr/src/openswan-2.4.5/linux/include    -DPLUTO_SENDS_VENDORID 
-DUSE_KEYRR   -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES  
-DX509_VERSION=\"X.509-1.5.4\"    -DPLUTO -DKLIPS 
-DBUILDER=\"root at netset.local\" -DDEBUG -DGCC_LINT -DUSE_AES -DUSE_3DES 
-DIKE_ALG -DKERNEL_ALG -DDB_CONTEXT -DAGGRESSIVE -DXAUTH -DMODECFG  
-DNAT_TRAVERSAL -DVIRTUAL_IP  
-DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT     
-DSHARED_SECRETS_FILE=\"/etc/ipsec.secrets\" 
-DPOLICYGROUPSDIR=\"/etc/ipsec.d/policies\" 
-DPERPEERLOGDIR=\"/var/log/pluto/peer\" -g -Wall -W -Wmissing-prototypes 
-Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-declarations 
-Wwrite-strings -Wstrict-prototypes  -g -O3 -c server.c
server.c: In function âprocess_raw_ifacesâ:
server.c:782: error: expected â;â before âqâ
make[2]: *** [server.o] Error 1
make[2]: Leaving directory `/usr/src/openswan-2.4.5/programs/pluto'
...


More information about the Users mailing list