Bug 578509 - Some .so files are plain text files; cannot be loaded
Summary: Some .so files are plain text files; cannot be loaded
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ncurses
Version: 13
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2010-03-31 18:12:57 UTC
Type: ---
Embargoed:


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-0.3.1.1 ... <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):
ncurses-devel-5.7-7.20100130.fc13.i686

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.