Cyrus IMAP 3.0.0 and Oracle Solaris/Compiler
Stefan Rapp
stefan.rapp at tu-dortmund.de
Thu Apr 6 03:03:36 EDT 2017
Am 05.04.2017 um 18:14 schrieb Jean-Christophe Delaye:
> On 05/04/17 15:38, Stefan Rapp wrote:
> What is your native compiler version ?
> (solarisstudio12.4 or developerstudio12.5)
I tried both compiler versions (12.4 and 12.5) and they showed the same
problems.
>> I still have 16 errors in the CUnit sieve checks, but this is identical
>> to 2.5.10. As the sieve scripts (seem to) work in our setup this could
>> be a problem of the checks ???
It was a problem of the check (cunit/sieve.testc). Solaris doesn't
support fmemopen and the replacement code fails (the assumptions about
the behavior of setbuffer are wrong on Solaris). In this special case
you can write into a temporary file and open it for reading afterwards:
/* works only for mode="r" */
#ifndef HAVE_FMEMOPEN
static FILE *fmemopen(const void *buf, size_t len, const char *mode)
{
FILE *fp;
char *fname = xstrdup("/tmp/cyrus-cunit-fmemopenXXXXXX");
int fd = mkstemp(fname);
retry_write(fd, buf, len);
close(fd);
fp = fopen(fname, mode);
unlink(fname);
free(fname);
return fp;
}
#endif
And then no more errors on the sieve checks :-)
Stefan
--
Stefan Rapp
TU Dortmund
IT & Medien Centrum
D-44221 Dortmund
Mail: stefan.rapp at tu-dortmund.de
Phone: +49 231 755 4668
Fax: +49 231 755 2731
Web: http://www.itmc.tu-dortmund.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5182 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20170406/9345db34/attachment.p7s>
More information about the Info-cyrus
mailing list