php C扩展 ext_skel报错
PHP中文网
PHP中文网 2017-04-10 16:52:13
[PHP讨论组]

执行./ext_skel --extname=test2_module --proto=test2_module.def
报错 :
awk: syntax error at source line 256 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
context is
if (!stubs) print "" > extname >>> "/function_warning" <<<
awk: illegal statement at source line 257 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
awk: syntax error at source line 267 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
Creating basic files: config.m4 config.w32 .gitignore test2_module.c php_test2_module.h CREDITS EXPERIMENTAL tests/001.phpt test2_module.phprm: function_entries: No such file or directory
rm: function_declarations: No such file or directory
rm: function_stubs: No such file or directory
[done].
请问如何处理

PHP中文网
PHP中文网

认证0级讲师

全部回复(3)
巴扎黑

修改一下 ext/skeleton/create_stubs 文件中三处:

256行

if (!stubs) print "" > extname "/function_warning"

改为

if (!stubs) print "" > ( extname "/function_warning" )

还有267、268行,相同。

搬运自 StackOverFlow

天蓬老师

确保一下你执行时 ext_skel 有对目录写入的权限。

大家讲道理

确认 test2_module.def 文件存在?

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号