Bug 262961 - lang/php80: build fails with DTRACE enabled
Summary: lang/php80: build fails with DTRACE enabled
Status: Closed DUPLICATE of bug 232675
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-31 18:25 UTC by Marek Zarychta
Modified: 2022-03-31 20:08 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (tz)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Zarychta 2022-03-31 18:25:58 UTC
Since a few weeks it's no longer possible to build PHP with DTRACE support on stable/13.

/bin/sh /usr/ports/lang/php80/work/php-8.0.17/libtool --silent --preserve-dup-deps --mode=compile cc -Imain/ -I/usr/ports/lang/php80/work/php-8.0.17/main/ -I/usr/ports/lang/php80/work/php-8.0.17/include -I/usr/ports/lang/php80/work/php-8.0.17/main -I/usr/ports/lang/php80/work/php-8.0.17 -I/usr/ports/lang/php80/work/php-8.0.17/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/ports/lang/php80/work/php-8.0.17/TSRM -I/usr/ports/lang/php80/work/php-8.0.17/Zend  -I/usr/local/include  -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -O2 -pipe -fno-strict-aliasing -march=nocona -fstack-protector-strong -fvisibility=hidden -DZEND_SIGNALS   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/ports/lang/php80/work/php-8.0.17/main/spprintf.c -o main/spprintf.lo
--- Zend/zend_dtrace_gen.h ---
dtrace: failed to compile script /usr/ports/lang/php80/work/php-8.0.17/Zend/zend_dtrace.d: "/usr/lib/dtrace/psinfo.d", line 1: failed to copy type of 'pr_uid': Type information is in parent and unavailable
--- main/fopen_wrappers.lo ---
/bin/sh /usr/ports/lang/php80/work/php-8.0.17/libtool --silent --preserve-dup-deps --mode=compile cc -Imain/ -I/usr/ports/lang/php80/work/php-8.0.17/main/ -I/usr/ports/lang/php80/work/php-8.0.17/include -I/usr/ports/lang/php80/work/php-8.0.17/main -I/usr/ports/lang/php80/work/php-8.0.17 -I/usr/ports/lang/php80/work/php-8.0.17/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/ports/lang/php80/work/php-8.0.17/TSRM -I/usr/ports/lang/php80/work/php-8.0.17/Zend  -I/usr/local/include  -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -O2 -pipe -fno-strict-aliasing -march=nocona -fstack-protector-strong -fvisibility=hidden -DZEND_SIGNALS   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/ports/lang/php80/work/php-8.0.17/main/fopen_wrappers.c -o main/fopen_wrappers.lo
--- Zend/zend_dtrace_gen.h ---
*** [Zend/zend_dtrace_gen.h] Error code 1

make[2]: stopped in /usr/ports/lang/php80/work/php-8.0.17
1 error
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-03-31 18:33:44 UTC
What's the ARCH?
Comment 2 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-03-31 18:42:56 UTC
From what it looks like you maybe your kernel is not properly compiled with DTRACE support or the the userland is not properly installed.
Comment 3 Marek Zarychta 2022-03-31 19:04:28 UTC
(In reply to Muhammad Moinur Rahman from comment #1)
It's on amd64.(In reply to Muhammad Moinur Rahman from comment #2)

You are about right:

dtrace: invalid probe specifier syscall:::entry { @[pid, execname] = count(); }: "/usr/lib/dtrace/psinfo.d", line 1: failed to copy type of 'pr_uid': Type information is in parent and unavailable
Comment 4 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-03-31 19:10:14 UTC
(In reply to Marek Zarychta from comment #3)
Absolutely. You found it. :D

It's not always the last line that mentions/contains the error. :)

There are some archs in which the php DTRACE does not work properly; but amd64 is not one of them. You can check the Makefile itself. Happy hacking.
Comment 5 Marek Zarychta 2022-03-31 20:08:05 UTC

*** This bug has been marked as a duplicate of bug 232675 ***