[Swan] Cannot compile Libreswan 3.14 and newer on CentOS 5

Tomas France tomfra at centrum.cz
Thu Sep 24 19:20:20 UTC 2015


Hello everyone,

I have a problem compiling LibreSwan 3.14 and 3.15 on a CentOS 5 server.
Version 3.13 is not affected. The same issue occurred on 2 CentOS 5 servers
and both 3.14 and 3.15 do compile just fine on a CentOS 6 server.  Any help
would be appreciated!

This is the part causing the problem it seems:

-c /opt/libreswan-3.15/OBJ.linux.x86_64/lib/libipsecconf/lex.yy.c
../../../lib/libipsecconf/parser.l:367:5: error: "YY_STACK_USED" is not
defined
cc1: warnings being treated as errors
../../../lib/libipsecconf/parser.l:482: warning: no previous declaration for
'yylex'
../../../lib/libipsecconf/parser.l:1096:5: error: "YY_ALWAYS_INTERACTIVE" is
not defined
../../../lib/libipsecconf/parser.l:1099:5: error: "YY_NEVER_INTERACTIVE" is
not defined
../../../lib/libipsecconf/parser.l:1390:5: error: "YY_MAIN" is not defined

Thanks!

Tomas




More information about the Swan mailing list