This bug was initially created as a copy of Bug #2338556 I am copying this bug because: 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}} It's not possible to build and install the {{pg}} gem into the embedded ruby included with chef/cinc. Reproducible: 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}} Actual Results: Building local extensions fails when attempting to check for PQconnectdb(): {code:java} 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.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 */ {code} Expected Results: Successful installation of the pg gem in the embedded ruby
FEDORA-2025-fd867fd8ef (openldap-2.6.8-2.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2025-fd867fd8ef
FEDORA-2025-fd867fd8ef has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-fd867fd8ef` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-fd867fd8ef See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-fd867fd8ef (openldap-2.6.8-2.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.