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 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: <48AD7E49 DOT 9080908 AT cygwin DOT com> <48AD85FF DOT 2050504 AT cygwin DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/