Bug #79967 [NEW]: "fcgi_request" makes building failed on freeBSD

From: Date: Thu, 13 Aug 2020 06:15:52 +0000
Subject: Bug #79967 [NEW]: "fcgi_request" makes building failed on freeBSD
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228558@lists.php.net to get a copy of this message
From:             tondemokun19 at gmail dot com
Operating system: FreeBSD 11
PHP version:      7.4.9
Package:          Compile Failure
Bug Type:         Bug
Bug description:"fcgi_request" makes building failed on freeBSD

Description:
------------
I am trying to build php 7.4.5 and 7.4.8 on freeBSD11 from source.

Both version 7.4.5 and 7.4.8, configure and make seemed to go through
well, but when configured on sub build directory (mkdir B200813 && cd
B200813 && ../configure), make command was failed with "fcgi_request"
error message like below:
----------------------------------

/bin/sh /src/self/php-7.4.5/B200813/libtool --silent --preserve-dup-deps
--mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/json/
-I/src/self/php-7.4.5/ext/json/ -DPHP_ATOM_INC
-I/src/self/php-7.4.5/B200813/include -I/src/self/php-7.4.5/B200813/main
-I/src/self/php-7.4.5 -I/src/self/php-7.4.5/B200813/ext/date/lib
-I/src/self/php-7.4.5/ext/date/lib -I/usr/local/include/libxml2
-I/usr/local/include -I/src/self/php-7.4.5/B200813/TSRM
-I/src/self/php-7.4.5/B200813/Zend -I/src/self/php-7.4.5/main
-I/src/self/php-7.4.5/Zend -I/src/self/php-7.4.5/TSRM
-I/src/self/php-7.4.5/B200813/    -I/usr/local/include -g -O2
-fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c
/src/self/php-7.4.5/ext/json/json_parser.tab.c -o
ext/json/json_parser.lo
--- sapi/cgi/cgi_main.lo ---
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:333:2: error: use of undeclared
identifier 'fcgi_request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
        ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:333:16: error: use of undeclared
identifier 'request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
                      ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:333:40: error: expected
expression
        fcgi_request *request = (fcgi_request*) SG(server_context);
                                              ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:333:27: error: use of undeclared
identifier 'fcgi_request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
                                 ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:337:13: warning: implicit
declaration of function 'fcgi_write' is invalid in C99
[-Wimplicit-function-declaration]
                int ret = fcgi_write(request, FCGI_STDOUT, ptr,
to_write);
                          ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:337:24: error: use of undeclared
identifier 'request'
                int ret = fcgi_write(request, FCGI_STDOUT, ptr,
to_write);
                                     ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:359:2: error: use of undeclared
identifier 'fcgi_request'
        fcgi_request *request = (fcgi_request*) server_context;
        ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:359:16: error: use of undeclared
identifier 'request'
        fcgi_request *request = (fcgi_request*) server_context;
                      ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:359:40: error: expected
expression
        fcgi_request *request = (fcgi_request*) server_context;
                                              ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:359:27: error: use of undeclared
identifier 'fcgi_request'
        fcgi_request *request = (fcgi_request*) server_context;
                                 ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:363:3: error: use of undeclared
identifier 'request'
                request && !fcgi_flush(request, 0)) {
                ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:363:15: warning: implicit
declaration of function 'fcgi_flush' is invalid in C99
[-Wimplicit-function-declaration]
                request && !fcgi_flush(request, 0)) {
                            ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:363:26: error: use of undeclared
identifier 'request'
                request && !fcgi_flush(request, 0)) {
                                       ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:509:2: error: use of undeclared
identifier 'fcgi_request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
        ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:509:16: error: use of undeclared
identifier 'request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
                      ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:509:40: error: expected
expression
        fcgi_request *request = (fcgi_request*) SG(server_context);
                                              ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:509:27: error: use of undeclared
identifier 'fcgi_request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
                                 ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:519:20: warning: implicit
declaration of function 'fcgi_read' is invalid in C99
[-Wimplicit-function-declaration]
                tmp_read_bytes = fcgi_read(request, buffer + read_bytes,
to_read);
                                 ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:519:30: error: use of undeclared
identifier 'request'
                tmp_read_bytes = fcgi_read(request, buffer + read_bytes,
to_read);
                                           ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:577:2: error: use of undeclared
identifier 'fcgi_request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
        ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:577:16: error: use of undeclared
identifier 'request'
        fcgi_request *request = (fcgi_request*) SG(server_context);
                      ^
/src/self/php-7.4.5/sapi/cgi/cgi_main.c:577:40: error: expected
expression
        fcgi_request *request = (fcgi_request*) SG(server_context);
                                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.
*** [sapi/cgi/cgi_main.lo] Error code 1

make: stopped in /src/self/php-7.4.5/B200813
1 error

make: stopped in /src/self/php-7.4.5/B200813
----------------------------------

How can I build it on the build directory?


-- 
Edit bug report at https://bugs.php.net/bug.php?id=79967&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79967&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79967&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79967&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79967&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79967&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79967&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79967&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79967&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79967&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79967&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79967&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79967&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79967&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79967&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79967&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79967&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79967&r=mysqlcfg


Thread (4 messages)

« previous php.bugs (#228558) next »