首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
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
发布于10年前 · 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
回复