Anyone can comment on a bug. Have a simpler test case? Does it
work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please
!

Your email address:MUST BE VALID

Solve the problem:33 - 22 = ?

Subscribe to this entry?

[2009-03-23 16:22 UTC] russ at last dot fm

Description:
------------
The xhprof.so library will build on my system (Debian Lenny), however it will not load due to an unresolved symbol CPU_ZERO.
This is due to the incorrect use of __USE_GNU, which subsequently gets undefined by /usr/local/features.h. The correct define to use is _GNU_SOURCE, which causes __USE_GNU to be defined within features.h.
This define must also happen before php.h is included, as php.h indirectly includes sched.h on my system.
Reproduce code:
---------------
A patch to fix this problem can be found here:
http://playground.audioscrobbler.com/russ/xhprof_gnu.patch.txt
Actual result:
--------------
/usr/sbin/apache2: symbol lookup error: /usr/local/lib/php/extensions/no-debug-zts-20060613/xhprof.so: undefined symbol: CPU_ZERO

This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.
In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.
applied Russ's patch to resolve problems building on debian linux.