Oliver Rompcik <oliver <at> rompcik.de> writes:

> 
> Hi guys,
> 
> i got a problem with pkg_add and pkg_delete after release upgrade from 4.8
> to 4.9. This is the first problem afer a release upgrade since years (the
> machine started with 3.8 in 2005).
> 
> pkg_info:
> bash-4.1.7p0        GNU Bourne Again Shell
> bzip2-1.0.5         block-sorting file compressor, unencumbered
> curl-7.20.0         get files from FTP, Gopher, HTTP or HTTPS servers
> gettext-0.18.1      GNU gettext
> gnupg-1.4.10p0      GNU privacy guard - a free PGP replacement
> libiconv-1.13p1     character set conversion library
> libidn-1.11         internationalized string handling
> p5-Digest-HMAC-1.02 interface to HMAC Message-Digest Algorithms
> p5-Digest-SHA1-2.12 module to calculate SHA1 digests
> p5-Net-DNS-0.65     module to interface the DNS resolver
> p5-Net-IP-1.25p0    perl module for IPv4/IPv6 address parsing
> pcre-8.02p1         perl-compatible regular expression library
> postfix-2.7.1       fast, secure sendmail replacement
> unzip-6.0           extract, list & test files in a ZIP archive
> wget-1.12p0         retrieve files from the web via HTTP, HTTPS and FTP
> 
> pkg_add -ui:
> Fatal error: can't parse  object version 5.47 does not match bootstrap
> parameter %_ at /usr/libdata/perl5/i386-openbsd/5.12.2/DynaLoader.pm line
> 223, <$fh> line 6.
> Compilation failed in require at /usr/libdata/perl5/OpenBSD/md5.pm line
> 114, <$fh> line 6.
> BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/md5.pm
> line 114, <$fh> line 6.
> Compilation failed in require at
> /usr/libdata/perl5/OpenBSD/PackingElement.pm line 706, <$fh> line 6, in
> SCALAR(0x85430780),  at /usr/libdata/perl5/OpenBSD/PackingList.pm line
> 355, <$fh> line 6.
> 
> Same with pkg_delete.
> 
> Help appreciated.
> 
> Yours,
> O. Rompcik
> 
> 

Hi Oliver,

I got the same error after upgrading OpenBSD from 4.8 to 4.9 and I'm a Perl noob
so it seemed daunting. Luckily I figured out that the problem is with the
Digest:SHA 5.47 binaries.

Like I said, I'm a Perl noob so these steps may not be the best or quickest
solution but they worked and they don't seem to be too hackish to me.

I downloaded Digest::SHA 5.47 from CPAN
(http://search.cpan.org/CPAN/authors/id/M/MS/MSHELOR/Digest-SHA-5.47.tar.gz) and
compiled it following its instructions.

  perl Makefile.PL
  make
  make test
  make install

This installs into /usr/libdata/perl5/i386-openbsd/5.12.2/auto/Digest/SHA but
that didn't solve the problem yet because the key was the next step. Since I
don't understand Perl I don't know why this is but it keeps a cache of binaries
in /usr/local so those have to be overwritten with the new ones.

Go to the directory you extracted the Digest::SHA file.

  cd blib/arch/auto/Digest/SHA
  cp * /usr/local/libdata/perl5/site_perl/i386-openbsd/auto/Digest/SHA

That did it for me. Good luck!


Steve Currie

Reply via email to