Date: 04/17/00
- Next message: popelek <email protected>: "[PHP-DEV] PHP 4.0 Bug #4162: make line 39: Need an operator"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] POSIX Threads"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] [PATCH] compilation failure on Irix 6.2"
- Reply: Sascha Schumann: "Re: [PHP-DEV] [PATCH] compilation failure on Irix 6.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi there,
(I would have used the bug database facility, but I was unable to find a
way to attach a patch file cleanly. I apologise in advance if there is
such a method.)
PHP 3.0.15, and today's cvs tree, fails to compile on SGI Irix 6.2 (and
also 6.5) using the system's native compiler. The solution is trivial,
as you can tell from the attached patch, and I have confirmed that this
has the side effect of allowing PHP 3 to build on other systems such as
Unixware7.
The root of the problem is due to the malloc prototype not being
included in alloca.c, causing an error when the assumed 'int' return
value of malloc was assigned to a pointer type. Also the size_t type
wasn't being defined (hence the inclusion of stdio.h) so the compiler
failed at that point also.
Whilst looking at this, I noticed that stdlib.h didn't have a check in
configure.in, making the HAVE_STDLIB_H check in alloca.c a little
redundant (stdlib.h on Irix also includes malloc.h), so the patch
addresses this also.
BTW, there's a problem when building on Unixware 7 using APXS, where the
function lrand48 isn't resolved when Apache starts up. I've not been
able to figure out a clean solution to this, but my work around involves
editing the PHP 3 Makefile, and adding -lc to the linking parameters.
Running PHP 3 as a standard Apache module (--with-apache on the
./configure line) is fine. Maybe that will help others working on that
platform.
If you would like, I can also check up on PHP 4 for these two platforms.
Best regards,
Steve
-- Steve Robb steve <email protected> Software Engineer, C2Net Europe Ltd. http://www.int.c2.net/
- TEXT/PLAIN attachment: php3.patch
-- 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>
- Next message: popelek <email protected>: "[PHP-DEV] PHP 4.0 Bug #4162: make line 39: Need an operator"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] POSIX Threads"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] [PATCH] compilation failure on Irix 6.2"
- Reply: Sascha Schumann: "Re: [PHP-DEV] [PATCH] compilation failure on Irix 6.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

