Bug #65882 [NEW]: PHP fails to build with dtrace
| From: | toyclub at sina dot com | Date: | Fri, 11 Oct 2013 09:50:34 +0000 |
| Subject: | Bug #65882 [NEW]: PHP fails to build with dtrace | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-182127@lists.php.net to get a copy of this message | ||
From: toyclub at sina dot com
Operating system: CentOS 6.4
PHP version: 5.5.4
Package: Compile Failure
Bug Type: Bug
Bug description:PHP fails to build with dtrace
Description:
------------
$ uname -a
Linux pyw.work 2.6.32-358.114.1.openstack.el6.gre.2.x86_64 #1 SMP Thu
Aug 8 12:47:22 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
yum install systemtap kernel-devel yum-utils
sudo yum install -y systemtap-sdt-devel
$ ls /usr/include/sys/sdt.h
/usr/include/sys/sdt.h
$ sudo stap -ve 'probe begin { log("hello world") exit() }'
Pass 1: parsed user script and 92 library script(s) using
197668virt/26264res/3080shr/23600data kb, in 150usr/20sys/311real ms.
Pass 2: analyzed script: 1 probe(s), 2 function(s), 0 embed(s), 0
global(s) using 198196virt/27024res/3284shr/24128data kb, in
10usr/0sys/26real ms.
Pass 3: using cached
/root/.systemtap/cache/d8/stap_d889685f9061e890b0abb074f010ee24_1006.c
Pass 4: using cached
/root/.systemtap/cache/d8/stap_d889685f9061e890b0abb074f010ee24_1006.ko
Pass 5: starting run.
hello world
Pass 5: run completed in 10usr/30sys/393real ms.
git clone https://github.com/php/php-src.git
cd php-src
./buildconf --force
./configure --prefix=/usr/local/php554 --enable-debug --disable-all
--enable-dtrace
make
(...some output...)
main/main.o: In function `php_request_startup':
/tmp/php-src/main/main.c:1533: undefined reference to
`DTRACE_REQUEST_STARTUP'
main/main.o: In function `php_request_shutdown':
/tmp/php-src/main/main.c:1843: undefined reference to
`DTRACE_REQUEST_SHUTDOWN'
Zend/zend_dtrace.o: In function `dtrace_compile_file':
/tmp/php-src/Zend/zend_dtrace.c:39: undefined reference to
`DTRACE_COMPILE_FILE_ENTRY'
/tmp/php-src/Zend/zend_dtrace.c:41: undefined reference to
`DTRACE_COMPILE_FILE_RETURN'
Zend/zend_dtrace.o: In function `dtrace_execute_ex':
/tmp/php-src/Zend/zend_dtrace.c:54: undefined reference to
`DTRACE_EXECUTE_ENTRY_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:55: undefined reference to
`DTRACE_EXECUTE_RETURN_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:55: undefined reference to
`DTRACE_FUNCTION_ENTRY_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:55: undefined reference to
`DTRACE_FUNCTION_RETURN_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:60: undefined reference to
`DTRACE_FUNCTION_ENTRY_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:60: undefined reference to
`DTRACE_FUNCTION_RETURN_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:65: undefined reference to
`DTRACE_EXECUTE_ENTRY_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:66: undefined reference to
`DTRACE_EXECUTE_ENTRY'
/tmp/php-src/Zend/zend_dtrace.c:69: undefined reference to
`DTRACE_FUNCTION_ENTRY_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:70: undefined reference to
`DTRACE_FUNCTION_ENTRY'
/tmp/php-src/Zend/zend_dtrace.c:75: undefined reference to
`DTRACE_FUNCTION_RETURN_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:76: undefined reference to
`DTRACE_FUNCTION_RETURN'
/tmp/php-src/Zend/zend_dtrace.c:79: undefined reference to
`DTRACE_EXECUTE_RETURN_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:80: undefined reference to
`DTRACE_EXECUTE_RETURN'
Zend/zend_dtrace.o: In function `dtrace_execute_internal':
/tmp/php-src/Zend/zend_dtrace.c:88: undefined reference to
`DTRACE_EXECUTE_ENTRY_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:88: undefined reference to
`DTRACE_EXECUTE_RETURN_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:93: undefined reference to
`DTRACE_EXECUTE_ENTRY_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:94: undefined reference to
`DTRACE_EXECUTE_ENTRY'
/tmp/php-src/Zend/zend_dtrace.c:99: undefined reference to
`DTRACE_EXECUTE_RETURN_ENABLED'
/tmp/php-src/Zend/zend_dtrace.c:100: undefined reference to
`DTRACE_EXECUTE_RETURN'
Zend/zend.o: In function `zend_error':
/tmp/php-src/Zend/zend.c:1096: undefined reference to
`DTRACE_ERROR_ENABLED'
/tmp/php-src/Zend/zend.c:1100: undefined reference to `DTRACE_ERROR'
Zend/zend_exceptions.o: In function `zend_throw_exception_internal':
/tmp/php-src/Zend/zend_exceptions.c:87: undefined reference to
`DTRACE_EXCEPTION_THROWN_ENABLED'
/tmp/php-src/Zend/zend_exceptions.c:93: undefined reference to
`DTRACE_EXCEPTION_THROWN'
/tmp/php-src/Zend/zend_exceptions.c:95: undefined reference to
`DTRACE_EXCEPTION_THROWN'
Zend/zend_execute.o: In function `ZEND_CATCH_SPEC_CONST_CV_HANDLER':
/tmp/php-src/Zend/zend_vm_execute.h:7145: undefined reference to
`DTRACE_EXCEPTION_CAUGHT_ENABLED'
/tmp/php-src/Zend/zend_vm_execute.h:7146: undefined reference to
`DTRACE_EXCEPTION_CAUGHT'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] error 1
I don't known why I got the 'undefined reference' error.
--
Edit bug report at https://bugs.php.net/bug.php?id=65882&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65882&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=65882&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65882&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65882&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65882&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65882&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65882&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65882&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65882&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65882&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65882&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65882&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65882&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65882&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65882&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65882&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65882&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65882&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65882&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65882&r=mysqlcfg