fcgi.so: undefined symbol: rb_secure

Bug #1996232 reported by Michael Cardillo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ruby-fcgi (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu release: 22.04
Package Version: 0.9.2.1-2build6
Expected behavior: No error message when using "require 'fcgi'"
Actual behavior:

irb(main):003:0> require 'fcgi'
Your FCGI gem does not contain the FCGI shared library, running pure ruby instead
=> true

irb(main):004:0> require 'fcgi.so'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': /usr/lib/aarch64-linux-gnu/ruby/vendor_ruby/3.0.0/fcgi.so: undefined symbol: rb_secure - /usr/lib/aarch64-linux-gnu/ruby/vendor_ruby/3.0.0/fcgi.so (LoadError)
        from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from (irb):4:in `<main>'
        from /usr/lib/ruby/gems/3.0.0/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
        from /usr/bin/irb:23:in `load'
        from /usr/bin/irb:23:in `<main>'

Root cause: rb_secure is not available in Ruby 3.0+

Proposed fix:
Place guards around rb_secure calls, similar to this FreeBSD patch.
https://cgit.freebsd.org/ports/commit/?id=d82f8cc4f0c6dae23e41880fe66e7b6df6c36e8b

Revision history for this message
Michael Cardillo (mcardillo55) wrote :

This is also resolved in upstream version 0.9.2.2.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.