Perl upgrade perl-5.38.0: libperl.so is not found

This forum is for discussion about general software issues.

Perl upgrade perl-5.38.0: libperl.so is not found

Postby debo » Tue Aug 15, 2023 1:44 am

Perl was recently upgraded to perl-5.38.0. After the upgrade, libperl.so is not found by the dynamic linker. This breaks openldap, slapd won't load without libperl.so.

libperl.so is in /usr/lib/perl5/5.38/core_perl/CORE/libperl.so, and the dynamic linker is not looking for it there.

To fix it, I had to run ldconfig to force it to look in /usr/lib/perl5/5.38/core_perl/CORE when rebuilding the linker cache. After doing that, libperl.so is found by the dynamic linker. Obviously, that should not be necessary.

I assume that this is an upstream (archlinux) bug?
debo
 
Posts: 14
Joined: Fri Dec 24, 2021 4:00 pm

Re: Perl upgrade perl-5.38.0: libperl.so is not found

Postby debo » Tue Aug 15, 2023 10:10 pm

I believe I have found the problem. openldap needs to be built against perl-5.38.0. Notice that the RPATH in the slapd binary is set for perl-5.36:

% readelf -hd /usr/bin/slapd
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Position-Independent Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x220fc
Start of program headers: 52 (bytes into file)
Start of section headers: 2094940 (bytes into file)
Flags: 0x5000400, Version5 EABI, hard-float ABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 9
Size of section headers: 40 (bytes)
Number of section headers: 29
Section header string table index: 28

Dynamic section at offset 0x1f60b8 contains 39 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libldap.so.2]
0x00000001 (NEEDED) Shared library: [liblber.so.2]
0x00000001 (NEEDED) Shared library: [libltdl.so.7]
0x00000001 (NEEDED) Shared library: [libperl.so]
0x00000001 (NEEDED) Shared library: [libodbc.so.2]
0x00000001 (NEEDED) Shared library: [libsystemd.so.0]
0x00000001 (NEEDED) Shared library: [libsasl2.so.3]
0x00000001 (NEEDED) Shared library: [libuuid.so.1]
0x00000001 (NEEDED) Shared library: [libcrypt.so.2]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x00000001 (NEEDED) Shared library: [ld-linux-armhf.so.3]
0x0000000f (RPATH) Library rpath: [/usr/lib/perl5/5.36/core_perl/CORE]
0x0000000c (INIT) 0x1c3dc
0x0000000d (FINI) 0x1878d8
0x00000019 (INIT_ARRAY) 0x204790
0x0000001b (INIT_ARRAYSZ) 4 (bytes)
0x0000001a (FINI_ARRAY) 0x204794
0x0000001c (FINI_ARRAYSZ) 4 (bytes)
0x6ffffef5 (GNU_HASH) 0x1b4
0x00000005 (STRTAB) 0xb0b4
0x00000006 (SYMTAB) 0x2d14
0x0000000a (STRSZ) 35378 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x206210
0x00000002 (PLTRELSZ) 4528 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x1b22c
0x00000011 (REL) 0x14cbc
0x00000012 (RELSZ) 25968 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x00000018 (BIND_NOW)
0x6ffffffb (FLAGS_1) Flags: NOW PIE
0x6ffffffe (VERNEED) 0x14b5c
0x6fffffff (VERNEEDNUM) 8
0x6ffffff0 (VERSYM) 0x13ae6
0x6ffffffa (RELCOUNT) 3217
0x00000000 (NULL) 0x0
debo
 
Posts: 14
Joined: Fri Dec 24, 2021 4:00 pm

Re: Perl upgrade perl-5.38.0: libperl.so is not found

Postby debo » Tue Aug 15, 2023 10:12 pm

Perl was built after openldap:

openldap-2.6.6-1-armv7h.pkg.tar.xz 07-Aug-2023 13:06 1372744
openldap-2.6.6-1-armv7h.pkg.tar.xz.sig 07-Aug-2023 13:07 566

perl-5.38.0-1-armv7h.pkg.tar.xz 07-Aug-2023 18:05 14510412
perl-5.38.0-1-armv7h.pkg.tar.xz.sig 07-Aug-2023 18:05 566
debo
 
Posts: 14
Joined: Fri Dec 24, 2021 4:00 pm

Re: Perl upgrade perl-5.38.0: libperl.so is not found

Postby debo » Tue Aug 15, 2023 10:20 pm

Openldap needs to be rebuilt whenever the major or minor version of Perl changes.
debo
 
Posts: 14
Joined: Fri Dec 24, 2021 4:00 pm

Re: Perl upgrade perl-5.38.0: libperl.so is not found

Postby debo » Tue Aug 15, 2023 11:14 pm

I have posted a new topic in the package area.
debo
 
Posts: 14
Joined: Fri Dec 24, 2021 4:00 pm


Return to General

Who is online

Users browsing this forum: No registered users and 19 guests