<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>When trying to build Cyrus IMAP v2.3.10 on a Solaris 9 system,
I get the following error:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>gmake[1]: Entering
directory `/usr/local/src/cyrus/cyrus-imapd-2.3.10/sieve'<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>../com_err/et/compile_et
./sieve_err.et<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>gcc -c -I..
-I./../lib -I../com_err/et -I/usr/local/BerkeleyDB.4.4/include
-I/usr/local/ssl/include -I/usr/local/include -DHAVE_CONFIG_H -g
-O2 \<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>sieve_err.c<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>gcc -c -I..
-I./../lib -I../com_err/et -I/usr/local/BerkeleyDB.4.4/include
-I/usr/local/ssl/include -I/usr/local/include -DHAVE_CONFIG_H -g
-O2 \<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>sieve.c<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>In file included
from comparator.h:33,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>
from sieve.y:38:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>/usr/local/include/pcreposix.h:110:
error: syntax error before "int"<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>/usr/local/include/pcreposix.h:111:
error: syntax error before "int"<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>/usr/local/include/pcreposix.h:113:
error: syntax error before "size_t"<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>/usr/local/include/pcreposix.h:114:
error: syntax error before "void"<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>gmake[1]: ***
[sieve.o] Error 1<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>gmake[1]: Leaving
directory `/usr/local/src/cyrus/cyrus-imapd-2.3.10/sieve'<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>gmake: *** [all]
Error 1<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>There are some definitions in pcreposix.h that depend on
some #define’s in pcre.h, but pcre.h isn’t #include’d
anywhere. Here are some relevant lines from the configure step:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>checking pcreposix.h
usability... no<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>checking pcreposix.h
presence... yes<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure: WARNING:
pcreposix.h: present but cannot be compiled<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure: WARNING:
pcreposix.h: check for missing prerequisite headers?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure: WARNING:
pcreposix.h: see the Autoconf documentation<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure: WARNING:
pcreposix.h: section "Present But Cannot Be
Compiled"<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure: WARNING:
pcreposix.h: proceeding with the preprocessor's result<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure: WARNING:
pcreposix.h: in the future, the compiler will take precedence<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure:
WARNING: ## ------------------------------------------
##<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure:
WARNING: ## Report this to the AC_PACKAGE_NAME
lists. ##<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>configure: WARNING: ##
------------------------------------------ ##<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>checking for
pcreposix.h... yes</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>So the configure script finds that pcreposix.h is unusable,
but uses it anyway.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The build works fine on a different Solaris 9 system that
doesn’t have pcre installed. Is there a fix for this problem,
preferable one that doesn’t involve hacking code? Is there a config
option to pretend pcreposix.h doesn’t exist?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks, Larry<o:p></o:p></p>
</div>
</body>
</html>