0

clipboard.png
/usr/local/php7.1/include/php/Zend/zend_string.h:122: undefined reference to `__zend_malloc'
.libs/swoole_websocket_server.o: In function `swoole_websocket_init':
/home/swoole/swoole-src/swoole_websocket_server.cc:433: undefined reference to `zend_new_interned_string'
/home/swoole/swoole-src/swoole_websocket_server.cc:433: undefined reference to `zend_register_internal_class_ex'
.libs/swoole_websocket_server.o: In function `zend_string_init':
/usr/local/php7.1/include/php/Zend/zend_string.h:122: undefined reference to `__zend_malloc'
.libs/swoole_websocket_server.o: In function `sw_zend_register_class_alias':
/home/swoole/swoole-src/php_swoole.h:781: undefined reference to `zend_str_tolower_copy'
/home/swoole/swoole-src/php_swoole.h:784: undefined reference to `zend_new_interned_string'
/home/swoole/swoole-src/php_swoole.h:789: undefined reference to `zend_register_class_alias_ex'
.libs/swoole_websocket_server.o: In function `swoole_websocket_init':
/home/swoole/swoole-src/swoole_websocket_server.cc:435: undefined reference to `zend_declare_property_long'
/home/swoole/swoole-src/swoole_websocket_server.cc:436: undefined reference to `zend_declare_property_string'
/home/swoole/swoole-src/swoole_websocket_server.cc:437: undefined reference to `zend_declare_property_long'
/home/swoole/swoole-src/swoole_websocket_server.cc:438: undefined reference to `zend_declare_property_bool'
/home/swoole/swoole-src/swoole_websocket_server.cc:440: undefined reference to `zend_declare_property_long'
/home/swoole/swoole-src/swoole_websocket_server.cc:441: undefined reference to `zend_declare_property_long'
/home/swoole/swoole-src/swoole_websocket_server.cc:442: undefined reference to `zend_declare_property_string'
/home/swoole/swoole-src/swoole_websocket_server.cc:445: undefined reference to `zend_register_long_constant'
/home/swoole/swoole-src/swoole_websocket_server.cc:446: undefined reference to `zend_register_long_constant'
/home/swoole/swoole-src/swoole_websocket_server.cc:447: undefined reference to `zend_register_long_constant'
/home/swoole/swoole-src/swoole_websocket_server.cc:448: undefined reference to `zend_register_long_constant'
/home/swoole/swoole-src/swoole_websocket_server.cc:449: undefined reference to `zend_register_long_constant'
.libs/swoole_websocket_server.o:/home/swoole/swoole-src/swoole_websocket_server.cc:451: more undefined references to `zend_register_long_constant' follow
thirdparty/hiredis/.libs/hiredis.o: In function `countDigits':
/home/swoole/swoole-src/thirdparty/hiredis/hiredis.c:200: undefined reference to `__udivdi3'
/home/swoole/swoole-src/thirdparty/hiredis/hiredis.c:200: undefined reference to `__udivdi3'
/home/swoole/swoole-src/thirdparty/hiredis/hiredis.c:200: undefined reference to `__udivdi3'
/home/swoole/swoole-src/thirdparty/hiredis/hiredis.c:200: undefined reference to `__udivdi3'
thirdparty/hiredis/.libs/sds.o: In function `sdsll2str':
/home/swoole/swoole-src/thirdparty/hiredis/sds.c:442: undefined reference to `__umoddi3'
/home/swoole/swoole-src/thirdparty/hiredis/sds.c:443: undefined reference to `__udivdi3'
thirdparty/hiredis/.libs/sds.o: In function `sdsull2str':
/home/swoole/swoole-src/thirdparty/hiredis/sds.c:472: undefined reference to `__umoddi3'
/home/swoole/swoole-src/thirdparty/hiredis/sds.c:473: undefined reference to `__udivdi3'
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: src/core/.libs/array.o: file class ELFCLASS32 incompatible with ELFCLASS64
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: final link failed: File in wrong format
collect2: error: ld returned 1 exit status
make: * [swoole.la] Error 1

2019-03-27 提问

1 个回答

0

make clean后重新编译试一下。

推广链接