PHP 4.0 Bug #8591: Build fails at main/main.c because XtOffset got defined to something bogus.
| From: | alex at linuxhacker dot org | Date: | Mon, 08 Jan 2001 10:41:49 +0000 |
| Subject: | PHP 4.0 Bug #8591: Build fails at main/main.c because XtOffset got defined to something bogus. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43343@lists.php.net to get a copy of this message | ||
From: alex@linuxhacker.org
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