首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole扩展编译报错
环境 Linux version 2.6.32_1-13-0-0 (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #24 SMP Thu Dec 26 12:28:11 CST 2013 cc -I. -I/home/work/local/swoole-1.7.4 -DPHP_ATOM_INC -I/home/work/local/swoole-1.7.4/include -I/home/work/local/swoole-1.7.4/main -I/home/work/local/swoole-1.7.4 -I/home/work/local/php-5.4.32/bin/php/include/php -I/home/work/local/php-5.4.32/bin/php/include/php/main -I/home/work/local/php-5.4.32/bin/php/include/php/TSRM -I/home/work/local/php-5.4.32/bin/php/include/php/Zend -I/home/work/local/php-5.4.32/bin/php/include/php/ext -I/home/work/local/php-5.4.32/bin/php/include/php/ext/date/lib -I/include -I/home/work/local/swoole-1.7.4/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /home/work/local/swoole-1.7.4/src/core/RingQueue.c -fPIC -DPIC -o src/core/.libs/RingQueue.o In file included from /home/work/local/swoole-1.7.4/src/core/RingQueue.c:17: /home/work/local/swoole-1.7.4/include/swoole.h:401: error: syntax error before "pthread_rwlock_t" /home/work/local/swoole-1.7.4/include/swoole.h:401: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:402: warning: type defaults to `int' in declaration of `attr' /home/work/local/swoole-1.7.4/include/swoole.h:402: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:404: warning: type defaults to `int' in declaration of `swRWLock' /home/work/local/swoole-1.7.4/include/swoole.h:404: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:410: error: syntax error before "pthread_spinlock_t" /home/work/local/swoole-1.7.4/include/swoole.h:410: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:411: warning: type defaults to `int' in declaration of `swSpinLock' /home/work/local/swoole-1.7.4/include/swoole.h:411: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:435: error: syntax error before "swRWLock" /home/work/local/swoole-1.7.4/include/swoole.h:435: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:435: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:440: error: syntax error before "spinlock" /home/work/local/swoole-1.7.4/include/swoole.h:440: warning: type defaults to `int' in declaration of `spinlock' /home/work/local/swoole-1.7.4/include/swoole.h:440: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:442: warning: type defaults to `int' in declaration of `object' /home/work/local/swoole-1.7.4/include/swoole.h:442: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:448: error: 'free' redeclared as different kind of symbol /usr/include/stdlib.h:597: error: previous declaration of 'free' was here /home/work/local/swoole-1.7.4/include/swoole.h:448: error: 'free' redeclared as different kind of symbol /usr/include/stdlib.h:597: error: previous declaration of 'free' was here /home/work/local/swoole-1.7.4/include/swoole.h:449: error: syntax error before '}' token /home/work/local/swoole-1.7.4/include/swoole.h:454: error: field `lock' has incomplete type /home/work/local/swoole-1.7.4/include/swoole.h:916: error: field `lock' has incomplete type /home/work/local/swoole-1.7.4/include/swoole.h:1037: error: field `lock' has incomplete type /home/work/local/swoole-1.7.4/src/core/RingQueue.c: In function `swRingQueue_free': /home/work/local/swoole-1.7.4/src/core/RingQueue.c:113: warning: passing arg 1 of pointer to function from incompatible pointer type make: *** [src/core/RingQueue.lo] Error 1
发布于8年前 · 3 次浏览 · 来自
提问
背
背影。
环境 Linux version 2.6.32_1-13-0-0 (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #24 SMP Thu Dec 26 12:28:11 CST 2013 cc -I. -I/home/work/local/swoole-1.7.4 -DPHP_ATOM_INC -I/home/work/local/swoole-1.7.4/include -I/home/work/local/swoole-1.7.4/main -I/home/work/local/swoole-1.7.4 -I/home/work/local/php-5.4.32/bin/php/include/php -I/home/work/local/php-5.4.32/bin/php/include/php/main -I/home/work/local/php-5.4.32/bin/php/include/php/TSRM -I/home/work/local/php-5.4.32/bin/php/include/php/Zend -I/home/work/local/php-5.4.32/bin/php/include/php/ext -I/home/work/local/php-5.4.32/bin/php/include/php/ext/date/lib -I/include -I/home/work/local/swoole-1.7.4/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /home/work/local/swoole-1.7.4/src/core/RingQueue.c -fPIC -DPIC -o src/core/.libs/RingQueue.o In file included from /home/work/local/swoole-1.7.4/src/core/RingQueue.c:17: /home/work/local/swoole-1.7.4/include/swoole.h:401: error: syntax error before "pthread_rwlock_t" /home/work/local/swoole-1.7.4/include/swoole.h:401: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:402: warning: type defaults to `int' in declaration of `attr' /home/work/local/swoole-1.7.4/include/swoole.h:402: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:404: warning: type defaults to `int' in declaration of `swRWLock' /home/work/local/swoole-1.7.4/include/swoole.h:404: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:410: error: syntax error before "pthread_spinlock_t" /home/work/local/swoole-1.7.4/include/swoole.h:410: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:411: warning: type defaults to `int' in declaration of `swSpinLock' /home/work/local/swoole-1.7.4/include/swoole.h:411: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:435: error: syntax error before "swRWLock" /home/work/local/swoole-1.7.4/include/swoole.h:435: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:435: warning: no semicolon at end of struct or union /home/work/local/swoole-1.7.4/include/swoole.h:440: error: syntax error before "spinlock" /home/work/local/swoole-1.7.4/include/swoole.h:440: warning: type defaults to `int' in declaration of `spinlock' /home/work/local/swoole-1.7.4/include/swoole.h:440: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:442: warning: type defaults to `int' in declaration of `object' /home/work/local/swoole-1.7.4/include/swoole.h:442: warning: data definition has no type or storage class /home/work/local/swoole-1.7.4/include/swoole.h:448: error: 'free' redeclared as different kind of symbol /usr/include/stdlib.h:597: error: previous declaration of 'free' was here /home/work/local/swoole-1.7.4/include/swoole.h:448: error: 'free' redeclared as different kind of symbol /usr/include/stdlib.h:597: error: previous declaration of 'free' was here /home/work/local/swoole-1.7.4/include/swoole.h:449: error: syntax error before '}' token /home/work/local/swoole-1.7.4/include/swoole.h:454: error: field `lock' has incomplete type /home/work/local/swoole-1.7.4/include/swoole.h:916: error: field `lock' has incomplete type /home/work/local/swoole-1.7.4/include/swoole.h:1037: error: field `lock' has incomplete type /home/work/local/swoole-1.7.4/src/core/RingQueue.c: In function `swRingQueue_free': /home/work/local/swoole-1.7.4/src/core/RingQueue.c:113: warning: passing arg 1 of pointer to function from incompatible pointer type make: *** [src/core/RingQueue.lo] Error 1
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2016-01-02
h
hhhhjjjjjjjj
你的编译错误信息有些特殊,请加我的QQ详细说。
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。