I'm trying to install MATH::Pari on Solaris 10
cpan install failed
I went into the .cpan/build directory and poked around.
That suggested I poke around in the the pari2.1.7 subdirectory.
Eventually, after much g & g (google and guess), I hit on the idea of ./Configure -a and selecting no optimization and building static.
I got a working executable in /usr/local/bin/gp-2.1 (!)
Now just go up a directory and compile the cpan module.
# perl Makefile.PL paridir=pari-2.1.7 Setting up Math::Pari with Perl 5.008008 on solaris version 2.10; cc=gcc, gccversion=3.4.6, ccflags='-fno-strict-aliasing -pipe -Wdec +laration-after-statement -I/usr/local/include -I/opt/gnu/include -D_L +ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', ld=gcc, ldflags=' -L/usr/local/lib -L/opt/gnu/lib ', optimize='-O'. Found GP/PARI build directory in pari-2.1.7 (integer-formatted version 2001007). ...Generating libPARI/paricfg.h ... Scanning header files... ...ulong ...getrusage Creating libPARI/paricfg.h... ...Processor of family `sparcv9' detected Checking if your kit is complete... Looks good ...Processor of family `sparcv9' detected ...I will use assembler build of type 'sparcv8_micro'. ...Assembler is GNU assembler Writing Makefile for Math::PARI::libPARI Writing Makefile for Math::Pari # make cp libPARI.dumb.pod blib/lib/Math/libPARI.dumb.pod cp PariInit.pm blib/lib/Math/PariInit.pm cp Pari.pm blib/lib/Math/Pari.pm cp libPARI.pod blib/lib/Math/libPARI.pod cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE=" +-O" PREFIX="/usr/local" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/opt/rhome/barrem01/.cpan/build/Math-Pari +-2.010709-44Ifmc/libPARI' /opt/local/bin/perl -wle0 > pariinl.h /opt/local/bin/perl -pe1 ../pari-2.1.7/src/kernel/sparcv8/level0.h ../ +pari-2.1.7/src/kernel/none/level1.h >> pariin +l.h gcc -c -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers -I../pari-2.1 +.7/src/graph -I. -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr= +pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o es. +o ../pari-2.1.7/src/language/es.c gcc -c -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers -I../pari-2.1 +.7/src/graph -I. -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr= +pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o bas +e5.o ../pari-2.1.7/src/basemath/base5.c gcc -c -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers -I../pari-2.1 +.7/src/graph -I. -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr= +pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o bib +li1.o ../pari-2.1.7/src/basemath/bibli1.c gcc -c -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers -I../pari-2.1 +.7/src/graph -I. -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr= +pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o buc +h2.o ../pari-2.1.7/src/basemath/buch2.c gcc -c -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers -I../pari-2.1 +.7/src/graph -I. -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr= +pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o ini +t.o ../pari-2.1.7/src/language/init.c gcc -c -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers -I../pari-2.1 +.7/src/graph -I. -fno-strict-aliasing -pipe -Wdeclaration-after-state +ment -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr= +pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o gen +1.o ../pari-2.1.7/src/basemath/gen1.c ./pariinl.h: In function `gmul': ./pariinl.h:887: error: asm-specifier for variable `hiremainder' confl +icts with asm clobber list make[1]: *** [gen1.o] Error 1 make[1]: Leaving directory `/opt/rhome/barrem01/.cpan/build/Math-Pari- +2.010709-44Ifmc/libPARI' make: *** [libPARI/libPARI.a] Error 2
Can anyone A) solve my install problem?
B) tell me why the executable runs but the perl module based on the same code doesn't compile?
C) tell me what an asm-specifier is?
D) tell me what an asm clobber list is?
E) shed any other light on my problem?

And please hurry, I didn't have that much hair when I started.

Thanks guys and girls.

- Mike
P.S.
# rm libPARI/paricfg.h
# perl Makefile.PL paridir=pari-2.1.7 LINKTYPE=static
# make static
resulted in the same error.

In reply to Compiling MATH::Pari on Solaris 10 by barrem01

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.