注册

安装dmpython报错 执行命令python setup.py install 没有定义 DSQL_ATTR_CERTIFICATE

糖℃ ᶫᵒᵛᵉᵧₒᵤ 2022/10/19 786 3

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:Debian GNU/Linux 11 openEuler 22.03 LTS
【CPU】:Kunpeng-920
【问题描述】*:dmpython安装报错

基础操作系统

cat /etc/os-release
NAME=“openEuler”
VERSION=“22.03 LTS”
ID=“openEuler”
VERSION_ID=“22.03”
PRETTY_NAME=“openEuler 22.03 LTS”
ANSI_COLOR=“0;31”

容器操作系统

cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian

CPU信息

lscpu
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 16
NUMA node(s): 1
Vendor ID: HiSilicon
Model: 0
Model name: Kunpeng-920
Stepping: 0x1
Frequency boost: disabled
CPU max MHz: 2600.0000
CPU min MHz: 2600.0000
BogoMIPS: 200.00
L1d cache: 1 MiB
L1i cache: 1 MiB
L2 cache: 8 MiB
L3 cache: 512 MiB
NUMA node0 CPU(s): 0-15
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm

python版本

python --version
Python 3.8.15

执行 python setup.py install 报错


trc.h:45:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
45 | #endif #_DMPATHON_TRC_H
| ^
Connection.c:46:47: error: ‘DSQL_ATTR_CRYPTO_NAME’ undeclared here (not in a function); did you mean ‘DSQL_ATTR_APP_NAME’?
46 | static udint4 gc_attr_crypto_name = DSQL_ATTR_CRYPTO_NAME;
| ^~~~~~~~~~~~~~~~~~~~~
| DSQL_ATTR_APP_NAME
Connection.c:47:47: error: ‘DSQL_ATTR_CERTIFICATE’ undeclared here (not in a function); did you mean ‘DSQL_ATTR_LOGIN_CERTIFICATE’?
47 | static udint4 gc_attr_certificate = DSQL_ATTR_CERTIFICATE;
| ^~~~~~~~~~~~~~~~~~~~~
| DSQL_ATTR_LOGIN_CERTIFICATE
Connection.c: In function ‘Connection_SplitComponent’:
Connection.c:143:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
143 | source_str = py_String_asString(*sourceObj);
| ^
Connection.c: In function ‘Connection_Debug_inner’:
Connection.c:276:13: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
276 | sprintf(sql_txt, “SP_SET_PARA_VALUE(1, ‘SVR_LOG’, %d)”, debug_type);
| ^~~~~~~
| |
| sdbyte * {aka signed char *}

求助

如果是驱动的原因的话 请问在哪里下载ARM64的驱动 或者这个函数怎么定义

回答 0
暂无回答
扫一扫
联系客服