1.
always fails when installing PHP YAF extension on Mac system; Error: Error:unknown type name ' Hashkit_api '
\h:\w \u$ Brew Install php70-yaf==> installing PHP70-YAF from homebrew/php==> downloading https:// Github.com/laruence/yaf/archive/yaf-3.0.3.tar.gzalready downloaded:/users/liuqh/library/caches/homebrew/ Php70-yaf-3.0.3.tar.gz==>/usr/local/opt/php70/bin/phpize==>./configure--prefix=/usr/local/Cellar/ php70-yaf/3.0.3--with-php-config=/usr/local/opt/php70/bin/php-config==> makelast Lines from/users/liuqh/ Library/logs/homebrew/php70-yaf/03.make:/usr/local/include/string.h:56:1: Error:unknown type name ' HASHKIT_API ' Hashkit_api^/usr/local/include/string.h:57:1: error:expected identifier or ' (' const char *HASHKIT_STRING_C_STR (const hashkit_string_st* self); ^6 errors Generated.make: * * * [Yaf_bootstrap.lo] Error 1make: * * * waiting for unfinished jobs .... 6 Errors Generated.make: * * * [Yaf.lo] Error errors generated.make: * * * [Yaf_application.lo] Error (Errors generated.m) AKE: * * * [Yaf_dispatcher.lo] Error 1
====> Workaround:
Find the code related to/usr/local/include/string.h annotation reconcile ' hashkit_api;
/*=============================20180314 解决yaf 装不上的问题,注释#HASHKIT_APIvoid hashkit_string_free(hashkit_string_st *ptr);#HASHKIT_APIsize_t hashkit_string_length(const hashkit_string_st *self);#HASHKIT_APIconst char *hashkit_string_c_str(const hashkit_string_st* self);#================================================================*/
Brew yaf Error:unknown type name ' Hashkit_api '