ID: 28193 Comment by: pds+php at alloy dot net Reported By: hakan at lisas dot de Status: Open Bug Type: Compile Failure Operating System: Solaris 9 PHP Version: 5.0.0RC2 Assigned To: wez 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-28 09:38:30] [EMAIL PROTECTED] Ah, I misread your comment. I'll look into fixing this as soon as I am able. If someone who actually has a Solaris 9 box wants to take a look, a patch would be welcome--it's almost certainly a trivial fix if you know what to define. ------------------------------------------------------------------------ [2004-04-28 00:12:29] hakan at lisas dot de with rev 1.20 of ext/standard/proc_open.c it builds just fine. rev 1.21 breaks the build like stated. ------------------------------------------------------------------------ [2004-04-28 00:03:24] [EMAIL PROTECTED] What breaks when building with rev 1.20 of that file? ------------------------------------------------------------------------ [2004-04-27 23:52:38] hakan at lisas dot de The actuall HEAD with ext/standard/proc_open.c 1.20 (not 1.21) does compile. I have no clue about the pty support on Solaris. Some things are defined in /usr/include/fcntl.h and http://gcc.gnu.org/ml/gcc-patches/2000-09/msg00578.html says: AC_DEFINE(_XOPEN_SOURCE, 1, [Always define this]) But I even don't know for what pty-support should be good for :) bye Hakan ------------------------------------------------------------------------ [2004-04-27 23:04:35] [EMAIL PROTECTED] As a workaround, reverse this patch: http://cvs.php.net/diff.php/php-src/ext/standard/proc_open.c?r1=1.20&r2=1.21&ty=u It would be great if you could do some digging to find out what magic defines are needed to get it to build under Solaris with Unix98 pty support; linux requires these: +#define _XOPEN_SOURCE +#define _BSD_SOURCE ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28193 -- Edit this bug report at http://bugs.php.net/?id=28193&edit=1
