-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open linker script files #107
Comments
Hi what are you struggling to open? |
I'm so sorry, I accidentally hit enter when I'd only just started creating the ticket! I was hoping I'd be able to fill in the details before anyone noticed. Anyway, I've updated the subject and I'll send a few other details over in a minute. |
This maybe isn't probably isn't the best approach, but it will allow `Fiddle::Terminfo.curses_dl` to work. I documented more details about this in an issue on fiddle: ruby/fiddle#107 It is probably better to deal with it there. But this is workaround is simpler. FYI: `reline` itself seems to be working just fine for me _without_ loading ncurses. But I wanted to be able to use `Reline::Terminfo` for my own projects. :)
Thanks for your report. I've added support for linker script only on Linux for now. |
Excellent, thanks! |
This maybe isn't probably isn't the best approach, but it will allow `Fiddle::Terminfo.curses_dl` to work. I documented more details about this in an issue on fiddle: ruby/fiddle#107 It is probably better to deal with it there. But this is workaround is simpler. FYI: `reline` itself seems to be working just fine for me _without_ loading ncurses. But I wanted to be able to use `Reline::Terminfo` for my own projects. :) ruby/reline@fd4bdb35e2
This maybe isn't probably isn't the best approach, but it will allow `Fiddle::Terminfo.curses_dl` to work. I documented more details about this in an issue on fiddle: ruby/fiddle#107 It is probably better to deal with it there. But this is workaround is simpler. FYI: `reline` itself seems to be working just fine for me _without_ loading ncurses. But I wanted to be able to use `Reline::Terminfo` for my own projects. :) ruby/reline@fd4bdb35e2
GitHub: fix ruby/fiddle#107 Reported by nicholas a. evans. Thanks!!! ruby/fiddle@49ea1490df
GitHub: fix ruby/fiddle#107 Reported by nicholas a. evans. Thanks!!! ruby/fiddle@49ea1490df
GitHub: fix ruby/fiddle#107 Reported by nicholas a. evans. Thanks!!! ruby/fiddle@49ea1490df
On my Ubuntu 21.10 installation, several shared libraries .so files are installed as linker scripts instead of using a symlink. In my research, I see that this is done (or has been done) in Debian, CentOS, Fedora, RHEL, Gentoo, and maybe Arch (I didn't personally verify the last two). This shouldn't a big deal if you link with GNU
ld
, but it breaksdlopen
.I found workarounds in the ffi gem and in ghc, and perhaps one of those could be copied into fiddle.
A workaround for users of
fiddle
might be to attempt to load a specific version of the library:The text was updated successfully, but these errors were encountered: