RE: [PHP-DEV] compile issues on Solaris
| From: | Wez Furlong | Date: | Fri, 07 May 2004 20:44:25 +0000 |
| Subject: | RE: [PHP-DEV] compile issues on Solaris | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9714@lists.php.net to get a copy of this message | ||
> Oki, second attempt. Perhaps att better solution:
>
> #define _XOPEN_SOURCE
> #define _BSD_SOURCE
>
> #define __EXTENSIONS__
> #include <sys/types.h>
>
> #include "php.h"
> #include <stdio.h>
> #include <ctype.h>
> [...]
>
> compiles on both Solaris and Linux. (at least when I try it
> at home) :)
> I have only tried it on Solaris 8 and 9 since I don't have
> access to any
> other versions.
Great - that "looks" right. Thanks :)
I think that we just need to solve this problem for OpenBSD too (iirc).
I don't have any OpenBSD boxen, so it would be great if someone lurking
here could test/investigate this too.
> I have also found some problems with iconv on Solaris (and it
> fails make
> test as well), will try to track it down and find the problem
> during the
> weekend.
I think the best results for the iconv extension can be obtained using
the GNU libiconv implementation, but I'm no expert on this.
--Wez.