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?

link|improve this question
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 Jul 27 '11 at 14:18
feedback

1 Answer

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.

link|improve this answer
You 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 Feb 4 at 16:38
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.