X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_LV,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 9 Dec 2010 08:40:41 +0100 Message-ID: Subject: Re: Perl problem under cygwin... From: Reini Urban To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 2010/12/9 Hugh Myers: > I've researched this and found some threads, but no answers. In a nut > shell, I get the following: > > gcc -c =A0 -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing > -pipe -I/usr/local/include > -DUSEIMPORTLIB -O3 =A0 -DVERSION=3D\"1.06\" -DXS_VERSION=3D\"1.06\" > "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" > Strip.c > Strip.xs:2:20: EXTERN.h: No such file or directory > Strip.xs:3:18: perl.h: No such file or directory > Strip.xs:4:18: XSUB.h: No such file or directory > > Since the files in question are in fact in the include directory > mentioned I'm at a loss to see the > error. I also played with llvm-gcc recently and have similar problems. I checked it like this, to see wrong installed headers into my incpath: $ make Strip.i $ grep ' "/usr' Strip.i | less For me it was # 605 "/usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h" # 1 "/usr/local/include/sys/types.h" 1 3 # 12 "/usr/local/include/sys/types.h" 3 # 1 "/usr/local/include/_mingw.h" 1 3 Bad that -I /usr/local/include overrides /usr/include. I'll probably have to append it with -idirafter with the next perl. In your case it looks like you use a wrong cpp.exe preprocessor or gcc driver, maybe from llvm or mingw. $ gcc -print-search-dirs install: /usr/lib/gcc/i686-pc-cygwin/4.3.4/ programs: =3D/usr/lib/gcc/i686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686-pc-cygwin= /4.3.4/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/:/us= r/lib/gcc/i686-pc-cygwin/:/usr/libexec/gcc/i686-pc-cygwin/4.3.4/:/usr/libex= ec/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686= -pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bi= n/i686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-= pc-cygwin/bin/ libraries: =3D/usr/lib/gcc/i686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686-pc-cygwi= n/4.3.4/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/lib/i= 686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-= cygwin/lib/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../i686-pc-cygwin/4.3.4= /:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../:/lib/i686-pc-cygwin/4.3.4/:/l= ib/:/usr/lib/i686-pc-cygwin/4.3.4/:/usr/lib/ --=20 Reini Urban http://phpwiki.org/=A0 =A0 =A0 =A0 =A0=A0 http://murbreak.at/ -- 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