[PHP-DEV] PHP 4.0 Bug #8591: Build fails at main/main.c because XtOffset got defined to something bogus. From: alex <email protected>
Date: 01/08/01

From: alex <email protected>
Operating system: ARM/Linux (Titan VI)
PHP version: 4.0.4
PHP Bug Type: Compile Failure
Bug description: Build fails at main/main.c because XtOffset got defined to something bogus.

I believe the problem is that __arm is defined but LINUX is not, so main/php.h #defines XtOffset(p_type,field) to _Offsetof(p_type,field), and _Offsetof() is not defined on Linux, which causes lots of parse errors and a build failure. Simply commenting out the offending part of php.h allows the build to succeed, but this probably isn't the correct fix.

-- 
Edit Bug report at: http://bugs.php.net/?id=8591&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>