Bug 578509 - Some .so files are plain text files; cannot be loaded
Summary: Some .so files are plain text files; cannot be loaded
Alias: None
Product: Fedora
Classification: Fedora
Component: ncurses
Version: 13
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-03-31 13:59 UTC by Robin Green
Modified: 2010-03-31 18:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-03-31 18:12:57 UTC
Type: ---

Attachments (Terms of Use)

Description Robin Green 2010-03-31 13:59:29 UTC
Description of problem:
ghci (from package ghc) tries to dynamically load the file /usr/lib/libncursesw.so when compiling a certain package, and fails with the error message:

Loading package terminfo- ... <command line>: can't load .so/.DLL for: ncursesw (/usr/lib/libncursesw.so: file too short)

It turns out that this file is a plain text file. I thought .so files were supposed to be binaries?

Version-Release number of selected component (if applicable):

Comment 1 Miroslav Lichvar 2010-03-31 14:34:50 UTC
The libncursesw.so symlink was replaced recently with a linker script to help packages link correctly with libncurses since the linker is now using --no-add-needed by default.

Going back would probably mean patching tens of packages.

Could be ghci modified to try to load libncursesw.so.5 instead?

Comment 2 Robin Green 2010-03-31 18:12:57 UTC
I discovered ghci has been fixed upstream to do the right thing. Thanks - sorry for the bogus bug report.

Note You need to log in before you can comment on or make changes to this bug.