Ubuntu 24.04.2 undefined reference to `MD4'
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 2.3k
- Forks
- 293
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have successfully built and install rugged on Ubuntu 24.04.2 (in the OpenVox Puppet Ruby). However, there seems to be a linking issue with the OpenSSL MD4 function:
# ld /opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems/rugged-1.9.0/lib/rugged/rugged.so
ld: warning: cannot find entry symbol _start; not setting start address
ld: /opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems/rugged-1.9.0/lib/rugged/rugged.so: undefined reference to `MD4'
This causes the gem not to work.
Versions:
# openssl version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
# /opt/puppetlabs/puppet/bin/ruby --version
ruby 3.2.8 (2025-03-26 revision 13f495dc2c) [x86_64-linux]
# This is maybe not relevant since I am not using the system libgit2
# apt show libgit2-dev
Package: libgit2-dev
Version: 1.7.2+ds-1ubuntu3
...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the rugged gem link failure on Ubuntu 24.04.2 with the reported OpenSSL 3.0.13 and Ruby 3.2.8 versions, using the generated lib/rugged/rugged.so as the entry point. Inspect how the native extension is linked and verify that the undefined MD4 reference is resolved and the gem loads successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, ruby
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100