Linux

crda 出錯

  • October 1, 2020

硬體:英特爾Galileo Gen 2

系統:Yocto linux (iot-devkit-image)

使用者:root

在這篇文章的“第 7 步”

root@dhcppc6:~/crda-3.18# make
 GEN  keys-gcrypt.c
 Trusted pubkeys: pubkeys/root.key.pub.pem pubkeys/root.x509.pem pubkeys/sforshee.x509.pem pubkeys/sforshee.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/linville.key.pub.pem
Traceback (most recent call last):
 File "./utils/key2pub.py", line 149, in <module>
   key = RSA.load_key(f)
 File "/usr/lib/python2.7/site-packages/M2Crypto/RSA.py", line 376, in load_key
   return load_key_bio(bio, callback)
 File "/usr/lib/python2.7/site-packages/M2Crypto/RSA.py", line 395, in load_key_bio
   rsa_error()
 File "/usr/lib/python2.7/site-packages/M2Crypto/RSA.py", line 330, in rsa_error
   raise RSAError(m2.err_reason_error_string(m2.err_get_error()))
M2Crypto.RSA.RSAError: no start line
Makefile:113: recipe for target 'keys-gcrypt.c' failed
make: *** [keys-gcrypt.c] Error 1

再次執行時

root@dhcppc6:~/crda-3.18# make
 CC   libreg.so
reglib.c: In function 'reglib_verify_db_signature':
reglib.c:168:26: error: 'keys' undeclared (first use in this function)
 for (i = 0; (i < sizeof(keys)/sizeof(keys[0])) && (!ok); i++) {
                         ^
reglib.c:168:26: note: each undeclared identifier is reported only once for each function it appears in
Makefile:118: recipe for target 'libreg.so' failed
make: *** [libreg.so] Error 1

如何修復“ crda make ”?

謝謝大家:)

安裝建構要求

喜歡這篇文章

或者喜歡這個文章

我通過從 pubkeys 文件夾中刪除名稱中包含 x509 的文件解決了這個錯誤。

引用自:https://unix.stackexchange.com/questions/413774