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:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=k4GA90RoaDplg0UyKKVEPB6vsE42E p/ov4Vj7CEv8ycXfTxLZpWMg7UC+FBlL4bHXZso3KWo+VFMb8JPOqq68d6mkmjBQ KiX8oiVpzapRFrZFewczhUslKSZzB+E+LgBUrhAeviIvvixxvL+ah1MA7bi3dko2 Z8KBqmJzeb8pXw= 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:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=wWL77o1uY/qmQfuWl5JObWUPi/A=; b=ZOg 08doT6QiTjq0mhqjSRrGbCWON4kM8Z+kqWmauoQtxT73+m580RCdMasENTERQOgq ZObUt1xwb3EBXM6VojEKFcce/6Qu0V4/218k/IS67N+eN3W302m4NIYJ/g5azvxy 2Cvd/fs2MIP2O/NcnfCwr9uV3ENO7cTiepdUb6EQ= 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=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_PC autolearn=ham version=3.3.1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:date:x-google-sender-auth :message-id:subject:from:to:content-type:x-gm-message-state; bh=rPBVa25K9/kN2h6WgyRpUT06wL8JsiEEzOXPZUgw294=; b=Y1Mpxp8oabpRaSL6BnZpAcTWz0mAUB6ZBQ+n8LU1PrP2JYnXhkoI0rY2jiseyYYM/m nGa70SJpCrgAmZsq73K8MYq16/Rq64DtVeNzHZ5ylzO9rHz8ItaGYFBYnwlT95Y1PxwO cW8f6E5AKbYXqi1InXMipUMlOsmlDC+Cnd5ha/qwkOg1Nm9LUhD7TwYJDqgQVWSNOKtS ycb2HoFK9EmpOrr71CwwGn2+qxVZ/8yOsxJAxlltpuznEhxSJ2vXj/3Qc1sUpNEjJa9X 8Ak036x0oaxocN1vo4jcSbd5yXYUoMFhk80KKm3rjlQVc7BVqnPXClgRrxAIyj2oDQoC Qq7g== MIME-Version: 1.0 X-Received: by 10.42.70.194 with SMTP id g2mr7593677icj.83.1373311734829; Mon, 08 Jul 2013 12:28:54 -0700 (PDT) Date: Mon, 8 Jul 2013 12:28:54 -0700 Message-ID: Subject: Re: Suggestion: improve cross-compiling ability From: Greg Turner To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnI/0BmxtLaxTWq8MaAPejBim8oSSDISlYlfkap9hS2gmG4gsL766rJgtZlIIa0RwaB4Xhs On Mon, Jul 8, 2013 at 5:07 AM, 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 ? > > P.S. I understand that actually it's glibc needs fixing because the same > will happen on any other non-Linux OS. But i believe FSF will simply say "we > don't care" and won't accept this fix. Why wouldn't they care? Even if you're right about them "not caring," you stand to lose nothing by giving them the chance to surprise you favorably. I don't know anything about _BSDTYPES_DEFINED but it sounds like some autotools solution is already in place, which defines __{u_char,daddr_t}_defined; it's hard to imagine a patch fixing that autotools stuff to correctly differentiate cbuild from ctarget would be poo-poo'ed by the glibc folks (or, for that matter, whatever upstream glibc's autotools scripts might be relying on for this). -gmt -- 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