[dtrace-discuss] Problems compiling PHP Dtrace extension

Wez Furlong
Wed, 26 Oct 2005 20:34:14 -0000

I''ve had some correspondence with Magnus on this issue; we''re
working to
resolve the problem.  He tells me that the problem he wanted to trace in
the first place has now been fixed, so this isn''t such a critical issue
for him now.

--Wez.

Magnus Forsberg wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org


--
Wez Furlong
Senior Systems Engineer
OmniTI. Inc,
Tel: 410 872 4910 x 211