[dtrace-discuss] Problems compiling PHP Dtrace extension

Magnus Forsberg
Fri, 21 Oct 2005 07:00:58 -0000

The following problem isn''t strictly Dtrace related, but hopefully
someone can help.

I''ve been trying to get the Dtrace extension for PHP working on Solaris
x86 (Solaris Express b20, with Dtrace from b24).

For you who haven''t tried it, go see:
http://blogs.sun.com/bmc?entry=dtrace_and_php
and:
http://netevil.org/node.php?nid=413

It would be really nice to get this thing working, having some big problems with
a segfaulting web application, and I really don''t know what''s
causing it.

Unfortunately I can''t get this thing to work. I''ve built
Apache/PHP with gcc
3.4.3, included in Solaris, but I also get the same errors with Sun Studio 10
compiled binaries.

This is the error msg when starting Apache:
PHP Warning:  PHP Startup: Unable to load dynamic library
''/opt/php-200510171230-gcc/lib/php/extensions/no-debug-non-zts-20050922/dtrace.so''
- ld.so.1: httpd: fatal: relocation error: file
/opt/php-200510171230-gcc/lib/php/extensions/no-debug-non-zts-20050922/dtrace.so:
symbol zend_execute: referenced symbol not found in Unknown on line 0

Note : I''ve installed the latest DTrace provider and client, from the
latest Solaris Express community release (b24) for x86.

Build system:
Solaris Express build 20, on x86 Sun JDS CBE 1.2 tools (automake, autoconf,
libtool etc), GCC 3.4.3 Apache
2.0.54, Latest PHP dev sources.

I''ve attached a build log, hoping you can help.
This message posted from opensolaris.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: php-dtrace-1.0.3-build.log
Type: application/octet-stream
Size: 19302 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20051021/7d9ac4d9/attachment.obj>