[GHC] #2615: ghci doesn't play nice with linker scripts

GHC cvs-ghc at haskell.org
Wed May 4 15:00:33 CEST 2011


#2615: ghci doesn't play nice with linker scripts
------------------------------------------+---------------------------------
  Reporter:  AlecBerryman                 |          Owner:                         
      Type:  bug                          |         Status:  new                    
  Priority:  high                         |      Milestone:  6.12.3                 
 Component:  GHCi                         |        Version:  6.10.1                 
Resolution:                               |       Keywords:  dlopen, dynamic linking
  Testcase:                               |      Blockedby:                         
Difficulty:  Unknown                      |             Os:  Linux                  
  Blocking:                               |   Architecture:  Unknown/Multiple       
   Failure:  Incorrect result at runtime  |  
------------------------------------------+---------------------------------
Changes (by greenrd):

  * owner:  igloo =>
  * status:  closed => new
  * resolution:  fixed =>


Comment:

 This still doesn't work for me with ghc 7.0.2 on Fedora 15.

 The file /usr/lib/libncursesw.so contained the text
 INPUT(libncursesw.so.5 -ltinfo)

 ghc gave the error "file too short". I know this bug has recently been
 fixed, so I tried to make the linker produce the other error message,
 "invalid ELF header", by adding lots of newlines onto the end of the file.
 It does change the error message:

 Loading package terminfo-0.3.1.3 ... <command line>: can't load .so/.DLL
 for: ncursesw (/usr/lib/libncursesw.so: invalid ELF header)

 but ghc doesn't pick up on the error message and do the right thing.

 I think this error arises from an attempt to use Template Haskell, rather
 than ghci - could this be relevant?

 Or did my newlines mess it up somehow?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2615#comment:27>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list