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: <4F3C2B69 DOT 8040501 AT gmail DOT com> Date: Fri, 17 Feb 2012 12:10:43 +0900 Message-ID: Subject: Re: porting problem triggered by gcc include search order From: KIMURA Masaru To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Hi, 2012/2/16 marco atzeri : > 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 2. gcc picks /usr/include/poll.h 3. /usr/include/poll.h is coded to #include 4. gcc picks /usr/include/sys/poll.h 5. /usr/include/sys/poll.h is coded to #include 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 2. gcc picks /usr/include/poll.h 3. /usr/include/poll.h is coded to #include 4. gcc picks /usr/include/sys/poll.h 5. /usr/include/sys/poll.h is not coded to #include 6. gcc doesn'y picks src/rt/signal.h, b/c there is no #include 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