#28193 [Opn->Bgs]: Compile breaks with error: storage size `obj' isn't known

From: Date: Thu, 29 Apr 2004 14:20:13 +0000
Subject: #28193 [Opn->Bgs]: Compile breaks with error: storage size `obj' isn't known
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59002@lists.php.net to get a copy of this message
ID: 28193 Updated by: wez@php.net Reported By: hakan at lisas dot de -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Solaris 9 PHP Version: 5.0.0RC2 Assigned To: wez New Comment: This is a duplicate of Bug #28157; please look there instead. (Not yet resolved, but will be soon). Previous Comments: ------------------------------------------------------------------------ [2004-04-29 03:32:01] djpenton at cs dot mu dot oz dot au For some reason these: #include <fcntl.h> #include <sys/termios.h> have to be before these: #define _XOPEN_SOURCE and #define _BSD_SOURCE gets around this compile problem: A quick skim of the source of fcntl & termios show that they check for XOPEN... Haven't got time to see what they do with it. Cheers, Dave ------------------------------------------------------------------------ [2004-04-28 22:54:30] 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-28 09:38:30] wez@php.net 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] wez@php.net What breaks when building with rev 1.20 of that file? ------------------------------------------------------------------------ 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

« previous php.bugs (#59002) next »