xslate / p5-Mouse

Lightweight class builder for Perl, as a subset of Moose
https://metacpan.org/release/Mouse
Other
46 stars 32 forks source link

Pre-processor exhausted #19

Closed mgirod closed 10 years ago

mgirod commented 10 years ago

Mouse-2.1.0> perl Build.PL Mouse-2.1.0> ./Build ... cc -I. -Ixs-src -I/usr/lib/perl/5.14/CORE -fPIC -Wall -W -Wno-comment -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o xs-src/MouseUtil.o xs-src/MouseUtil.c xs-src/MouseTypeConstraints.xs: In function 'boot_Mouse__Util': xs-src/MouseTypeConstraints.xs:609:5: warning: implicit declaration of function 'setup_my_cxt' [-Wimplicit-function-declaration] xs-src/MouseTypeConstraints.xs:612:5: warning: implicit declaration of function 'DEFINE_TC' [-Wimplicit-function-declaration] xs-src/MouseTypeConstraints.xs:612:15: error: 'Any' undeclared (first use in this function) ...

The pre-processor decided to stop pre-processing... This is for: Mouse-2.1.0> cc --version cc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

but I get the same result with: Mouse-2.1.0> cc --version Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.5.0 Thread model: posix

syohex commented 10 years ago

@mgirod How do you try to install Mouse? cpanm Mouse or cpan -i Mouse ? Did you install dependencies of Mouse ?

mgirod commented 10 years ago

Neither: I install by hand: tar zxf, cd, perl Build.PL, ./Build Yes, I installed all the dependencies first. How can I check all the versions match? But as I wrote, I did it twice: on ubuntu and on mac, with the same results.

mgirod commented 10 years ago

But thanks... Trying 'cpan -i Mouse' now on my mac...

syohex commented 10 years ago

@mgirod You may get warnings or error message when perl Build.PL, if you miss some dependencies.

mgirod commented 10 years ago

Thanks... I had solved all the dependencies I had got with 'perl Build.PL'. Obviously, there remained issues which were not reported. 'cpan -i Mouse' succeeded on both platforms. So thanks to all of you. This is just one more step into gradually losing control of what happened. Sigh.