Ticket #121 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Fail to link haskeline 0.7.0.x on Windows.

Reported by: shelarcy Owned by:
Priority: major Milestone:
Version: Keywords: Windows
Cc: shelarcy@…, tanaka.hideyuki@…

Description

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

Change History

Changed 2 years ago by tanakh

  • cc tanaka.hideyuki@… added

Changed 2 years ago by judah

  • status changed from new to closed
  • resolution set to fixed

Thanks for the report; apologies for the problem. I've released haskeline-0.7.0.2 which fixes this issue.

Note: See TracTickets for help on using tickets.