[Dovecot] dovecot on OSF/1 4.0

Timo Sirainen tss at iki.fi
Thu Aug 17 13:46:32 EEST 2006


On Thu, 2006-08-17 at 12:38 +0200, =?ISO-8859-1?Q?
G=E1bor_B=E9rczi_=28Gabucino=29 ?= wrote:
> Hi,,
> 
> In src/lib/mountpoint.c:53 the following had to be commented out:
> 
> //      point_r->type = p_strdup(pool, buf.f_fstypename);
> 
> because f_fstypename is undeclared on this OS.

Is there something else with the same information? (could you show me
the whole struct?)

> Also the following errors occur with the DEC C compiler (which  
> compiles the other files just fine):
> 
> source='file-cache.c' object='file-cache.o' libtool=no  DEPDIR=.deps  
> depmode=none /usr/bin/posix/sh ../../depcomp  cc -std -DHAVE_CONFIG_H  
> -I. -I. -I../..    -I/usr/pkg/include  -ieee -O2 -I/usr/pkg/include - 
> I/usr/pkg/include    -c file-cache.c
> cc: Error: file-cache.c, line 70: In this statement, "cache- 
>  >mmap_base" and "(-1)" may not be compared for equality or inequality.
>                  if (cache->mmap_base == MAP_FAILED) {
> --------------------^
> cc: Error: file-cache.c, line 79: In this statement, "cache- 
>  >mmap_base" and "(-1)" may not be compared for equality or inequality.
>                  if (cache->mmap_base == MAP_FAILED) {
> --------------------^

Well, I'd say that's a bug in OSF's header files. MAP_FAILED should be
defined to (void *)-1, not -1. Maybe if you put this to lib/compat.h:

#undef MAP_FAILED
#define MAP_FAILED (void *)-1

> Making all in lib-index
> source='mail-cache.c' object='mail-cache.o' libtool=no  DEPDIR=.deps  
> depmode=none /usr/bin/posix/sh ../../depcomp  cc -std -DHAVE_CONFIG_H  
> -I. -I. -I../..  -I../../src/lib  -I../../src/lib-mail  -I/usr/pkg/ 
> include  -ieee -O2 -I/usr/pkg/include -I/usr/pkg/include    -c mail- 
> cache.c
> cc: Error: mail-index-private.h, line 177: Invalid declarator.
>          unsigned int readonly:1;

Hmm.. Maybe I could change it to read_only.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060817/819ee8e7/attachment.pgp 


More information about the dovecot mailing list