<div dir="ltr"><div><div><div>hi,<br><br></div>When trying to compile some Perl modules using cpanm I get errors. My google fu is not being helpful, maybe you could point me in the right direction.<br><br></div>This is the compiler I have in a zone:<br>
<br>root@zone2:~# pkg list | grep gcc<br>developer/gcc48                                   4.8.1-0.151008             i--<br>developer/gcc48/libgmp-gcc48                      5.0.5-0.151008             i--<br>developer/gcc48/libmpc-gcc48                      1.0.1-0.151008             i--<br>
developer/gcc48/libmpfr-gcc48                     3.1.1-0.151008             i--<br>system/library/gcc-4-runtime<br><br></div>When trying to install Text::Markdown::Discount I get this error:<br><br>cpanm (App::cpanminus) 1.7001 on perl 5.016001 built for i86pc-solaris-thread-multi-64int<br>
Work directory is /root/.cpanm/work/1392489889.18009<br>You have make /usr/bin/make<br>You have /usr/bin/wget<br>You have /usr/bin/tar, /usr/bin/gzip and /usr/bin/bzip2<br>You have /usr/bin/unzip<br>Searching Text::Markdown::Discount on cpanmetadb ...<br>
--> Working on Text::Markdown::Discount<br>Fetching <a href="http://www.cpan.org/authors/id/S/SE/SEKIMURA/Text-Markdown-Discount-0.11.tar.gz">http://www.cpan.org/authors/id/S/SE/SEKIMURA/Text-Markdown-Discount-0.11.tar.gz</a><br>
-> OK<br>Unpacking Text-Markdown-Discount-0.11.tar.gz<br>Entering Text-Markdown-Discount-0.11<br>Checking configure dependencies from META.yml<br>Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.63_02)<br>Configuring Text-Markdown-Discount-0.11<br>
Running Makefile.PL<br>Checking if your kit is complete...<br>Looks good<br>Warning: -Ldiscount changed to -L/root/.cpanm/work/1392489889.18009/Text-Markdown-Discount-0.11/discount<br>Writing Makefile for Text::Markdown::Discount<br>
Writing MYMETA.yml and MYMETA.json<br>-> OK<br>Checking dependencies from MYMETA.json ...<br>Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.63_02)<br>Building and testing Text-Markdown-Discount-0.11<br>cp lib/Text/Markdown/Discount.pm blib/lib/Text/Markdown/Discount.pm<br>
( cd discount; CC='cc -fPIC' sh configure.sh; make )<br>Configuring for [markdown]<br>Looking for cpp (/opt/gcc-4.8.1/bin/cpp) ok<br>looking for install (/usr/gnu/bin/install)<br>checking the C compiler (cc -fPIC) does not compile code properly<br>
*** Error code 1<br>make: Fatal error: Command failed for target `discount/libmarkdown.a'<br><br clear="all"><div><div><div><div><div><div>--<br>Groeten,<br>natxo</div>
</div></div></div></div></div></div>