php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65940 zend_dtrace.d failed to resolve INP_IPV4
Submitted: 2013-10-21 16:57 UTC Modified: 2014-12-30 10:42 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: devzone dot my at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.5.5 OS: FreeBSD 10.0-BETA1
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-10-21 16:57 UTC] devzone dot my at gmail dot com
Description:
------------
ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.0/

# make showconfig -C /usr/ports/lang/php55 | grep DTRACE
     DTRACE=on: Enable DTrace support

-----------

CFLAGS="-O2 -pipe -fno-strict-aliasing" dtrace -h -C -s /usr/ports/lang/php55/work/php-5.5.5/Zend/zend_dtrace.d -o Zend/zend_dtrace_gen.h.bak && sed -e 's,PHP_,DTRACE_,g' Zend/zend_dtrace_gen.h.bak > Zend/zend_dtrace_gen.h

dtrace: failed to compile script /usr/ports/lang/php55/work/php-5.5.5/Zend/zend_dtrace.d: "/usr/lib/dtrace/regs_x86.d", line 30: failed to resolve INP_IPV4: Unknown variable name

*** [Zend/zend_dtrace_gen.h] Error code 1

make[2]: stopped in /usr/ports/lang/php55/work/php-5.5.5
1 error


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-21 22:30 UTC] sixd@php.net
-Status: Open +Status: Feedback
 [2013-10-21 22:30 UTC] sixd@php.net
Some brainstorm thoughts:

- Does it work with older FreeBSD releases?

- Did http://git.php.net/?p=php-src.git;a=commit;h=3c5e22921202bf5451774b23e2a25fb73029fc68 affect anything?

- Do you need anything special for FreeBSD in the PHP_INIT_DTRACE macro in acinclude.m4?

- Check with PHP 5.5.1.  Some DTrace fixes have been merged since then, but they were not expected to impact FreeBSD.

I, personally, can only test DTrace on Solaris and Oracle Linux.
 [2013-10-22 04:43 UTC] devzone dot my at gmail dot com
-Status: Feedback +Status: Open
 [2013-10-22 04:43 UTC] devzone dot my at gmail dot com
Found problem, php incorrect dtrace unload error message

$  kldload dtraceall
$ echo"dtraceall_load=YES" >> /boot/loader.conf
 [2013-10-22 04:43 UTC] devzone dot my at gmail dot com
Found problem, php incorrect dtrace unload error message

$  kldload dtraceall
$ echo"dtraceall_load=YES" >> /boot/loader.conf
 [2013-10-22 21:34 UTC] sixd@php.net
-Status: Open +Status: Feedback
 [2013-10-22 21:34 UTC] sixd@php.net
Can you clarify what "php incorrect dtrace unload error message" means?

From Googling the rest of your text, I assume that you have fixed your problem by configuring BSD to allow DTracing???  Can you list the steps you needed to do, so the PHP DTrace documentation (http://www.php.net/manual/en/features.dtrace.dtrace.php) can be updated with basic FreeBSD configuration information?
 [2014-01-21 10:19 UTC] martynas at dulksna dot org
can confirm that "kldload dtraceall" or already loaded dtrace kernel modules fixes this issue. tried with php55(from ports) on 10.0-RELEASE FreeBSD.
without dtrace modules loaded compilation fails with message reported above.
 [2014-01-21 10:44 UTC] martynas at dulksna dot org
some more details/info

root@srv:/usr/ports/lang/php55 # kldstat
Id Refs Address            Size     Name
 1   10 0xffffffff80200000 166c0b8  kernel
 2    1 0xffffffff81a12000 1546d8   zfs.ko
 3    1 0xffffffff81b67000 3858     opensolaris.ko

root@srv:/usr/ports/lang/php55 # make
(...)
===>  Building for php55-5.5.7
CFLAGS="-O2 -pipe -fno-strict-aliasing -DZTS" dtrace -h -C -s /usr/ports/lang/php55/work/php-5.5.7/Zend/zend_dtrace.d -o Zend/zend_dtrace_gen.h.bak && sed -e 's,PHP_,DTRACE_,g' Zend/zend_dtrace_gen.h.bak > Zend/zend_dtrace_gen.h
dtrace: failed to compile script /usr/ports/lang/php55/work/php-5.5.7/Zend/zend_dtrace.d: "/usr/lib/dtrace/ip.d", line 30: failed to resolve INP_IPV4: Unknown variable name
*** Error code 1

root@srv:/usr/ports/lang/php55 # kldload dtraceall
root@srv:/usr/ports/lang/php55 # kldstat
Id Refs Address            Size     Name
 1   38 0xffffffff80200000 166c0b8  kernel
 2    1 0xffffffff81a12000 1546d8   zfs.ko
 3   14 0xffffffff81b67000 3858     opensolaris.ko
 4    1 0xffffffff81b6b000 8b8      dtraceall.ko
 5    3 0xffffffff81b6c000 1d95     cyclic.ko
 6   11 0xffffffff81b6e000 35df7    dtrace.ko
 7    1 0xffffffff81ba4000 f26      dtio.ko
 8    1 0xffffffff81ba5000 44ac     dtmalloc.ko
 9    1 0xffffffff81baa000 225d     dtnfscl.ko
10    1 0xffffffff81bad000 624c     fbt.ko
11    1 0xffffffff81bb4000 a3f1     fasttrap.ko
12    1 0xffffffff81bbf000 4829     lockstat.ko
13    1 0xffffffff81bc4000 4af2     sdt.ko
14    1 0xffffffff81bc9000 d4c4     systrace.ko
15    1 0xffffffff81bd7000 d135     systrace_freebsd32.ko
16    1 0xffffffff81be5000 4b4e     profile.ko

root@srv:/usr/ports/lang/php55 # make
(...)
Build complete.

root@srv:/usr/ports/lang/php55 # make test
(...)
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #30638 (localeconv returns wrong LC_NUMERIC settings) (ok to fail on MacOS X) [tests/lang/bug30638.phpt]
Bug #54268 (Double free when destroy_zend_class fails) [Zend/tests/bug54268.phpt]
Userstream unlink, rename, mkdir, rmdir, and url_stat. [ext/standard/tests/file/userwrapper.phpt]
Test function proc_nice() by substituting argument 1 with int values. [ext/standard/tests/general_functions/proc_nice_variation5.phpt]
Test setlocale() function : usage variations - Setting all available locales in the platform [ext/standard/tests/strings/setlocale_variation2.phpt]
Test strptime() function : basic functionality [ext/standard/tests/time/strptime_basic.phpt]
Bug #61546 (functions related to current script failed when chdir() in cli sapi) [sapi/cli/tests/bug61546.phpt]
=====================================================================
 [2014-08-04 00:14 UTC] jsjohnst@php.net
This is still an issue with PHP 5.5.14 on FreeBSD 10.0-RELEASE. The previously mentioned "fix" is correct, you need to make sure the dtrace kernel module is loaded before trying to compile PHP, otherwise you will get the error previously mentioned about INP_IPV4.

I'll add a note in the docs pages about this for FreeBSD and see if I can get the FreeBSD port maintainer to fix this more permanently.
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Wed May 27 13:03:42 2015 UTC