Patch RFC: Broken compilation with Sun CC, missing include statement

Marty Lee marty at maui-systems.co.uk
Thu Sep 17 06:11:10 EDT 2015


Interesting; I've also got Cyrus crashing in the cal dav code on Solaris with studio compiler, just haven't had a chance to find out where and why.

Will keep this in mind when I have a look for it.

Marty

> On 17 Sep 2015, at 09:24, Jens Erat <jens.erat at uni-konstanz.de> wrote:
> 
> Dear Cyrus maintainers,
> 
> 
> building Cyrus IMAP 2.5.6 on Solaris 11 using the Sun CC, I experienced
> issues when acting as replication target with the sync server crashing
> for mails containing US timezones.
> 
> After several hours of debugging, we traced it back to a missing include
> statement in times.c (strings.h missing). This resulted in the Sun CC
> falling back to some included function (thus compilation works), but
> this one again is broken and returns 32 bit pointers instead of 64 bit
> pointers in `strchr`.
> 
> In the end, two problems add up here:
> 
> - times.c trusting in strings.h already being included (which seemingly
> is a false assumption considering the sync server)
> - Sun CC probably being broken (we already issued a service request with
> Oracle)
> 
> I attached a proposed patch adding an include statement in times.c,
> maybe it should be put somewhere further up in the include chain instead.
> 
> Kind regards from Lake Constance, Germany,
> Jens Erat
> 
> 
> -- 
> Jens Erat
> Universität Konstanz
> Kommunikations-, Infomations-, Medienzentrum (KIM)
> Abteilung Basisdienste
> D-78457 Konstanz
> Mail: jens.erat at uni-konstanz.de
> <cyrus-imapd-2.5.6-patch-times-include.patch>


More information about the Cyrus-devel mailing list