You are not logged in.

#1 2023-08-15 20:44:07

debo
Member
Registered: 2019-06-06
Posts: 13

Upgrade to perl-5.38.0: Breaks slapd

The Perl on my system was updated to perl-5.38.0, and libperl.so is not present in the dynamic library cache. This breaks slapd.

Shouldn't pacman automatically install any installed dynamic libraries into the cache?

Offline

#2 2023-08-15 21:37:15

loqs
Member
Registered: 2014-03-06
Posts: 16,531

Re: Upgrade to perl-5.38.0: Breaks slapd

$ /usr/bin/slapd -V
@(#) $OpenLDAP: slapd 2.6.6 (Jul 31 2023 22:02:38) $
	openldap

$ lddtree /usr/bin/slapd
/usr/bin/slapd (interpreter => /lib64/ld-linux-x86-64.so.2)
    libldap.so.2 => /usr/lib/libldap.so.2
        libssl.so.3 => /usr/lib/libssl.so.3
        libcrypto.so.3 => /usr/lib/libcrypto.so.3
    liblber.so.2 => /usr/lib/liblber.so.2
    libltdl.so.7 => /usr/lib/libltdl.so.7
    libperl.so => /usr/lib/perl5/5.38/core_perl/CORE/libperl.so
        libm.so.6 => /usr/lib/libm.so.6
    libodbc.so.2 => /usr/lib/libodbc.so.2
    libsystemd.so.0 => /usr/lib/libsystemd.so.0
        libcap.so.2 => /usr/lib/libcap.so.2
        libgcrypt.so.20 => /usr/lib/libgcrypt.so.20
            libgpg-error.so.0 => /usr/lib/libgpg-error.so.0
        liblz4.so.1 => /usr/lib/liblz4.so.1
        liblzma.so.5 => /usr/lib/liblzma.so.5
        libzstd.so.1 => /usr/lib/libzstd.so.1
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1
    libsasl2.so.3 => /usr/lib/libsasl2.so.3
    libuuid.so.1 => /usr/lib/libuuid.so.1
    libcrypt.so.2 => /usr/lib/libcrypt.so.2
    libc.so.6 => /usr/lib/libc.so.6

https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#3 2023-08-15 21:40:11

debo
Member
Registered: 2019-06-06
Posts: 13

Re: Upgrade to perl-5.38.0: Breaks slapd

The main question I was asking was:

Shouldn't pacman automatically install any installed dynamic libraries into the cache?

Offline

#4 2023-08-15 21:42:26

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,288
Website

Re: Upgrade to perl-5.38.0: Breaks slapd

The openldap package was purposely rebuilt against perl 5.38 three weeks ago: https://gitlab.archlinux.org/archlinux/ … e20905eb41

It has since been updated to v2.6.6: https://gitlab.archlinux.org/archlinux/ … aa58a0668c

Smells like you're running partial updates.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2023-08-15 21:44:46

loqs
Member
Registered: 2014-03-06
Posts: 16,531

Re: Upgrade to perl-5.38.0: Breaks slapd

debo wrote:

The main question I was asking was:

Shouldn't pacman automatically install any installed dynamic libraries into the cache?

How is that relevant when it is not in the dynamic linkers search path and all supplied binaries such as slapd from the openldap package have RUNPATH set accordingly?

Last edited by loqs (2023-08-15 21:48:38)

Offline

#6 2023-08-15 21:48:47

debo
Member
Registered: 2019-06-06
Posts: 13

Re: Upgrade to perl-5.38.0: Breaks slapd

Smells like you're running partial updates.

No, I am not running partial updates, I always do pacman -Syu.

I will investigate further. Thank you.

Offline

#7 2023-08-15 21:50:57

loqs
Member
Registered: 2014-03-06
Posts: 16,531

Re: Upgrade to perl-5.38.0: Breaks slapd

Please provide the output of the following (lddtree needs pax-utils)

$ type -a slapd
$ lddtree /usr/bin/slapd
$ pacman -Qikk openldap perl

Plus whatever command you use that invokes slapd and its full output.

Last edited by loqs (2023-08-15 21:51:29)

Offline

#8 2023-08-15 23:00:07

debo
Member
Registered: 2019-06-06
Posts: 13

Re: Upgrade to perl-5.38.0: Breaks slapd

I have identified the problem. It is a build issue. Thank you for your help.

Offline

#9 2023-09-05 13:51:54

ivanbogomolov
Member
From: Russia
Registered: 2021-09-22
Posts: 7
Website

Re: Upgrade to perl-5.38.0: Breaks slapd

Have same issue but with vi

vi: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

Error did show after upgrade perl from 5.36 to 5.38
* my vi is vim , so after i removed vim and reinstall i got error

vim: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by vim)

then i did reinstall glibc (and lib32-glibc)  and it works now.

Last edited by ivanbogomolov (2023-09-05 14:01:44)


archlinux on dell latitude 3460 (intel-i5 16gb ddr3 1000gb ssd)
archlinux on dell g15 5510 (intel-i7 16gb ddr4 1000gb ssd nvidia geforce rtx 3050 Ti 4096 Mb)

Offline

#10 2023-09-05 17:38:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 10,702

Re: Upgrade to perl-5.38.0: Breaks slapd

ivanbogomolov wrote:

Have same issue but with vi

vi: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

Error did show after upgrade perl from 5.36 to 5.38
* my vi is vim , so after i removed vim and reinstall i got error

vim: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by vim)

then i did reinstall glibc (and lib32-glibc)  and it works now.

This all adds up to you doing partial updates. Stop! Update the system fully and you won't have these problems.

Online

#11 2023-09-06 08:15:00

ivanbogomolov
Member
From: Russia
Registered: 2021-09-22
Posts: 7
Website

Re: Upgrade to perl-5.38.0: Breaks slapd

This all adds up to you doing partial updates. Stop! Update the system fully and you won't have these problems.

Yes. So I did full update ( pacman -Syu ) after these problems  and it works perfectly now.


archlinux on dell latitude 3460 (intel-i5 16gb ddr3 1000gb ssd)
archlinux on dell g15 5510 (intel-i7 16gb ddr4 1000gb ssd nvidia geforce rtx 3050 Ti 4096 Mb)

Offline

Board footer

Powered by FluxBB