compiling php 7.4.8 on debian linux

[email protected] (Yassine Chaouche)
Newsgroups php.install
Message-ID <[email protected]>
Hello list,
First post here.

I need php 7.4.8 on this debian bookworm box.
After configure and a few hit and miss,
I am now faced with this error about TRUE and FALSE not being defined.



--------------------------------------------------------------------------------

root@cloud-prep[10.10.10.82/24] 15:42:17 ~/DOWNLOADS/php-7.4.8 # make
/bin/bash /root/DOWNLOADS/php-7.4.8/libtool --silent --preserve-dup-deps --mode=compile cc  -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/intl/ -I/root/DOWNLOADS/php-7.4.8/ext/intl/ -DPHP_ATOM_INC -I/root/DOWNLOADS/php-7.4.8/include -I/root/DOWNLOADS/php-7.4.8/main -I/root/DOWNLOADS/php-7.4.8 -I/root/DOWNLOADS/php-7.4.8/ext/date/lib -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -I/usr/include/libpng16 -I/usr/include/c-client -I/root/DOWNLOADS/php-7.4.8/ext/mbstring/libmbfl -I/root/DOWNLOADS/php-7.4.8/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/root/DOWNLOADS/php-7.4.8/TSRM -I/root/DOWNLOADS/php-7.4.8/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /root/DOWNLOADS/php-7.4.8/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo
/root/DOWNLOADS/php-7.4.8/ext/intl/collator/collator_sort.c: In function ‘zif_collator_sort’:
/root/DOWNLOADS/php-7.4.8/ext/intl/collator/collator_sort.c:349:33: error: ‘TRUE’ undeclared (first use in this function)
   349 |         collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
       |                                 ^~~~
/root/DOWNLOADS/php-7.4.8/ext/intl/collator/collator_sort.c:349:33: note: each undeclared identifier is reported only once for each function it appears in
/root/DOWNLOADS/php-7.4.8/ext/intl/collator/collator_sort.c: In function ‘zif_collator_asort’:
/root/DOWNLOADS/php-7.4.8/ext/intl/collator/collator_sort.c:543:33: error: ‘FALSE’ undeclared (first use in this function)
   543 |         collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
       |                                 ^~~~~
make: *** [Makefile:1057: ext/intl/collator/collator_sort.lo] Error 1
root@cloud-prep[10.10.10.82/24] 15:42:19 ~/DOWNLOADS/php-7.4.8 #

--------------------------------------------------------------------------------

This is a surprising error.
If it was a missing header,
configure should have told me about it
no ?


Comments appreciated.

Best,


-- 
yassine -- sysadm
+213-779 06 06 23
http://about.me/ychaouche
Looking for side gigs.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.