fcgi.so: undefined symbol: rb_secure
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:
from <internal:
from (irb):4:in `<main>'
from /usr/lib/
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:/
This is also resolved in upstream version 0.9.2.2.