www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/21/21:44:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48AE19DC.BB7CBB88@dessent.net>
Date: Thu, 21 Aug 2008 18:43:56 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Building kernel modules
References: <d6c8ef150808210616l57c08949o83fe4a64b044b58f AT mail DOT gmail DOT com> <48AD7E49 DOT 9080908 AT cygwin DOT com> <d6c8ef150808210759w577d063fne61a2ee0ad803448 AT mail DOT gmail DOT com> <48AD85FF DOT 2050504 AT cygwin DOT com> <d6c8ef150808210818i6f76b9del2e28602a117d5d5c AT mail DOT gmail DOT com> <d6c8ef150808211420g53eed996l49557f080f70ccab AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019