<br><font size=2 face="sans-serif">I darcs pulled cabal head to get latest
cabal, removed -Werror from GHC-Options in the cabal file, removed HsRegexPosixConfig.h
and tried again with the same result.</font>
<br>
<br><font size=2 face="sans-serif">It seems to really want that file. With,
it installs, without, no install.</font>
<br>
<br><font size=2 face="sans-serif">$ darcs whatsnew</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">hunk ./regex-posix.cabal 16</font>
<br><font size=2 face="sans-serif">-Build-Depends:
regex-base >= 0.80, base >= 2.0</font>
<br><font size=2 face="sans-serif">+Build-Depends:
regex-base >= 0.80, base >= 2.0, array, containers,
byt</font>
<br><font size=2 face="sans-serif">estring</font>
<br><font size=2 face="sans-serif">hunk ./regex-posix.cabal 32</font>
<br><font size=2 face="sans-serif">-GHC-Options:
-Wall -Werror -O2</font>
<br><font size=2 face="sans-serif">+GHC-Options:
-Wall -O2</font>
<br><font size=2 face="sans-serif">hunk ./regex-posix.cabal 43</font>
<br><font size=2 face="sans-serif">-Include-Dirs:
include</font>
<br><font size=2 face="sans-serif">+Include-Dirs:
include/regex</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif"> </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Chris Kuklewicz <haskell@list.mightyreason.com></b>
</font>
<p><font size=1 face="sans-serif">08/30/2007 12:34 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Thomas Hartman/ext/dbcom@DBAmericas</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">haskell-cafe@haskell.org, "cvs-ghc@haskell.org"
<cvs-ghc@haskell.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: trouble compiling regex posix head
(I think >0.92) on ghc 6.7</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Thomas Hartman wrote:<br>
> <br>
> I'm trying to compile regex-posix on ghc 6.7. (Ultimate goal: happs
on<br>
> 6.7).<br>
<br>
I have not explored ghc 6.7. You should also try posting on the<br>
<glasgow-haskell-users@haskell.org> mailing list.<br>
<br>
> <br>
> First, I patched by changing the cabal file to be compatible with
the<br>
> new libraries broken out of base. I also had to add HsRegexPosixConfig.h<br>
> to include/regex (I just copied it from somewhere else on my hard
drive<br>
> where I guess it had been put by an earlier regex-posix install, I
don't<br>
> know if it's compatible here but at least it permitted things to compile<br>
> further.)<br>
<br>
I had no idea what HsRegexPosixConfig was, and I have no such file at all.<br>
So I looked in Wrap.hsc and found:<br>
<br>
> #ifdef HAVE_REGEX_H<br>
> #define HAVE_REGCOMP 1<br>
> #else<br>
> #ifndef __NHC__<br>
> #include "HsRegexPosixConfig.h"<br>
> #else<br>
> #define HAVE_REGEX_H 1<br>
> #define HAVE_REGCOMP 1<br>
> #endif<br>
> #endif<br>
<br>
Note that I did not write that section -- that was added by someone else.<br>
<br>
So HsRegexPosixConfig.h should only matter if HAVE_REGEX_H is undefined.
The<br>
regex-base.cabal file says:<br>
"CC-Options: -DHAVE_REGEX_H"<br>
So unless Cabal is having a very very bad day, I assume that<br>
HsRegexPosixConfig.h is never needed.<br>
<br>
That it matters to your build to have that file seems _wrong_ to me.<br>
<br>
The only header file it should need is "regex.h"<br>
<br>
> Setup.hs build -v3 had a lot of warnings but didn't seem to fail.<br>
> However, Setup.hs install -v3 didn't work.<br>
<br>
You might try to change the cabal file. Currently I think it is<br>
"GHC-Options: -Wall -Werror
-O2"<br>
and remove -Werror<br>
"GHC-Options: -Wall -O2"<br>
<br>
And you can change the cabal "Include-Dirs" to point to wherever
it will find<br>
"regex.h"<br>
<br>
> the problem in build seems to occur around "upsweep partially
failed or<br>
> main not exported"...<br>
<br>
That means nothing to me.<br>
<br>
> <br>
> [6 of 6] Compiling Text.Regex.Posix ( Text/Regex/Posix.hs,<br>
> dist/build/Text/Regex/Posix.o )<br>
> *** Parser:<br>
> *** Renamer/typechecker:<br>
> <br>
> Text/Regex/Posix.hs:57:2:<br>
> Warning: The export item `module Text.Regex.Posix.String'
exports<br>
> nothing<br>
> <br>
> Text/Regex/Posix.hs:59:2:<br>
> Warning: The export item `module Text.Regex.Posix.Sequence'
exports<br>
> nothing<br>
> <br>
> Text/Regex/Posix.hs:61:2:<br>
> Warning: The export item `module Text.Regex.Posix.ByteString'<br>
> exports nothing<br>
> <br>
> Text/Regex/Posix.hs:63:2:<br>
> Warning: The export item `module Text.Regex.Posix.ByteString.Lazy'<br>
> exports nothing<br>
<br>
Those warning are slightly bogus. Including the module should export
the instances.<br>
<br>
> *** Deleting temp files:<br>
> Deleting: /tmp/ghc9618_0/ghc9618_0.s<br>
> Warning: deleting non-existent /tmp/ghc9618_0/ghc9618_0.s<br>
> Upsweep partially successful.<br>
> *** Deleting temp files:<br>
> Deleting:<br>
> link(batch): upsweep (partially) failed OR<br>
> Main.main not exported; not linking.<br>
> *** Deleting temp files:<br>
> Deleting:<br>
> *** Deleting temp dirs:<br>
> Deleting: /tmp/ghc9618_0<br>
> <br>
> complete output (along with patch) is attached.<br>
<br>
> <br>
> I'd appreciate any advice.<br>
> <br>
> best, thomas.<br>
> <br>
> <br>
<br>
</font></tt>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">---</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">This e-mail may contain confidential and/or privileged information. If you </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">are not the intended recipient (or have received this e-mail in error) </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">please notify the sender immediately and destroy this e-mail. Any </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">unauthorized copying, disclosure or distribution of the material in this </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">e-mail is strictly forbidden.</span><br>