Bug #79946 [Fbk]: Build fails due to undeclared UINT32_C

From: Date: Sat, 08 Aug 2020 19:47:38 +0000
Subject: Bug #79946 [Fbk]: Build fails due to undeclared UINT32_C
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228463@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79946&edit=1

 ID:                 79946
 Updated by:         nikic@php.net
 Reported by:        rk at srsbiz dot pl
 Summary:            Build fails due to undeclared UINT32_C
 Status:             Feedback
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Linux
 PHP Version:        master-Git-2020-08-08 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

(Note that the latter suggestion requires running ./buildconf && ./config.nice to regenerate
the Makefile.)


Previous Comments:
------------------------------------------------------------------------
[2020-08-08 19:46:54] nikic@php.net

Does moving https://github.com/php/php-src/blob/05478e985eb50c473054b4f1bf174f48ead78784/ext/intl/intl_convertcpp.cpp#L19-L21
before the other includes resolve the build failure?

Alternatively, does replacing https://github.com/php/php-src/blob/05478e985eb50c473054b4f1bf174f48ead78784/ext/intl/config.m4#L9
with

INTL_COMMON_FLAGS="$ICU_CFLAGS -Wno-write-strings -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"

resolve the compilation failure?

------------------------------------------------------------------------
[2020-08-08 19:17:51] rk at srsbiz dot pl

Description:
------------
Git revision 05478e985eb50c473054b4f1bf174f48ead78784
g++ (GCC) 4.5.2
uconv v2.1  ICU 56.1

Configure script:
./configure --prefix=/usr/local/php-master --with-config-file-path=/usr/local/php-master/etc
--enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd --enable-intl
--enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem
--enable-sysvshm --enable-sysvmsg --disable-cgi --disable-phar --with-bz2 --with-curl
--with-freetype --with-gdbm --with-gmp --with-iconv --with-jpeg --with-mhash
--with-mysql-sock=/var/run/mysql/mysql.sock --with-mysqli=mysqlnd --with-openssl
--with-pdo-mysql=mysqlnd --with-pdo-pgsql --with-pgsql --with-pspell --with-readline --with-webp
--with-xpm --with-zip --without-pear


Error:
/bin/sh /usr/src/php-master/libtool --silent --preserve-dup-deps --mode=compile g++  
-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   -DUNISTR_FROM_CHAR_EXPLICIT=explicit
-DUNISTR_FROM_STRING_EXPLICIT=explicit -Iext/intl/ -I/usr/src/php-master/ext/intl/
-I/usr/src/php-master/include -I/usr/src/php-master/main -I/usr/src/php-master
-I/usr/src/php-master/ext/date/lib -I/usr/include/libxml2 -I/usr/local/include
-I/usr/include/libpng14 -I/usr/include/freetype2 -I/usr/src/php-master/ext/mbstring/libmbfl
-I/usr/src/php-master/ext/mbstring/libmbfl/mbfl -I/usr/local/pgsql/include -I/usr/include/pspell
-I/usr/lib/libzip/include -I/usr/src/php-master/TSRM -I/usr/src/php-master/Zend    -g -O2  -c
/usr/src/php-master/ext/intl/intl_convertcpp.cpp -o ext/intl/intl_convertcpp.lo
In file included from /usr/src/php-master/Zend/zend.h:32:0,
                 from /usr/src/php-master/main/php.h:31,
                 from /usr/src/php-master/ext/intl/intl_convertcpp.cpp:20:
/usr/src/php-master/Zend/zend_string.h: In function ‘zend_ulong zend_inline_hash_func(const
char*, size_t)’:
/usr/src/php-master/Zend/zend_string.h:381:20: error: ‘UINT32_C’ was not declared in this
scope



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



--
Edit this bug report at https://bugs.php.net/bug.php?id=79946&edit=1


Thread (5 messages)

« previous php.bugs (#228463) next »