|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-05-09 09:47 UTC] daniel at imhimmel dot net
Description:
------------
Linking libphp7.so fails with the following error:
Undefined symbols for architecture x86_64:
"thread-local wrapper routine for _tsrm_ls_cache", referenced from:
_zim_IntlDateFormatter___construct in dateformat_create.o
_timezone_convert_to_datetimezone in timezone_class.o
_zif_intlcal_from_date_time in calendar_methods.o
_zif_intlcal_to_date_time in calendar_methods.o
_php_intlgregcal_constructor_body(_zend_execute_data*, _zval_struct*, unsigned char) in gregoriancalendar_methods.o
As a workaround one may build php without intl extension (--disable-intl) and build intl as a separate extension, although I'm not sure if it might fail on some condition.
For now my tests using datefmt_create and IntlDateFormatter did work just fine.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Hi, I had the same problem when i `build and make` php(7.3.5) with zts. And my macOS version is 10.12.6. clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument] Undefined symbols for architecture x86_64: "thread-local wrapper routine for _tsrm_ls_cache", referenced from: _zim_IntlDateFormatter___construct in dateformat_create.o _timezone_convert_to_datetimezone in timezone_class.o _zif_intlcal_from_date_time in calendar_methods.o _zif_intlcal_to_date_time in calendar_methods.o _php_intlgregcal_constructor_body(_zend_execute_data*, _zval_struct*, unsigned char) in gregoriancalendar_methods.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [sapi/cli/php] Error 1