The module would compile fine but when the PHP CLI or SAPI interface would load the extension a SIGBUS would ensue. This always occurred during loading of the xdebug.collect_params ini directive.
In examining the source code it was determined that the defined STD_PHP_INI_ENTRY for xdebug.collect_params uses OnUpdateLong as defined in xdebug.c:268 but the ZEND_BEGIN_MODULE_GLOBALS(xdebug) data structure defines collect_params as type zend_bool. This would cause the SPARC CPU to register a memory access issue.
A patch to fix the problem:
--- ../xdebug-2.0.0.orig/php_xdebug.h 2007-07-18 13:33:52.000000000 -0400
+++ php_xdebug.h 2007-07-27 11:21:40.000000000 -0400
@@ -122,7 +122,7 @@
long max_nesting_level;
zend_bool default_enable;
zend_bool collect_includes;
- zend_bool collect_params;
+ long collect_params;
zend_bool collect_return;
zend_bool collect_vars;
zend_bool extended_info;
