Bug 578509

Summary: Some .so files are plain text files; cannot be loaded
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: ncursesAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: mlichvar, roland
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-31 18:12:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.