Re: Strange "/usr/share/relink/usr/lib/libcrypto.so.57.1.a" is not a valid archive seen at boot

Dennis Clarke <[email protected]> Mon, 16 Mar 2026 16:45:33 -0400
Newsgroups gmane.os.openbsd.sparc
Organization GENUNIX
Message-ID <[email protected]>
On 3/16/26 10:53, Theo de Raadt wrote:
>> starting network
>> reordering: ld.so libcar:
>> /usr/share/relink/usr/lib/libcrypto.so.57.1.a is not a valid archive
>> libcrypto/etc/rc[501]: .ldadd: No such file or directoryasn1_item.so:
>> In function
>> `asn1_item_set_algorithm_identifiers':/usr/src/lib/libcrypto/asn1/asn1_item.c:272:
> 
> [...]
> 
>          for _liba in $_relink/usr/libexec/ld.so.a $_libas; do
>                  _tmpdir=$(mktemp -dq $_relink/_rebuild.XXXXXXXXXXXX) &&
>                  (
>                  set -o errexit
>                  _install='install -F -o root -g bin -m 0444'
>                  _lib=${_liba##*/}
>                  _lib=${_lib%.a}
>                  _lib_dir=${_liba#$_relink}
>                  _lib_dir=${_lib_dir%/*}
>                  cd $_tmpdir
>                  ar x $_liba
>                  if [[ $_lib == ld.so ]]; then
>                          echo " $_lib"
>                          args="-g -x -e _dl_start \
> 
> 
> It is pretty weird that the errexit didn't trigger when ar x' failed to
> extract.
> 
> Is there a difference between binutils ar and clang ar?
> 

This is all I see available :

styx#
styx# uname -a
OpenBSD styx.bw.genunix.com 7.8 GENERIC.MP#83 sparc64
styx#
styx# which ar
/usr/bin/ar
styx# /usr/bin/ar --version
GNU ar 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
styx#




-- 
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken