Hi Aaron,
Thanks for the response.
Here is the 32bit and 64bit output (the gems we are running require the 32bit version of ruby, but the errors happen with both 32 and 64bit):
# dump -H /opt/freeware/lib/ruby/3.4/digest.so
/opt/freeware/lib/ruby/3.4/digest.so:
***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x0000003d 0x000000b2 0x0000004f
#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000004 0x00000e30 0x00000475 0x00000e7f
***Import File Strings***
INDEX PATH BASE MEMBER
0 /opt/freeware/lib:/usr/lib:/lib
1 libruby.so
2 libc.a shr.o
3 libgcc_s.a shr.o
# dump -H -X64 /opt/freeware/lib64/ruby/3.4/digest.so
/opt/freeware/lib64/ruby/3.4/digest.so:
***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x0000003d 0x000000b2 0x00000066
#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000004 0x00001110 0x00000496 0x00001176
***Import File Strings***
INDEX PATH BASE MEMBER
0 /opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib
1 libruby.so
2 libc.a shr_64.o
3 libgcc_s.a shr.o
Regards,
Alan
------------------------------
Alan
------------------------------
Original Message:
Sent: Thu October 09, 2025 02:08 AM
From: Aaron Kramer
Subject: Ruby 3.4.4 in the toolbox no longer works with digest/sha1
might be a build issue, whats the output for: dump -H /path/to/digest.so ?
------------------------------
Aaron Kramer
Original Message:
Sent: Thu October 09, 2025 12:39 AM
From: Alan
Subject: Ruby 3.4.4 in the toolbox no longer works with digest/sha1
I am upgrading our ruby to the latest version in the toolbox, from 3.3.7 to 3.4.4.
We have some ruby gems installed that use "digest/sha1" (even on the latest available gem version):
require 'digest/sha1'
On the older ruby version 3.3.7 from the toolbox this works (and the gems that use this also work)
# ruby -v
ruby 3.3.7 (2025-01-15 revision be31f993d7) [powerpc-aix7.1.0.0]
# ruby
require 'digest/sha1'
#
However when upgraded to the latest ruby 3.4.4 version from the toolbox this no longer works.
# ruby -v
ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [powerpc-aix7.1.0.0]
# ruby
require 'digest/sha1'
<internal:/opt/freeware/share/ruby/3.4/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require': rb_digest_wrap_metadata not found (LoadError)
from <internal:/opt/freeware/share/ruby/3.4/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from -:1:in '<main>'
#
It probably is not ideal to be using digest/sha1, but it is what the gems we are using require, and it should work? I don't believe the function is deprecated in ruby?
Any help appreciated - we can't upgrade to this ruby version right now as the gems we need to install do not work with it.
Thanks,
Alan
------------------------------
Alan
------------------------------