delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_NV |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <4F3C2B69.8040501@gmail.com> |
References: | <CAPYQg32adK8n-NqXa4xwcro6bvVfhPw7D8TuwsJFqyaeU9h21Q AT mail DOT gmail DOT com> <4F3C2B69 DOT 8040501 AT gmail DOT com> |
Date: | Fri, 17 Feb 2012 12:10:43 +0900 |
Message-ID: | <CAPYQg31Cw3spkarEf8dTH1x-TkkjLdjECmupZEpTyvNF31W=Cg@mail.gmail.com> |
Subject: | Re: porting problem triggered by gcc include search order |
From: | KIMURA Masaru <hiyuh DOT root AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Hi, 2012/2/16 marco atzeri <marco DOT atzeri AT gmail DOT com>: > rename local signal.h is effective. > > I guess that -I. is influencing the inclusion order with unexpected > results. thanks. and I checked gcc include order on my linux env. renaming works fine but it's awkward to me. after more investigation, I realized that: * on cygwin env 1. src/rt/slave.c is coded to #include <poll.h> 2. gcc picks /usr/include/poll.h 3. /usr/include/poll.h is coded to #include <sys/poll.h> 4. gcc picks /usr/include/sys/poll.h 5. /usr/include/sys/poll.h is coded to #include <signal.h> 6. gcc picks src/rt/signal.h, not /usr/include/signal.h b/c -I. * on linux box 1. src/rt/slave.c is coded to #include <poll.h> 2. gcc picks /usr/include/poll.h 3. /usr/include/poll.h is coded to #include <sys/poll.h> 4. gcc picks /usr/include/sys/poll.h 5. /usr/include/sys/poll.h is not coded to #include <signal.h> 6. gcc doesn'y picks src/rt/signal.h, b/c there is no #include <signal.h> even if w/ -I. and I got one of google result: http://www.mingw.org/wiki/IncludePathHOWTO maybe, this can be fixed in nvc itself and not so cygwin-related. sorry for noise. Peace, -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |