开发者社区 问答 正文

安装ukey报错, 400 请求报错 

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

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

展开
收起
kun坤 2020-05-29 10:58:49 850 分享
分享
版权
举报
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 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
问答地址:
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等