SL 6.7 Kernel headers misses typedef sa_family_t

2016-01-14 Thread André Hartmann
Hello List, I have written a program which uses SocketCAN for CAN communication. The development takes place under Ubuntu Linux and compilation is fine there (also cross-compilation for an embedded ARM Linux). But when I compile my program under Scientific Linux 6.7, I get the following error

Re: SL 6.7 Kernel headers misses typedef sa_family_t

2016-01-14 Thread Mark Stodola
On 01/14/2016 04:06 AM, André Hartmann wrote: Hello List, I have written a program which uses SocketCAN for CAN communication. The development takes place under Ubuntu Linux and compilation is fine there (also cross-compilation for an embedded ARM Linux). But when I compile my program under Sci

Re: SL 6.7 Kernel headers misses typedef sa_family_t

2016-01-14 Thread André Hartmann
Dear Mark, thanks for your investigation. Indeed, I had included linux/can.h before sys/socket.h (which includes bits/sockaddr.h, and should *not* be included directly) so the compiler struggled. After swapping the include lines, and including sys/socket.h before linux/can.h, it compiles fi

Re: SL 6.7 Kernel headers misses typedef sa_family_t

2016-01-14 Thread Antonio Querubin
On Thu, 14 Jan 2016, Mark Stodola wrote: It looks like sa_family_t has been morphing over time. In SL5, it is indeed defined in linux/socket.h. In SL6 I find it defined in bits/sockaddr.h. In SL7 it continues to be in bits/sockaddr.h, but there is also __kernel_sa_family_t defined in linux/