首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
yasd 安装出错,no member named 'ap_php_snprintf' in namespace 'std'; did you mean simply 'ap_php_snprintf'?
### 问题描述 想给老项目装个yasd做断点调试 但编译make时候发生错误 ### Swoole版本4.5.11,PHP版本7.4, boost1.81,以及操作系统版本信息mac ### 相关代码 ```sh /usr/local/Cellar/php@7.4/7.4.33_1/bin/phpize ..... ./configure --with-php-config=/usr/local/Cellar/php@7.4/7.4.33_1/bin/php-config ..... make /usr/local/include/boost/assert/source_location.hpp:104:13: error: no member named 'ap_php_snprintf' in namespace 'std'; did you mean simply 'ap_php_snprintf'? BOOST_ASSERT_SNPRINTF( buffer, ":%lu", co ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/boost/assert/source_location.hpp:81:53: note: expanded from macro 'BOOST_ASSERT_SNPRINTF' # define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), format, arg) ^~~~~ /usr/local/Cellar/php@7.4/7.4.33_1/include/php/main/snprintf.h:81:12: note: 'ap_php_snprintf' declared here PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); ^ 2 errors generated. make: *** [src/remote_debugger.lo] Error 1 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
发布于3年前 · 30 次浏览 · 来自
提问
amle
### 问题描述 想给老项目装个yasd做断点调试 但编译make时候发生错误 ### Swoole版本4.5.11,PHP版本7.4, boost1.81,以及操作系统版本信息mac ### 相关代码 ```sh /usr/local/Cellar/php@7.4/7.4.33_1/bin/phpize ..... ./configure --with-php-config=/usr/local/Cellar/php@7.4/7.4.33_1/bin/php-config ..... make /usr/local/include/boost/assert/source_location.hpp:104:13: error: no member named 'ap_php_snprintf' in namespace 'std'; did you mean simply 'ap_php_snprintf'? BOOST_ASSERT_SNPRINTF( buffer, ":%lu", co ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/boost/assert/source_location.hpp:81:53: note: expanded from macro 'BOOST_ASSERT_SNPRINTF' # define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), format, arg) ^~~~~ /usr/local/Cellar/php@7.4/7.4.33_1/include/php/main/snprintf.h:81:12: note: 'ap_php_snprintf' declared here PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); ^ 2 errors generated. make: *** [src/remote_debugger.lo] Error 1 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2023-04-08
Rango
在最新版本 `Swoole 5.0.2` `PHP 8.1` 下可以直接使用 `xdebug`,`yasd` 已经不维护了。
赞
0
回复
2023-08-07
再见了柠檬茶
我是在mac下面装的;用brew把boost的版本退回到1.76就可以了
赞
0
回复