Brew yaf Error:unknown type name ' Hashkit_api '

Source: Internet
Author: User

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 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.