How to build perl with pkgsrc on solaris
With the default options (PKG_OPTIONS.perl = 64bitauto dtrace threads) i get a dtrace error
LD_LIBRARY_PATH=/usr/pkgsrc/lang/perl5/work/perl\-5.18.1 cc -pthread -L/usr/lib -Wl,-R/usr/lib -Wl,-R/opt/pkg/lib -L/usr/ccs/lib -L/opt/solstudio12.2/prod/lib -L/lib -L/opt/local/lib -o miniperl perlmini.o opmini.o miniperlmain.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o -lm -ldl -lsocket -lnsl -lpthread -lrt
Undefined first referenced
symbol in file
__dtrace_perl___loaded__file pp_ctl.o
__dtraceenabled_perl___op__entry dump.o
__dtrace_perl___sub__entry pp_hot.o
__dtraceenabled_perl___phase__change perlmini.o
__dtraceenabled_perl___loaded__file pp_ctl.o
__dtrace_perl___phase__change perlmini.o
__dtraceenabled_perl___sub__return pp_hot.o
__dtrace_perl___op__entry dump.o
__dtraceenabled_perl___loading__file pp_ctl.o
__dtraceenabled_perl___sub__entry pp_hot.o
__dtrace_perl___sub__return pp_hot.o
__dtrace_perl___loading__file pp_ctl.o
ld: fatal: symbol referencing errors. No output written to miniperl
You have to disable dtrace for perl
PKG_OPTIONS.perl = 64bitauto -dtrace threads