blackwinter / ruby-filemagic

Ruby bindings to the magic(4) library, revised.
https://blackwinter.github.iom/ruby-filemagic
146 stars 34 forks source link

warning: undefining the allocator of T_DATA class FileMagic #47

Open Lykos opened 6 months ago

Lykos commented 6 months ago

I recently updated from Ruby 3.0.2 to 3.3.0 and I started getting the following warning at the line where I call FileMatic.new:

warning: undefining the allocator of T_DATA class FileMagic

I googled it but didn't find anything useful about this error message. Good luck!

Lykos commented 6 months ago

I just found out that #46 seems to fix this.

tomtt commented 6 months ago

I am also encountering this same issue and for #46 it seems there is still some open question whether it is a proper solution. Would be good to see a fix of this.