php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63686 Build with --enable-dtrace fails
Submitted: 2012-12-04 14:34 UTC Modified: 2012-12-04 20:04 UTC
From: dsp@php.net Assigned: dmitry (profile)
Status: Closed Package: *General Issues
PHP Version: 5.5Git-2012-12-04 (Git) OS: Solaris
Private report: No CVE-ID: None
 [2012-12-04 14:34 UTC] dsp@php.net
Description:
------------
building with --enable-dtrace results in 

Zend/zend.c:686:20: error: ‘dtrace_execute_ex’ undeclared (first use in this 
function)

which was introduced in

commit 70f83f35d089d0cafae12ae231a38541f5c8e41c
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Nov 30 13:39:23 2012 +0400


Test script:
---------------
./buildconf
./configure --enable-dtrace
make

Expected result:
----------------
build complete

Actual result:
--------------
/home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c: In function 
‘dtrace_get_executed_filename’:
/home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c:30:3: warning: return discards 
‘const’ qualifier from pointer target type [enabled by default]
/home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c:32:3: warning: return discards 
‘const’ qualifier from pointer target type [enabled by default]
/home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c: In function ‘dtrace_execute’:
/home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c:62:3: warning: passing argument 1 
of ‘get_active_class_name’ from incompatible pointer type [enabled by default]
In file included from /home/dsp/dev/php/src/5.5/Zend/zend_API.h:30:0,
                 from /home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c:22:
/home/dsp/dev/php/src/5.5/Zend/zend_execute.h:348:53: note: expected ‘const char 
**’ but argument is of type ‘char **’
/home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c:62:13: warning: assignment discards 
‘const’ qualifier from pointer target type [enabled by default]
/home/dsp/dev/php/src/5.5/Zend/zend_dtrace.c:63:12: warning: assignment discards 
‘const’ qualifier from pointer target type [enabled by default]
/home/dsp/dev/php/src/5.5/Zend/zend.c: In function ‘zend_startup’:
/home/dsp/dev/php/src/5.5/Zend/zend.c:686:20: error: ‘dtrace_execute_ex’ 
undeclared (first use in this function)
/home/dsp/dev/php/src/5.5/Zend/zend.c:686:20: note: each undeclared identifier 
is reported only once for each function it appears in
make: *** [Zend/zend.lo] Error 1
make: *** Waiting for unfinished jobs....


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-04 14:35 UTC] dsp@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2012-12-04 20:04 UTC] dsp@php.net
-Status: Assigned +Status: Closed
 [2012-12-04 20:04 UTC] dsp@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 11:01:33 2025 UTC