25 April 2012

Compilling ipsec-tools-0.8.0 errors...

While compiling i got the following errors:
gcc -I../../src/libipsec -include ../../src/include-glibc/glibc-bugs.h -I../../src/include-glibc -I../../src/include-glibc -g -O2 -Wall -Werror -Wno-unused -o setkey setkey.o parse.o token.o ../libipsec/.libs/libipsec.a -lresolv
token.o(.text+0x98d): In function `yylex':
/programs/ipsec-tools-0.5-rc1/src/setkey/token.c:1903: undefined reference to `yywrap'
collect2: ld returned 1 exit status
make[3]: *** [setkey] Error 1
make[3]: Leaving directory `/programs/ipsec-tools-0.5-rc1/src/setkey'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/programs/ipsec-tools-0.5-rc1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/programs/ipsec-tools-0.5-rc1'
make: *** [all] Error 2

Solution came from here and is described below.
Please note that this fix was used on a Debian machine.
apt-get install flex
apt-get install bison
./configure && make && make install

No comments:

Post a Comment