Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#51 Slackware 13.1 Compile Kernel Header Error Can't Build

open
nobody
5
2011-06-15
2011-06-15
Xgates
No

Hi,

I'm running Slackware 13.1 x86 and this is the slack build script I set up;

http://pastebin.com/DLdtnvVq

And I try to run it I keep getting a kernel headers error message;

../../src/include-glibc/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"

I have set up in the configure options;
--with-kernel-headers=/lib/modules/2.6.36.6/build/include \

Which I thought is correct for compiling against the headers, so I don't know what's going on and why I keep getting this error message...

To me that looks like it's looking at the kernel compile /usr/src path?

How can I compile this?

THANKS

Discussion

  • Xgates
    Xgates
    2011-06-15

    Ok I got this with the help of some other Slack users;

    -with-kernel-headers=/usr/include

    BUT Slackware 13.1 uses gcc 4.4.4 and the code breaks strict aliasing

    So after running configure in the /src/racoon/Makefile line 164 we have a fix;

    CFLAGS = -g -O2 -Wall -Werror -Wno-unused -fno-strict-aliasing

    I tried compiling 0.7.2, 0.7.3 and 0.8.0 all crap for gcc 4.4.4

    Newer versions of GCC don't seem to be affected so hopefully this can be patched...

    THANKS