[haskeline] #121: Fail to link haskeline 0.7.0.x on Windows.

haskeline haskeline at projects.haskell.org
Wed Jul 25 17:06:23 BST 2012


#121: Fail to link haskeline 0.7.0.x on Windows.
---------------------+------------------------------------------------------
Reporter:  shelarcy  |       Owner:         
    Type:  defect    |      Status:  new    
Priority:  major     |   Milestone:         
 Version:            |    Keywords:  Windows
---------------------+------------------------------------------------------
 System.Console.Haskeline.History module depends on
 System.Console.Haskeline.Backend.Posix.Recover module even though Windows.

 http://hackage.haskell.org/packages/archive/haskeline/0.7.0.0/doc/html/src
 /System-Console-Haskeline-History.html#line-35

 But only unix environment specify as the Other-modules to
 System.Console.Haskeline.Backend.Posix.Recover in .cabal file. Windows
 environment doesn't specify  as the Other-modules to that in .cabal file.

 http://hackage.haskell.org/packages/archive/haskeline/0.7.0.1/haskeline.cabal

 So, GHC fail to link System.Console.Haskeline.Backend.Posix.Recover
 modules' symbol when building program on Windows.

 {{{
 C:\home\haskeline-0.7.0.1\examples> ghc -O2 Test.hs
 [1 of 1] Compiling Main             ( Test.hs, Test.o )
 Linking Test.exe ...
 C:\Users\shelarcy\AppData\Roaming\cabal\haskeline-0.7.0.1\ghc-7.4.1/libHShaskeli
 ne-0.7.0.1.a(History__24.o):fake:(.data+0x8): undefined reference to
 `haskelinez
 m0zi7zi0zi1_SystemziConsoleziHaskelineziBackendziPosixziRecover_transliterateFai
 lure2_closure'
 C:\Users\shelarcy\AppData\Roaming\cabal\haskeline-0.7.0.1\ghc-7.4.1/libHShaskeli
 ne-0.7.0.1.a(History__26.o):fake:(.data+0x8): undefined reference to
 `haskelinez
 m0zi7zi0zi1_SystemziConsoleziHaskelineziBackendziPosixziRecover_transliterateFai
 lure1_closure'
 collect2: ld returned 1 exit status
 }}}

-- 
Ticket URL: <http://trac.haskell.org/haskeline/ticket/121>
haskeline <http://example.org/>
My example project


More information about the Haskeline mailing list