Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-11659

src/switch_rtp.c: error: implicit declaration of function 'RAND_bytes'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.5
    • Fix Version/s: 20.19.2, 1.8.6
    • Component/s: core
    • Labels:
      None
    • Environment:
      OpenWrt trunk
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • Compiler Version:
      7.4.0
    • FreeSWITCH GIT Revision:
      7e67dc3c4d2ebf07cee16990e880a994068d99a8
    • GIT Master Revision hash::
      7e67dc3c4d2ebf07cee16990e880a994068d99a8
    • Target Version:

      Description

      Hi all,

      Since update to openssl-1.1.1a (from 1.0.2) compile fails like below:


        CC src/libfreeswitch_la-switch_rtp.lo
      src/switch_rtp.c: In function 'switch_rtp_get_random':
      src/switch_rtp.c:2419:2: error: implicit declaration of function 'RAND_bytes'; did you mean 'RSA_bits'? [-Werror=implicit-function-declaration]
        RAND_bytes(buf, len);
        ^~~~~~~~~~
        RSA_bits
      cc1: all warnings being treated as errors
      make[4]: *** [Makefile:2377: src/libfreeswitch_la-switch_rtp.lo] Error 1

      I'll add a pull request to add the missing include.

      Kind regards,
      Seb

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              Sebastian Sebastian Kemper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: