Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|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

1 Answer 1

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.

share|improve this answer
1  
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 '12 at 16:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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