I had this problem in the past and solved it by installing the latest
version of regex-posix. The older version doesn't always detect when
the platform has the regex C library. I think it's a Cygwin/MSYS
problem.

On Thu, Jan 27, 2011 at 12:25 PM, Simon Peyton-Jones
<[email protected]> wrote:
> Being an eager Haskell Platform user, I tried ‘cabal install lhs2TeX’. It
> was looking good, but fell over with an obscure link error. Should this ever
> happen?
>
>
>
> Simon
>
>
>
> cabal install lhs2TeX
>
> Resolving dependencies...
>
> Downloading lhs2tex-1.16...
>
> [1 of 1] Compiling Main             (
> C:\Users\simonpj\AppData\Local\Temp\lhs2tex-1.167840\lhs2tex-1.16\Setup.hs,
> C:\Users\simonpj\AppData\Local\Temp\lhs2tex-1.167840\lhs2tex-1.16\dist\setup\Main.o
> )
>
> Linking
> C:\Users\simonpj\AppData\Local\Temp\lhs2tex-1.167840\lhs2tex-1.16\dist\setup\setup.exe
> ...
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x493):
> undefined reference to `regerror'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x4e7):
> undefined reference to `regerror'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x158d):
> undefined reference to `regcomp'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x15a9):
> undefined reference to `regfree'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x1787):
> undefined reference to `regexec'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x1cff):
> undefined reference to `regexec'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x1e6a):
> undefined reference to `regexec'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x3f17):
> undefined reference to `regexec'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x44a1):
> undefined reference to `regexec'
>
> C:\fp\HP-2010.2.0.0\lib\extralibs\regex-posix-0.94.2\ghc-6.12.3/libHSregex-posix-0.94.2.a(Wrap.o):fake:(.text+0x44fa):
> more undefined references to `regexec' follow
>
> collect2: ld returned 1 exit status
>
> cabal.exe: Error: some packages failed to install:
>
> lhs2tex-1.16 failed during the configure step. The exception was:
>
> ExitFailure 1
>
> bash-3.1$
>
> _______________________________________________
> Cvs-ghc mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>
>

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to