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@xxxxxxxxxxxxxx Phone: +49 231 755 4668 Fax: +49 231 755 2731 Web: http://www.itmc.tu-dortmund.de/
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus