This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building kernel modules


Bosko Radivojevic wrote:

> /usr/include/linux/types.h:21: error: conflicting types for '_types_fd_set'
> /usr/include/sys/types.h:235: error: previous declaration of
> '_types_fd_set' was here

Okay, that's truly and hideously broken.  You should have no
/usr/include/linux at all.  This is not Linux.  Linux headers are target
headers, not host headers.  /usr/include is for host headers only.  The
appropriate place for target headers is $tooldir/include (or perhaps
$tooldir/sys-include), where $tooldir is
$exec_prefix/$target_noncanonical of the toolchain (i.e. it depends on
how the cross toolchain was configured.)  Unless of course the toolchain
was built with a sysroot, in which case they go in simply
$sysroot/include, since the whole point of a sysroot is to mirror the
directory structure of the target.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]