[Haskell-cafe] Re: Compiling regex-posix-0.93.2 on windows

Chris Kuklewicz haskell at list.mightyreason.com
Fri Oct 17 18:33:08 EDT 2008


I am not sure what is going wrong.  I have not been using Haskell on windows.  I 
am also copying this reply to haskell-cafe and libaries mailing lists.  Does 
anyone know?

Parnell Flynn wrote:
> I am having a terrible time compiling the 0.93.2 version of the 
> regex-posix library on windows XP.
> 
> I have Cygwin and MinGW installed and I have a version of the regex.h 
> header in C:/cygwin/usr/include what shared libraries do I need?
> 
> Here is a copy of the error it finds the include but is unable to link.
> 
> This links to the standard c library version of regular expressions.
> 
> The corresponding c header file is regex.h and there is a chance you
> 
> will need to edit the end of the regex-posix.cabal file to find the
> 
> include directory and/or library.
> 
> Preprocessing library regex-posix-0.93.2...
> 
> dist/build/Text/Regex/Posix/Wrap_hsc_make.o(.text+0x85):Wrap_hsc_make.c: 
> undefined reference to `_impure_ptr'
> 
> dist/build/Text/Regex/Posix/Wrap_hsc_make.o(.text+0xc9):Wrap_hsc_make.c: 
> undefined reference to `_impure_ptr'
> 
> dist/build/Text/Regex/Posix/Wrap_hsc_make.o(.text+0xf1):Wrap_hsc_make.c: 
> undefined reference to `_impure_ptr'
> 
> dist/build/Text/Regex/Posix/Wrap_hsc_make.o(.text+0x125):Wrap_hsc_make.c: 
> undefined reference to `_impure_ptr'
> 
> dist/build/Text/Regex/Posix/Wrap_hsc_make.o(.text+0x159):Wrap_hsc_make.c: 
> undefined reference to `_impure_ptr'
> 
> dist/build/Text/Regex/Posix/Wrap_hsc_make.o(.text+0x18d):Wrap_hsc_make.c: 
> more undefined references to `_impure_ptr' follow
> 
> collect2: ld returned 1 exit status
> 
> linking dist\build\Text\Regex\Posix\Wrap_hsc_make.o failed
> 
> command was: y:\ghc\ghc-6.8.2\bin\ghc.exe -optl-LC:/cygwin/lib 
> dist\build\Text\Regex\Posix\Wrap_hsc_make.o -o 
> dist\build\Text\Regex\Posix\Wrap_hsc_make.exe
> 
> bash-3.2$
> 
> Thanks,
> 
> Parnell
> 
> Parnell Flynn • 230 South Lasalle Street • Suite 400 • Chicago, IL 60604 
> • 312.244.5317 (o) •  parnell___.flynn at ronin-capital.com_ 
> <mailto:parnell.flynn at ronin-capital.com>
> 



More information about the Haskell-Cafe mailing list