Bug #80310 [Opn]: ext-intl with icu4c 68.1: use of undeclared identifier 'TRUE'

From: Date: Tue, 03 Nov 2020 15:09:29 +0000
Subject: Bug #80310 [Opn]: ext-intl with icu4c 68.1: use of undeclared identifier 'TRUE'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230084@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80310&edit=1

 ID:                 80310
 Updated by:         cmb@php.net
 Reported by:        me at derrabus dot de
 Summary:            ext-intl with icu4c 68.1: use of undeclared
                     identifier 'TRUE'
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   macOS 10.15
 PHP Version:        7.4.12
 Block user comment: N
 Private report:     N

 New Comment:

Would it work with

    CFLAGS=-DU_DEFINE_FALSE_AND_TRUE=1


Previous Comments:
------------------------------------------------------------------------
[2020-11-03 14:03:11] me at derrabus dot de

Description:
------------
I tried to build php 7.4.12 with ext-intl against icu4c 68.1 and the compilation fails with the
error output below. Downgrading to icu4c 67.1 fixes the problem.

This might be related to this change: https://unicode-org.atlassian.net/browse/ICU-21267

Actual result:
--------------
/path/to/php-7.4.12/ext/intl/collator/collator_sort.c:349:26: error: use of undeclared identifier
'TRUE'
        collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
                                ^
/path/to/php-7.4.12/ext/intl/collator/collator_sort.c:543:26: error: use of undeclared identifier
'FALSE'
        collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
                                ^
2 errors generated.
make: *** [ext/intl/collator/collator_sort.lo] Error 1
make: *** Waiting for unfinished jobs....


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



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


Thread (7 messages)

« previous php.bugs (#230084) next »