X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <AANLkTinVh5FfLMXkaruaLEz2wH=37fyy3Oq2UunT3XZ5@mail.gmail.com>
References: <AANLkTinVh5FfLMXkaruaLEz2wH=37fyy3Oq2UunT3XZ5@mail.gmail.com>
Date: Fri, 27 Aug 2010 00:03:11 +0200
Message-ID: <AANLkTinPYq=Uxg0hWYRHxwgSaM9GUPKV=+-8cKDBa3xc@mail.gmail.com>
Subject: Re: compiling binutils misses sys/user.h
From: Al <oss.elmar@googlemail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> I try to compile binutils. It complaints a missing sys/user.h.
>
> On linux it would find it in "/usr/include/sys/user.h".
>
> What is the way to go on Cygwin?

A question with an answer pays ten times. So here we go for the archives:

The solution is to set the host to the appropriate value. AFAIK it is
autodetected by ./configure, as long as you don't set it manually to a
wrong value as I did (indirectly).

The host for cygwin is i686-pc-cygwin.

Once it is set right the configure excludes modules that depend on
kernel stuff like user.h. A kernel is simply not part of Cygwin.


Al

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

