chuan-yun / Molten

php probe for zipkin and opentracing
Apache License 2.0
792 stars 160 forks source link

mac os 10.13.6 编译安装make 报错 unknown type name 'ulong' #154

Open David-lavida opened 4 years ago

David-lavida commented 4 years ago

./php7_wrapper.h:285:58: error: unknown type name 'ulong' static inline int mo_zend_hash_index_find(HashTable *ht, ulong h, void v) ^ ./php7_wrapper.h:296:63: error: unknown type name 'ulong' static inline int mo_zend_hash_index_zval_find(HashTable *ht, ulong h, void *v) ^ ./php7_wrapper.h:341:60: error: unknown type name 'ulong' static inline int mo_zend_hash_index_update(HashTable ht, ulong h, voi... ^ ./php7_wrapper.h:366:57: error: unknown type name 'ulong' static inline int mo_zend_hash_index_del(HashTable ht, ulong h) ^ /Users/hanxiaotong/Desktop/Molten-master/molten.c:179:88: error: use of undeclared identifier 'HASH_FLAG_PERSISTENT' ...origin_curl_setopt = pemalloc(sizeof(zend_internal_function), HASH_FLAG... ^ /Users/hanxiaotong/Desktop/Molten-master/molten.c:182:86: error: use of undeclared identifier 'HASH_FLAG_PERSISTENT' ...origin_curl_exec = pemalloc(sizeof(zend_internal_function), HASH_FLAG_P... ^ /Users/hanxiaotong/Desktop/Molten-master/molten.c:185:94: error: use of undeclared identifier 'HASH_FLAG_PERSISTENT' ...= pemalloc(sizeof(zend_internal_function) , HASH_FLAG_PERSISTENT); ^ /Users/hanxiaotong/Desktop/Molten-master/molten.c:188:86: error: use of undeclared identifier 'HASH_FLAG_PERSISTENT' ...origin_curl_reset = pemalloc(sizeof(zend_internal_function), HASH_FLAG_P... ^ 8 errors generated. make: [molten.lo] Error 1

sacrex commented 4 years ago

试一下,安装一下php的开发包。这些标识符都是php定义的