On 2025/08/15 11:47, Sidharth Seela wrote:
> >Synopsis: 'resize' gives ld error for not finding libc.so.101.0
> >Category: Library
> >Environment:
> System      : OpenBSD 7.7
> Details     : OpenBSD 7.7-current (GENERIC) #6: Tue Aug 12 04:08:33 MDT 2025
> dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC
> 
> Architecture: OpenBSD.armv7
> Machine     : armv7, TI Beaglebone black (SDMMC w/ Ethernet)
> >Description:
> On calling the resize utility, an 'ld' error message shows up 
>     $ resize
>     ld.so: resize: can't load library 'libc.so.101.0'
>     Killed
>     $
> >How-To-Repeat:
> Install OpenBSD 7.7 on the system from releases page, and type resize in the 
> terminal.

That is not 7.7, it is a developer snapshot.

On slower machine architectures like this, I strongly recommend sticking
to releases unless you are actively developing OpenBSD. Snapshot package
builds take several weeks so there is a long window between a library
being bumped in the base OS and packages getting into sync.

> >Fix:
> Permanent Fix-> resize needs to be recompiled with libc.so.102 as dependency. 
> As /usr/lib has
> 'libc.so.102.0' in it.

This is part of xbase; sometimes (especially on slow archs) updated base
*.tgz are made available before xenocara builds are finished. If you
want to avoid that situation, check file timestamps in the snapshots
dir and make sure xbase is newer than base.

> Shallow Fix-> create a copy of libc.so.102.0 and name it as libc.so.101.so. 
> This I have tried
> and tested to be working

Not generally recommended as they are incompatible. If it breaks you get
to keep both pieces.

Reply via email to