<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: &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;regex-base &gt;= 0.80, base &gt;= 2.0</font>
<br><font size=2 face="sans-serif">+Build-Depends: &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;regex-base &gt;= 0.80, base &gt;= 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: &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;-Wall -Werror -O2</font>
<br><font size=2 face="sans-serif">+GHC-Options: &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;-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: &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; include</font>
<br><font size=2 face="sans-serif">+Include-Dirs: &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; include/regex</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif">&nbsp;</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Chris Kuklewicz &lt;haskell@list.mightyreason.com&gt;</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, &quot;cvs-ghc@haskell.org&quot;
&lt;cvs-ghc@haskell.org&gt;</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 &gt;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>
&gt; <br>
&gt; I'm trying to compile regex-posix on ghc 6.7. (Ultimate goal: happs
on<br>
&gt; 6.7).<br>
<br>
I have not explored ghc 6.7. &nbsp;You should also try posting on the<br>
&lt;glasgow-haskell-users@haskell.org&gt; mailing list.<br>
<br>
&gt; <br>
&gt; First, I patched by changing the cabal file to be compatible with
the<br>
&gt; new libraries broken out of base. I also had to add HsRegexPosixConfig.h<br>
&gt; to include/regex (I just copied it from somewhere else on my hard
drive<br>
&gt; where I guess it had been put by an earlier regex-posix install, I
don't<br>
&gt; know if it's compatible here but at least it permitted things to compile<br>
&gt; 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>
&gt; #ifdef HAVE_REGEX_H<br>
&gt; #define HAVE_REGCOMP 1<br>
&gt; #else<br>
&gt; #ifndef __NHC__<br>
&gt; #include &quot;HsRegexPosixConfig.h&quot;<br>
&gt; #else<br>
&gt; #define HAVE_REGEX_H 1<br>
&gt; #define HAVE_REGCOMP 1<br>
&gt; #endif<br>
&gt; #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.
&nbsp;The<br>
regex-base.cabal file says:<br>
&quot;CC-Options: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -DHAVE_REGEX_H&quot;<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 &quot;regex.h&quot;<br>
<br>
&gt; Setup.hs build -v3 had a lot of warnings but didn't seem to fail.<br>
&gt; However, Setup.hs install -v3 didn't work.<br>
<br>
You might try to change the cabal file. &nbsp;Currently I think it is<br>
&quot;GHC-Options: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-Wall -Werror
-O2&quot;<br>
and remove -Werror<br>
&quot;GHC-Options: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-Wall -O2&quot;<br>
<br>
And you can change the cabal &quot;Include-Dirs&quot; to point to wherever
it will find<br>
&quot;regex.h&quot;<br>
<br>
&gt; the problem in build seems to occur around &quot;upsweep partially
failed or<br>
&gt; main not exported&quot;...<br>
<br>
That means nothing to me.<br>
<br>
&gt; <br>
&gt; [6 of 6] Compiling Text.Regex.Posix ( Text/Regex/Posix.hs,<br>
&gt; dist/build/Text/Regex/Posix.o )<br>
&gt; *** Parser:<br>
&gt; *** Renamer/typechecker:<br>
&gt; <br>
&gt; Text/Regex/Posix.hs:57:2:<br>
&gt; &nbsp; &nbsp; Warning: The export item `module Text.Regex.Posix.String'
exports<br>
&gt; nothing<br>
&gt; <br>
&gt; Text/Regex/Posix.hs:59:2:<br>
&gt; &nbsp; &nbsp; Warning: The export item `module Text.Regex.Posix.Sequence'
exports<br>
&gt; nothing<br>
&gt; <br>
&gt; Text/Regex/Posix.hs:61:2:<br>
&gt; &nbsp; &nbsp; Warning: The export item `module Text.Regex.Posix.ByteString'<br>
&gt; exports nothing<br>
&gt; <br>
&gt; Text/Regex/Posix.hs:63:2:<br>
&gt; &nbsp; &nbsp; Warning: The export item `module Text.Regex.Posix.ByteString.Lazy'<br>
&gt; exports nothing<br>
<br>
Those warning are slightly bogus. &nbsp;Including the module should export
the instances.<br>
<br>
&gt; *** Deleting temp files:<br>
&gt; Deleting: /tmp/ghc9618_0/ghc9618_0.s<br>
&gt; Warning: deleting non-existent /tmp/ghc9618_0/ghc9618_0.s<br>
&gt; Upsweep partially successful.<br>
&gt; *** Deleting temp files:<br>
&gt; Deleting:<br>
&gt; link(batch): upsweep (partially) failed OR<br>
&gt; &nbsp; &nbsp;Main.main not exported; not linking.<br>
&gt; *** Deleting temp files:<br>
&gt; Deleting:<br>
&gt; *** Deleting temp dirs:<br>
&gt; Deleting: /tmp/ghc9618_0<br>
&gt; <br>
&gt; complete output (along with patch) is attached.<br>
<br>
&gt; <br>
&gt; I'd appreciate any advice.<br>
&gt; <br>
&gt; best, thomas.<br>
&gt; <br>
&gt; <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>