Bug #65940 [Com]: zend_dtrace.d failed to resolve INP_IPV4

From: Date: Tue, 21 Jan 2014 10:44:03 +0000
Subject: Bug #65940 [Com]: zend_dtrace.d failed to resolve INP_IPV4
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183933@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65940&edit=1

 ID:                 65940
 Comment by:         martynas at dulksna dot org
 Reported by:        devzone dot my at gmail dot com
 Summary:            zend_dtrace.d failed to resolve INP_IPV4
 Status:             Feedback
 Type:               Bug
 Package:            *General Issues
 Operating System:   FreeBSD 10.0-BETA1
 PHP Version:        5.5.5
 Block user comment: N
 Private report:     N

 New Comment:

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]
=====================================================================


Previous Comments:
------------------------------------------------------------------------
[2014-01-21 10:19:19] 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.

------------------------------------------------------------------------
[2013-10-22 21:34:01] 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?

------------------------------------------------------------------------
[2013-10-22 04:43:04] 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:04] 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-21 22:30:40] 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.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=65940


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65940&edit=1


Thread (10 messages)

« previous php.bugs (#183933) next »