building php-4.0.4pl1 on Solaris
| From: | (James R Grinter) | Date: | Thu, 15 Feb 2001 13:35:31 +0000 |
| Subject: | building php-4.0.4pl1 on Solaris | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2072@lists.php.net to get a copy of this message | ||
I've experienced a number of problems, and have a couple of points
to raise:
1. Trying to build with --enable-sockets
(Is this is even a good idea?)
Solaris' msghdr structures don't normally contain msg_control,
msg_controllen and msg_flags. This is a similar situation to that
noted in ext/sockets/sockets.c about HP-UX, but requires defining
_XPG4_2 for sys/socket.h.
Unfortunately that changes many of the normal sockets calls (bind ->
__xnet_bind, connect -> __xnet_connect) with a #pragma
redefine_extname - meaning that many of the routines defined with
PHP_FE() and PHP_FUNCTION() will end up with different names. I
suspect this will affect their availability in php programs...
Can anyone clarify that?
Also, the use of hstrerror() - this function isn't "exported" from
Solaris' libresolv.so, even though h_errlist[] is. I hacked in
an equivalent function from BIND's code, but this isn't a great
solution.
2. --with-mod-dav
I've read in the archives of this list that the code doesn't
currently work. It might be an idea to disable it in configure.in so
that someone can't use it. (I think the reason I had it enabled
initially was that "Apache Toolbox" tried to enable it.)
James.