X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=P/GkyqNOHgf9nDcmXgcf+HnJdmy9i/AqJyNRBvsGaOt oHqBM1urd10fggz2RC6GDFSjrYvfUXEERWJK0ymeq0Ki7HrMiJUiworVYZh2bemb K9425D9IOyuAvnlLHz1titz5iizU4IdLTvr7JtT0n9kk6DHPVIrg6UHg7wzY+hd4 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=i7NmyQbi2vufCQIxZC4/e3s4sp4=; b=FUI5C0xpOL2Q3nVtJ cwLxsZeIF9Nm9paNUP9VW5GWuhww42Lx6eY3j68kNy9PUpKPsi8Yqujelzi1Q54A 6SzINyzW28sF7hlVH9vfr/xQ6bUosrBlqcRnANFwXEq6ClqBKe4XMyyBaqVjJYKe 0kEYdMoZubc8LtmMn1L5uI+y1w= 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 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_PC autolearn=ham version=3.3.1 X-Received: by 10.66.160.97 with SMTP id xj1mr30405862pab.5.1373409972173; Tue, 09 Jul 2013 15:46:12 -0700 (PDT) Message-ID: <51DC92B5.3090105@users.sourceforge.net> Date: Tue, 09 Jul 2013 17:46:13 -0500 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Suggestion: improve cross-compiling ability References: <000901ce7bd3$ae02fb70$0a08f250$%fedin AT samsung DOT com> In-Reply-To: <000901ce7bd3$ae02fb70$0a08f250$%fedin@samsung.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-07-08 07:07, Fedin Pavel wrote: > Hello! I have got one small idea on how to improve compatibility with > cross-compiling Linux software. This time it's glibc. > > At certain point glibc's rpcgen program (which is being compiled for host), > relies on '#ifndef __u_char_defined' and '#ifndef __daddr_t_defined' in > order to determine presence of 'u_char' and 'daddr_t' respectively (see > libc/sunrpc/rpc/types.h). I have to patch this to add _BSDTYPES_DEFINED > check in order to be able to cross-build glibc under Cygwin. > What if we add also these Linux-style definitions to our includes ? Actually, I just fixed this in CVS last week: http://sourceware.org/ml/newlib/2013/msg00521.html http://sourceware.org/ml/newlib-cvs/2013-q3/msg00005.html This will be in Cygwin 1.7.21 when released; in the meantime, it is safe to apply that patch to your existing /usr/include/sys/types.h. BTW, following up on the previous discussion wrt cross-compiling the Linux kernel, my stdint patch is now in the kbuild and linux-next trees as commit b35310627f396efcc25d71fb343b3aa02039d20d; hopefully it will get into 3.11, but it is also necessary for (and applies clean to) all stable branches since 3.3. HTH, Yaakov -- 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