Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    编译T113时,添加时钟同步ntp出错

    Linux
    1
    2
    1239
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Ary_Ye LV 5 last edited by

      用的TinaLinux,错误信息如下,请大佬们帮忙看看是哪里出了问题。

      ntp_crypto.c:1613:31: error: 'RSA_PKCS1_OAEP_PADDING' undeclared (first use in this function)
            EVP_PKEY_get0_RSA(pkey), RSA_PKCS1_OAEP_PADDING) <= 0) {
                                     ^~~~~~~~~~~~~~~~~~~~~~
      ntp_crypto.c: In function 'crypto_alice2':
      ntp_crypto.c:2516:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
        if ((rsa = EVP_PKEY_get0_RSA(peer->ident_pkey->pkey)) == NULL)
      
      1 Reply Last reply Reply Quote Share 0
      • A
        Ary_Ye LV 5 last edited by

        找到问题了,grep一下这个宏定义,发现是在openssl库里面的,在make menuconfig里面把下面这个选项勾上就行了
        QQ截图20230624110607.png

        1 Reply Last reply Reply Quote Share 1
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策