ID:               28157
 Comment by:       mose at netvision dot net dot il
 Reported By:      ralf at kuerbis dot org
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: Solaris 9
 PHP Version:      5CVS-2004-04-26 (dev)
 New Comment:

The compliation error comes from the lack of these lines:
/*
 * shorthand type definitions for unsigned storage classes
 */
typedef uchar_t         uchar;
typedef ushort_t        ushort;
typedef uint_t          uint;
typedef ulong_t         ulong;

in sys/types


For me (OSF4.0f) it's under 'ifndef _XOPEN_SOURCE_EXTENDED' control.


Previous Comments:
------------------------------------------------------------------------

[2004-04-29 12:30:01] ralf at kuerbis dot org

If you need my help in testing on a Solaris 9 machine (Ultra 1 at home
and some Enterprise 420R/220R at business), just drop me a mail. 

Best regards,
   Ralf

------------------------------------------------------------------------

[2004-04-29 12:16:28] [EMAIL PROTECTED]

This probably isn't portable to eg: Linux, so we still need to find a
better fix; however, I no longer have access to a Solaris 9 machine, so
this could prove difficult.

------------------------------------------------------------------------

[2004-04-29 11:05:26] ralf at kuerbis dot org

It works - thank you!

Regards,
   Ralf

------------------------------------------------------------------------

[2004-04-28 22:52:23] pds+php at alloy dot net

In ext/standard/proc_open.c, adding the following lines before #define
_XOPEN_SOURCE and #define _BSD_SOURCE gets around this compile
problem:

#include <fcntl.h>
#include <sys/termios.h>

------------------------------------------------------------------------

[2004-04-26 15:42:14] ralf at kuerbis dot org

Description:
------------
Hi!

Trying to compile the PHP5 RC2 version on Solaris 9, the 
compile run breaks with following error:

[...]
/opt/sunsite/compile/production/php5-200404261230/ext/standard/proc_open.c:876:
error: dereferencing pointer to incomplete type
/opt/sunsite/compile/production/php5-200404261230/ext/standard/proc_open.c:898:
error: dereferencing pointer to incomplete type
[...many, many more...]

/opt/sunsite/compile/production/php5-200404261230/ext/standard/proc_open.c:898:
error: dereferencing pointer to incomplete type
/opt/sunsite/compile/production/php5-200404261230/ext/standard/proc_open.c:
At top level:
/opt/sunsite/compile/production/php5-200404261230/Zend/zend.h:283:
error: storage size of `obj' isn't known
make: *** [ext/standard/proc_open.lo] Error 1

gcc --version
gcc (GCC) 3.3.2
(from sunfreeware.com)

uname -a
SunOS groundzero 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-60

Here the configure options (copied from config.nice...):

CFLAGS='-I/usr/include' \
LDFLAGS='-lstdc++' \
CC='gcc' \
'./configure' \
'--prefix=/opt/www' \
'--with-apxs=/opt/www/bin/apxs' \
'--with-mysql=/opt/mysql' \
'--with-sockets' \
'--enable-memory-limit' \
'--enable-trans-sid' \
'--sysconfdir=/opt/www/conf' \
'--with-config-file-path=/opt/www/conf' \
'--with-mcrypt=/usr/local' \
'--with-tsrm-pthreads' \
'--with-gnu-ld' \
'--with-dom=/usr/local' \
'--with-dom-xslt=/usr/local' \
'--with-dom-exslt' \
'--with-libxml-dir=/usr/local' \
'--enable-xslt' \
'--with-gd' \
'--with-zlib=/usr/local' \
'--with-xsl=/usr/local' \

As you can see above, this happens with the newest CVS and the RC2
version, but not with RC1. The RC1 runs perfectly on the same machine
since one week or so.

If you need further info or some testing, please tell me. 

Best regards,
   Ralf




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28157&edit=1

Reply via email to