[Dovecot] dovecot on OSF/1 4.0

Gábor Bérczi (Gabucino) gabor at berczi.be
Thu Aug 17 13:38:04 EEST 2006


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.

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) {
--------------------^
*** Exit 1
Stop.

And:

source='istream-mmap.c' object='istream-mmap.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 istream-mmap.c
cc: Error: istream-mmap.c, line 121: In this statement, "mstream- 
 >mmap_base" and "(-1)" may not be compared for equality or inequality.
                 if (mstream->mmap_base == MAP_FAILED) {
--------------------^

And:

source='mmap-anon.c' object='mmap-anon.o' libtool=no  DEPDIR=.deps  
depmode=none /usr/
bin/posix/sh ../../depcomp  cc -std -DHAVE_CONFIG_H -I. -I. - 
I../..    -I/usr/pkg/inc
lude  -ieee -O2 -I/usr/pkg/include -I/usr/pkg/include    -c mmap-anon.c
cc: Error: mmap-anon.c, line 67: In this statement, "base" and "(-1)"  
may not be comp
ared for equality or inequality.
         if (base == MAP_FAILED)
------------^
cc: Warning: mmap-anon.c, line 68: In this statement, "(-1)" of type  
"long", is being
converted to "pointer to void".
                 return MAP_FAILED;
-----------------------^
cc: Error: mmap-anon.c, line 85: In this statement, "new_base" and  
"(-1)" may not be compared for equality or inequality.
         if (new_base == MAP_FAILED)
------------^
cc: Warning: mmap-anon.c, line 86: In this statement, "(-1)" of type  
"long", is being converted to "pointer to void".
                 return MAP_FAILED;
-----------------------^
cc: Error: mmap-anon.c, line 116: In this statement, "old_address"  
and "(-1)" may not be compared for equality or inequality.
         if (old_address == NULL || old_address == MAP_FAILED) {
-----------------------------------^
cc: Warning: mmap-anon.c, line 118: In this statement, "(-1)" of type  
"long", is being converted to "pointer to void".
                 return MAP_FAILED;
-----------------------^
cc: Warning: mmap-anon.c, line 131: In this statement, "(-1)" of type  
"long", is being converted to "pointer to void".
                         return MAP_FAILED;
-------------------------------^
cc: Error: mmap-anon.c, line 152: In this statement, "start" and  
"(-1)" may not be compared for equality or inequality.
         if (start == NULL || start == MAP_FAILED) {
-----------------------------^
*** Exit 1
Stop.

And:

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;
---------------------^
*** Exit 1
Stop.
source='mail-cache-compress.c' object='mail-cache-compress.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-compress.c
cc: Error: mail-index-private.h, line 177: Invalid declarator.
         unsigned int readonly:1;
---------------------^
*** Exit 1
Stop.
source='mail-cache-decisions.c' object='mail-cache-decisions.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-decisions.c
cc: Error: mail-index-private.h, line 177: Invalid declarator.
         unsigned int readonly:1;
---------------------^
*** Exit 1
Stop.

... etc, more of this error in other files...


-- 
Gábor Bérczi




More information about the dovecot mailing list