perl from ports failed compiling

Matthew Seaman matthew at
Tue Jun 13 14:17:23 UTC 2017

On 2017/06/13 14:31, Friedrich Locke wrote:
> I am trying to get perl installed, but all i see on the terminal is:
> cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
> -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2
> -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat
> -Wwrite-strings -Wthread-safety -O2 -pipe -fstack-protector
> -fno-strict-aliasing    -DVERSION=\"1.38\"  -DXS_VERSION=\"1.38\" -DPIC
> -fPIC "-I../.."  -DLIBC="" DynaLoader.c
> rm -rf ../../DynaLoader.o
> cp DynaLoader.o ../../DynaLoader.o
> /usr/sbin/dtrace -G -s perldtrace.d -o dtrace_main.o perlmain.o
> dtrace: failed to link script perldtrace.d: No probe sites found for
> declared provider
> *** [dtrace_main.o] Error code 1
> make[2]: stopped in /usr/ports/lang/perl5.24/work/perl-5.24.1
> 1 error
> make[2]: stopped in /usr/ports/lang/perl5.24/work/perl-5.24.1
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
> Stop.
> make[1]: stopped in /usr/ports/lang/perl5.24
> *** Error code 1
> Stop.
> make: stopped in /usr/ports/lang/perl5.24
> My system version is:
> etosha# uname -a
> FreeBSD etosha 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22
> 06:12:04 UTC 2017
> root at  amd64

So, you've clearly enabled the DTRACE option, which should work as
you're compiling on a supported architecture (amd64) and OS version
(11.0).  However, dtrace capabilities can be a tricky thing to compile
in properly.

Have you done a 'make clean' since enabling the DTRACE option?  You need
to recompile everything as one of the effects of turning on DTRACE is to
enable some conditionally included blocks of code.

Are you using poudriere or similar, that compiles software in a separate
jail?  If so, and the jail doesn't contain a copy of the kernel, then
dtrace will likely fail.  I believe you should be able to get round this
by adding -xnolibs to the dtrace command line -- unfortunately it seems
this version of perl doesn't have an equivalent to DTRACEFLAGS that I
can see, so you might have to resort to hacking on the Makefiles in the
perl sources.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-questions mailing list