Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-362

LP #1183610: vio/viossl.c fails to compile with OpenSSL 0.9.8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Ignacio Nin last update 06-12-2013 17:10:24

      Trying to compile in a system with OpenSSL 0.9.8 (CentOS 5, debian squeeze) with -DWITH_SSL=system using OpenSSL fails in vio/viossl.c with the following error:

      [ 68%] Building C object vio/CMakeFiles/vio.dir/viossl.c.o
      /dev/shm/work/BUILD/Percona-Server-5.5.31-rel30.3/vio/viossl.c: In functionsl_do':
      /dev/shm/work/BUILD/Percona-Server-5.5.31-rel30.3/vio/viossl.c:175: error: [ 68%] Building C object vio/CMakeFiles/vio.dir/viossl.c.o
      SL_OP_NO_COMPRESSION' undeclared (first use in this function)
      /dev/shm/work/BUILD/Percona-Server-5.5.31-rel30.3/vio/viossl.c:175: error: (Each undeclared identifier is reported only once
      /dev/shm/work/BUILD/Percona-Server-5.5.31-rel30.3/vio/viossl.c:175: error: for each function it appears in.)
      make[2]: *** [vio/CMakeFiles/vio.dir/viossl.c.o] Error 1
      make[1]: *** [vio/CMakeFiles/vio.dir/all] Error 2
      make: *** [all] Error 2

      vio/viossl.c uses the following construct (line 174)

      #ifndef HAVE_YASSL
      SSL_set_options(ssl, SSL_OP_NO_COMPRESSION);
      #endif

      SSL_OP_NO_COMPRESSION was introduced in OpenSSL post 1.0.

      The fix for this would be to avoid using SSL_OP_NO_COMPRESSION unless explicitely defined.

      This change was introduced in revno 517 of Percona Server 5.5 (exactly revno 0.16782.113) so it's for now impossible to base its fix in a GCA with 5.6.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lpjirasync lpjirasync (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Smart Checklist