[php-src] Issue #11810: compile version 7.x failed in ubuntu 22.04
| From: | Flbven | Date: | Fri, 28 Jul 2023 08:58:51 +0000 |
| Subject: | [php-src] Issue #11810: compile version 7.x failed in ubuntu 22.04 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245055@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11810
Author: Flbven
### Description
hello, hope someone can help me with this issue, i am compiling php-src on ubuntu using branch 7.x,
and i got this error when make:
/usr/bin/ld: Zend/.libs/zend_language_parser.o: in function `zend_yytnamerr':
/..../PHP/php-src/Zend/zend_language_parser.y:1303: undefined reference to `yystpcpy'
/usr/bin/ld: /..../PHP/php-src/Zend/zend_language_parser.y:1310: undefined reference to
`yystrlen'
/usr/bin/ld: /..../PHP/php-src/Zend/zend_language_parser.y:1331: undefined reference to
`yystpcpy'
/usr/bin/ld: /..../PHP/php-src/Zend/zend_language_parser.y:1338: undefined reference to
`yystrlen'
/usr/bin/ld: /..../PHP/php-src/Zend/zend_language_parser.y:1351: undefined reference to
`yystpcpy'
collect2: error: ld returned 1 exit status
make: *** [Makefile:268: sapi/cli/php] Error 1
after i look in zend_language_parser.y and search in project folder, i can't find defination of
yystrlen anywhere. it happens on php7.0, 7.2, 7.4, but it doesn't happen in master(8.x).
### PHP Version
PHP 7.4.0
### Operating System
Ubuntu 22.04