安装ukey出错,安装u-key出错~ hp_ukey.h:75:28: error: conflicting types for ‘__uint64_t’

安装ukey出错,安装u-key出错~ hp_ukey.h:75:28: error: conflicting types for ‘__uint64_t’

尐偏执 发布于 2021-11-29 字数 59 浏览 889 回复 2

   centos7 。。哪位大侠可以帮个忙,折腾一个下午了

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陌上芳菲 2021-12-01 2 楼

不知道你解决没有,都这么久了,不过我还是说一下我的解决办法,进入php_ukey.h

找到typedef unsigned long long __uint64_t; 这句代码,

改成typedef unsigned long __uint64_t; 

再进行make就可以了

坏尐絯 2021-12-01 1 楼

/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