This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Perl problem under cygwin...


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 ? -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing
> -pipe -I/usr/local/include
> -DUSEIMPORTLIB -O3 ? -DVERSION=\"1.06\" -DXS_VERSION=\"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: =/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/:/usr/lib/gcc/i686-pc-cygwin/:/usr/libexec/gcc/i686-pc-cygwin/4.3.4/:/usr/libexec/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/bin/i686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/
libraries: =/usr/lib/gcc/i686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/:/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/lib/i686-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/:/lib/:/usr/lib/i686-pc-cygwin/4.3.4/:/usr/lib/

-- 
Reini Urban
http://phpwiki.org/? ? ? ? ?? 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]