安装ukey报错,安装u-key报错~ hp_ukey.h:75:28: error: conflicting types for ‘__uint64_t’
centos7 。。哪位大侠可以帮个忙,折腾一个下午了
/opt/ukey-master/php_ukey.h:75:28: error: conflicting types for ‘__uint64_t’
typedef unsigned long long __uint64_t;
^
In file included from /usr/include/sys/time.h:24:0,
from /opt/ukey-master/ukey.c:21:
/usr/include/bits/types.h:44:27: note: previous declaration of ‘__uint64_t’ was here
typedef unsigned long int __uint64_t;
^
/opt/ukey-master/ukey.c: In function ‘ukey_startup’:
/opt/ukey-master/ukey.c:136:14: warning: assignment from incompatible pointer type [enabled by default]
lock = memaddr;
^
/opt/ukey-master/ukey.c:137:17: warning: assignment from incompatible pointer type [enabled by default]
context = memaddr + sizeof(atomic_t);
^
/opt/ukey-master/ukey.c:147:17: warning: assignment from incompatible pointer type [enabled by default]
context = (char *)shmctx.addr + sizeof(atomic_t);
^
/opt/ukey-master/ukey.c: In function ‘exit_cb’:
/opt/ukey-master/ukey.c:193:14: warning: comparison between pointer and integer [enabled by default]
if (lock == pid) {
^
make: *** [ukey.lo] Error 1
###### 不知道你解决没有,都这么久了,不过我还是说一下我的解决办法,进入php_ukey.h
找到typedef unsigned long long __uint64_t; 这句代码,
改成typedef unsigned long __uint64_t;
再进行make就可以了 ######大神,你太牛逼了,果断膜拜一下!!!!!爱你~~
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。