开发者社区> 问答> 正文

安装ukey报错, 400 请求报错 

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

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

展开
收起
kun坤 2020-05-29 10:58:49 828 0
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

    ###### 不知道你解决没有,都这么久了,不过我还是说一下我的解决办法,进入php_ukey.h
    找到typedef unsigned long long __uint64_t; 这句代码,
    改成typedef unsigned long __uint64_t; 
    再进行make就可以了 ######大神,你太牛逼了,果断膜拜一下!!!!!爱你~~

    2020-05-29 14:53:48
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载