Bug #67212 [Opn->Asn]: phpdb uses non-standard TIOCGWINSZ
| From: | johannes@php.net | Date: | Tue, 06 May 2014 07:56:11 +0000 |
| Subject: | Bug #67212 [Opn->Asn]: phpdb uses non-standard TIOCGWINSZ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185652@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67212&edit=1
ID: 67212
Updated by: johannes@php.net
Reported by: johannes@php.net
Summary: phpdb uses non-standard TIOCGWINSZ
-Status: Open
+Status: Assigned
Type: Bug
Package: Compile Failure
Operating System: Solaris
PHP Version: 5.6Git-2014-05-06 (Git)
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2014-05-06 07:56:00] johannes@php.net
Description:
------------
phpdbg is checking for ioctl presence, but not for TIOCGWINSZ availability. i.e. on Solaris the
build fails.
Also if ioctl isn't found a terminal width of 100 is assumed, most systems use 80 characters by
default
Test script:
---------------
./configure --disable-all && make
Expected result:
----------------
Successful build
Actual result:
--------------
/usr/gcc/4.5/bin/gcc -D_GNU_SOURCE sapi/phpdbg/phpdbg_utils.c -o sapi/phpdbg/phpdbg_utils.o
sapi/phpdbg/phpdbg_utils.c: In function âphpdbg_get_terminal_widthâ:
sapi/phpdbg/phpdbg_utils.c:441:17: error: storage size of âwâ isnât known
sapi/phpdbg/phpdbg_utils.c:443:34: error: âTIOCGWINSZâ undeclared (first use in this
function)
sapi/phpdbg/phpdbg_utils.c:443:34: note: each undeclared identifier is reported only once for each
function it appears in
sapi/phpdbg/phpdbg_utils.c:441:17: warning: unused variable âwâ
make: *** [sapi/phpdbg/phpdbg_utils.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67212&edit=1