python编译报错_python源码编译uuid模块报错

building '_uuid' extension

gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I./Include -I/home/tt/py37/include -I. -I/usr/local/include -I/home/tt/Python-3.7.2/Include -I/home/tt/Python-3.7.2 -c /home/tt/Python-3.7.2/Modules/_uuidmodule.c -o build/temp.linux-x86_64-3.7/home/tt/Python-3.7.2/Modules/_uuidmodule.o

In file included from /home/tt/Python-3.7.2/Modules/_uuidmodule.c:8:0:

/usr/include/uuid.h:94:24: error: conflicting types for ‘uuid_t’

typedef struct uuid_st uuid_t;

^

In file included from /home/tt/Python-3.7.2/Modules/_uuidmodule.c:5:0:

/usr/include/uuid/uuid.h:44:23: note: previous declaration of ‘uuid_t’ was here

typedef unsigned char uuid_t[16];

^

In file included from /home/tt/Python-3.7.2/Modules/_uuidmodule.c:8:0:

/usr/include/uuid.h:107:22: error: conflicting types for ‘uuid_compare’

extern uuid_rc_t uuid_compare (const uuid_t *_uuid, const uuid_t *_uuid2, int *_result);

^

In file included from /home/tt/Python-3.7.2/Modules/_uuidmodule.c:5:0:

/usr/include/uuid/uuid.h:73:5: note: previous declaration of ‘uuid_compare’ was here

int uuid_compare(const uuid_t uu1, const uuid_t uu2);

^

/home/tt/Python-3.7.2/Modules/_uuidmodule.c: In function ‘py_uuid_generate_time_safe’:

/home/tt/Python-3.7.2/Modules/_uuidmodule.c:15:12: error: storage size of ‘uuid’ isn’t known

uuid_t uuid;

^

/home/tt/Python-3.7.2/Modules/_uuidmodule.c:15:12: warning: unused variable ‘uuid’ [-Wunused-variable]

/home/tt/Python-3.7.2/Modules/_uuidmodule.c:35:1: warning: control reaches end of non-void function [-Wreturn-type]

}

^

The following modules found by detect_modules() in setup.py, have been

built by the Makefile instead, as configured by the Setup files:

_abc atexit pwd

time

Failed to build these modules:

_uuid

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值