I'm trying to compile regex-posix on
ghc 6.7. (Ultimate goal: happs on 6.7).
First, I patched by changing the cabal
file to be compatible with the new libraries broken out of base. I also
had to add HsRegexPosixConfig.h to include/regex (I just copied it from
somewhere else on my hard drive where I guess it had been put by an earlier
regex-posix install, I don't know if it's compatible here but at least
it permitted things to compile further.)
Setup.hs build -v3 had a lot of warnigs but didn't seem to fail. However,
Setup.hs install -v3 didn't work.
the problem in build seems to occur around "upsweep
partially failed or main not exported"...
[6 of 6] Compiling Text.Regex.Posix
( Text/Regex/Posix.hs, dist/build/Text/Regex/Posix.o )
*** Parser:
*** Renamer/typechecker:
Text/Regex/Posix.hs:57:2:
Warning: The export item
`module Text.Regex.Posix.String' exports nothing
Text/Regex/Posix.hs:59:2:
Warning: The export item
`module Text.Regex.Posix.Sequence' exports nothing
Text/Regex/Posix.hs:61:2:
Warning: The export item
`module Text.Regex.Posix.ByteString' exports nothing
Text/Regex/Posix.hs:63:2:
Warning: The export item
`module Text.Regex.Posix.ByteString.Lazy' exports nothing
*** Deleting temp files:
Deleting: /tmp/ghc9618_0/ghc9618_0.s
Warning: deleting non-existent /tmp/ghc9618_0/ghc9618_0.s
Upsweep partially successful.
*** Deleting temp files:
Deleting:
link(batch): upsweep (partially) failed
OR
Main.main not exported;
not linking.
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting: /tmp/ghc9618_0
complete output (along with patch) is attached.
I'd appreciate any advice.
best, thomas.
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.