Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-61830

openldap compiled with OpenSSL MD2 support which is no longer included in libcrypto.so.3(OPENSSL_3.0.0)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0
    • CentOS Stream 10
    • openldap
    • None
    • openldap-2.6.7-6.el10
    • No
    • Moderate
    • rhel-sst-idm-ds
    • ssg_idm
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • CentOS Stream
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      The following error occurs when attempting to build the native extensions for the pg ruby gem:

      /lib64/libldap.so.2: undefined symbol: EVP_md2, version OPENSSL_3.0.0

      What is the impact of this issue to you?

      I am unable to build and install the pg gem into the embedded ruby included with chef/cinc.

      Please provide the package NVR for which the bug is seen:

      openldap-2.6.6-3.el9.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Install minimal OS
      2. sudo dnf install -y http://downloads.cinc.sh/files/stable/cinc/18.5.0/el/9/cinc-18.5.0-1.el9.x86_64.rpm
      3. sudo dnf install -y automake autoconf gcc postgresql-devel
      4. sudo /opt/cinc/embedded/bin/gem install pg

      Expected results

      Successful installation of the pg gem in the embedded ruby

      Actual results

      Building local extensions fails when attempting to check for PQconnectdb():

       

      have_library: checking for PQconnectdb() in -lpq... -------------------- no
       "gcc -o conftest -I/opt/cinc/embedded/include/ruby-3.1.0/x86_64-linux -I/opt/cinc/embedded/include/ruby-3.1.0/ruby/backward -I/opt/cinc/embedded/include/ruby-3.1.0 -I. -I/usr/include -I/opt/cinc/embedded/include -O3 -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -g -pipe -I/opt/cinc/embedded/include   -I/opt/cinc/embedded/include -O3 -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -g -pipe -fPIC conftest.c  -L. -L/opt/cinc/embedded/lib -Wl,-rpath,/opt/cinc/embedded/lib -L/usr/lib64 -Wl,-rpath,/usr/lib64 -L/opt/cinc/embedded/lib -Wl,-rpath,/opt/cinc/embedded/lib -L. -Wl,-rpath,/opt/cinc/embedded/lib -L/opt/cinc/embedded/lib -fstack-protector-strong -L/opt/cinc/embedded/lib  -Wl,-rpath,/opt/cinc/embedded/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/cinc/embedded/lib -L/opt/cinc/embedded/lib -lruby -lpq  -lm  -lc"
      /bin/ld: /usr/lib64/libldap.so.2: undefined reference to `EVP_md2@OPENSSL_3.0.0'
      collect2: error: ld returned 1 exit status
      checked program was:
      /* begin */
       1: #include "ruby.h"
       2:
       3: #include <libpq-fe.h>
       4:
       5: /*top*/
       6: extern int t(void);
       7: int main(int argc, char **argv)
       8: {
       9:   if (argc > 1000000) {
      10:     int (* volatile tp)(void)=(int (*)(void))&t;
      11:     printf("%d", (*tp)());
      12:   }
      13:
      14:   return !!argv[argc];
      15: }
      16: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectdb; return !p; }
      /* end */
      

       

              spichugi@redhat.com Simon Pichugin
              schlazor David Schlenk (Inactive)
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: