ID: 28157 Comment by: pds+php at alloy dot net 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:
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> Previous Comments: ------------------------------------------------------------------------ [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