O Brethren,

I have a Perl building question, rather than a Perl usage one....

I have a new-to-me server, a dual-Xeon machine running Solaris 10 x86, upon which I am attempting to install Perl 5.10. I am trying to install with ithreads and maximal 64-bitness, using PerlIO, native fork() and native malloc(), but I have also tried disabling threads and 64-bit support to try to solve the problem (though the whole point of compiling my own Perl is to get 64-bitness; most of Solaris 10 x86 is compiled for the lowest possible common denominator).

I'm using a locally bootstrapped gcc 4.3.3, and mostly gnu userspace. I have verified correct operation of the compiler. All goes well up until linking miniperl, at which time the build dumps core:

`sh cflags "optimize='-O2'" opmini.o` -fPIC -DPERL_EXTERNAL_GLOB opmi +ni.c CCCMD = gcc -DPERL_CORE -c -D_REENTRANT -fno-strict-aliasin +g -pipe -I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include -m +64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV +-mtune=nocona -O2 -Wall -W -Wextra -Wdeclaration-after-statement -We +ndif-labels -Wc++-compat LD_LIBRARY_PATH=/netstore/src/perl-5.10.0 gcc -L/usr/local/lib -L/usr/ +sfw/lib -L/opt/sfw/lib -m64 -o miniperl \ `echo gv.o toke.o perly.o op.o pad.o regcomp.o dump.o ut +il.o mg.o reentr.o mro.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o sc +ope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o +universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms. +o locale.o pp_pack.o pp_sort.o | sed 's/ op.o / /'` \ miniperlmain.o opmini.o -lsocket -lnsl -ldl -lm -lpthread +-lc LD_LIBRARY_PATH=/netstore/src/perl-5.10.0 ./miniperl -w -Ilib -MExpor +ter -e '<?>' || make minitest LD_LIBRARY_PATH=/netstore/src/perl-5.10.0 ./miniperl -Ilib configpm Segmentation Fault - core dumped make: *** [lib/Config.pod] Error 139

Has anyone else run into this problem before? More importantly, does anyone know a solution?


In reply to SEGVs building Perl 5.10 on Solaris 10? by Llew_Llaw_Gyffes

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.