IPSec-Tools build on Ubuntu

2

I am trying to build ipsec-tools package from http://ipsec-tools.sourceforge.net/ on Ubuntu PC. I build the package with:

$ ./autoreconf --force --install
$ ./bootstrap
$ ./configure --enable-security-context=no
$ make

The make stops with the following error message:

grabmyaddr.c:424: error: dereferencing pointer ‘sin6’ does break strict-aliasing rules

Any idea how to finish the make without errors?

Max

Posted 2011-07-27T12:19:03.427

Reputation: 21

It's a programming error on the part of the developers. If you have a little C experience, then check out this - it was the first Google result. Or, report this bug and somebody should get around to it as compile errors tend to be pretty high priority.

– new123456 – 2011-07-27T14:18:38.380

Answers

3

it is caused by the new strict aliasing checking in the 4.4 version of gcc. You can fix it by changing in the general Makefile and in the src/racoon subdirectory Makefile the CFLAGS line to include also -fno-strict-aliasing.

Jasper internet Nuyens

Posted 2011-07-27T12:19:03.427

Reputation: 31

1You can also do export CFLAGS="-fno-strict-aliasing" before configure and make, that way the flag is taken into account without changing the Makefiles. – Cosmin Prund – 2012-02-04T16:38:20.763