Re: [Dovecot] v1.1.rc11 released

2008-06-19 Thread Woonsan Ko
> FWIW, it compiled just fine on AIX using IBM's C for AIX
> V9 compiler

It failed to compile with `IBM(R) XL C/C++ Enterprise Edition V8.0 for AIX(R)' 
on `AIX machine 3 5'. My configuration was `./configure CC=xlc 
LDFLAGS="-bexpall -brtl"'.

Did you compile with a simple configuration like `./configure' or `./configure 
CC=xlc'?
Or, did you compile with a wrapper script like dovecot-cc, as explained in 
http://wiki.dovecot.org/AixPluginsSupport?
Were all plugins built to .so files correctly?

TIA,

Woonsan


  


Re: [Dovecot] v1.1.rc11 released

2008-06-19 Thread Stewart Dean

FWIW, it compiled just fine on AIX using IBM's C for AIX V9 compiler

Woonsan Ko wrote:

Hi All,

I could build and install on Linux and HP-UX machines successfully with gcc, 
but I failed on an AIX machine with gcc. So may I ask you some advice on making 
on AIX?

The environment is as follows (`gcc -v`):
  Using built-in specs.
  Target: powerpc-ibm-aix5.3.0.0
  Configured with: ../gcc-4.1.1/configure --disable-nls
  Thread model: aix
  gcc version 4.1.1


Firstly, make failed with the following messages:

[Snip]
Making all in lib
make  all-am
gcc -DHAVE_CONFIG_H -I. -I../..  -std=gnu99 -g -O2 -Wall -W 
-Wmissing-prototypes -Wmissing-declarations -Wpointer
-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2  
-MT restrict-access.o -MD -MP -MF .deps/restrict
-access.Tpo -c -o restrict-access.o restrict-access.c
In file included from /usr/include/grp.h:57,
 from restrict-access.c:13:
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:501: error: 
conflicting types for 'fgetpos64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:310: error: 
previous declaration of 'fgetpos64' was here
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:504: error: 
conflicting types for 'fseeko64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:441: error: 
previous declaration of 'fseeko64' was here
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:505: error: 
conflicting types for 'fsetpos64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:312: error: 
previous declaration of 'fsetpos64' was here
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:506: error: 
conflicting types for 'ftello64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:442: error: 
previous declaration of 'ftello64' was here
make: 1254-004 The error code from the last command is 1.


After some googling on this problem, I found that adding `#include ' 
before other includes in ./src/lib/restrict-access.c.

After that, I met other errors like the following:

[Snip]
 gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict 
-I../../../src/lib-index -I../../../src/lib-ma
il -I../../../src/lib-storage -I../../../src/lib-storage/index 
-I../../../src/lib-storage/index/maildir -std=gnu99 -g -O2 -Wa
ll -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-a
liasing=2 -MT quota-count.lo -MD -MP -MF .deps/quota-count.Tpo -c quota-count.c 
 -DPIC -o .libs/quota-count.o
mv -f .deps/quota-count.Tpo .deps/quota-count.Plo
rpcgen -h /usr/include/rpcsvc/rquota.x > rquota.h
/bin/sh ../../../libtool --tag=CC--mode=compile gcc -DHAVE_CONFIG_H 
-I. -I../../..   -I../../../src/lib  -I../../
../src/lib-dict  -I../../../src/lib-index  -I../../../src/lib-mail  
-I../../../src/lib-storage  -I../../../src/lib-storage/in
dex  -I../../../src/lib-storage/index/maildir   -std=gnu99 -g -O2 -Wall -W 
-Wmissing-prototypes -Wmissing-declarations -Wpoin
ter-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2  
-MT quota-fs.lo -MD -MP -MF .deps/quota-fs.Tp
o -c -o quota-fs.lo quota-fs.c
 gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict 
-I../../../src/lib-index -I../../../src/lib-ma
il -I../../../src/lib-storage -I../../../src/lib-storage/index 
-I../../../src/lib-storage/index/maildir -std=gnu99 -g -O2 -Wa
ll -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-a
liasing=2 -MT quota-fs.lo -MD -MP -MF .deps/quota-fs.Tpo -c quota-fs.c  -DPIC 
-o .libs/quota-fs.o
In file included from quota-fs.c:28:
rquota.h:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_getquota_args'
rquota.h:13: error: expected specifier-qualifier-list before 'bool_t'
rquota.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_rquota'
rquota.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_gqr_status'
rquota.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_getquota_rslt'
quota-fs.c: In function 'do_rquota':
quota-fs.c:287: error: storage size of 'call_status' isn't known
quota-fs.c:288: error: 'CLIENT' undeclared (first use in this function)
quota-fs.c:288: error: (Each undeclared identifier is reported only once
quota-fs.c:288: error: for each function it appears in.)
quota-fs.c:288: error: 'cl' undeclared (first use in this function)
quota-fs.c:309: warning: implicit declaration of function 'clnt_create'
quota-fs.c:317: warning: implicit declaration of function 'auth_destroy'
quota-fs.c:318: warning: implicit declaration of function 
'authunix_create_default'
quota-fs.c:326: warning: implicit declaration of function 'clnt_call'
quota-fs.c:327: error: 'xdrproc_t' undeclared (first use in this function)
quota-fs.c:

Re: [Dovecot] v1.1.rc11 released

2008-06-19 Thread Woonsan Ko
Hi Timo,

> > After some googling on this problem, I found that
> adding `#include ' before other includes
> in ./src/lib/restrict-access.c.
> 
> Done.

However, the rc12 doesn't seem to have the line before the `#include 
' line.

> 
> > rpcgen -h /usr/include/rpcsvc/rquota.x >
> rquota.h
> 
> Here it generates the rquota.h
> 
> > In file included from quota-fs.c:28:
> > rquota.h:8: error: expected '=', ',',
> ';', 'asm' or '__attribute__'
> before 'xdr_getquota_args'
> > rquota.h:13: error: expected specifier-qualifier-list
> before 'bool_t'
> > rquota.h:24: error: expected '=', ',',
> ';', 'asm' or '__attribute__' before
> 'xdr_rquota'
> > rquota.h:32: error: expected '=', ',',
> ';', 'asm' or '__attribute__' before
> 'xdr_gqr_status'
> > rquota.h:42: error: expected '=', ',',
> ';', 'asm' or '__attribute__' before
> 'xdr_getquota_rslt'
> 
> But for some reason it can't use it. I don't really
> know why. I suppose
> it's missing some include file? Does it include
>  itself? If
> not, does it help to include it?

The rquota.h doesn't include , and it doesn't help with , 
throwing the followings (I tested with rc12):

 gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict -
I../../../src/lib-index -I../../../src/lib-mail -I../../../src/lib-storage -I../
../../src/lib-storage/index -I../../../src/lib-storage/index/maildir -std=gnu99
-g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wch
ar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -MT rquota_xdr.
lo -MD -MP -MF .deps/rquota_xdr.Tpo -c rquota_xdr.c  -DPIC -o .libs/rquota_xdr.o
rquota_xdr.c:1:17: warning: extra tokens at end of #include directive
In file included from rquota_xdr.c:2:
/usr/include/rpcsvc/rquota.h:49: error: expected specifier-qualifier-list before
 'bool_t'
rquota_xdr.c: In function 'xdr_getquota_args':
rquota_xdr.c:8: error: expected declaration specifiers before 'getquota_args'
rquota_xdr.c:9: warning: type of 'objp' defaults to 'int'
rquota_xdr.c:9: error: argument 'objp' doesn't match prototype
/usr/include/rpcsvc/rquota.h:73: error: prototype declaration
rquota_xdr.c:10: error: invalid type argument of '->'
rquota_xdr.c:10: error: 'RQ_PATHLEN' undeclared (first use in this function)
rquota_xdr.c:10: error: (Each undeclared identifier is reported only once
rquota_xdr.c:10: error: for each function it appears in.)
rquota_xdr.c:13: error: invalid type argument of '->'
rquota_xdr.c: In function 'xdr_rquota':
rquota_xdr.c:25: error: expected declaration specifiers before 'rquota'
rquota_xdr.c:26: warning: type of 'objp' defaults to 'int'
rquota_xdr.c:26: error: argument 'objp' doesn't match prototype
/usr/include/rpcsvc/rquota.h:75: error: prototype declaration
rquota_xdr.c:27: error: invalid type argument of '->'
rquota_xdr.c:30: error: invalid type argument of '->'
rquota_xdr.c:33: error: invalid type argument of '->'
rquota_xdr.c:36: error: invalid type argument of '->'
rquota_xdr.c:39: error: invalid type argument of '->'
rquota_xdr.c:42: error: invalid type argument of '->'
rquota_xdr.c:45: error: invalid type argument of '->'
rquota_xdr.c:48: error: invalid type argument of '->'
rquota_xdr.c:51: error: invalid type argument of '->'
rquota_xdr.c:54: error: invalid type argument of '->'
rquota_xdr.c: At top level:
rquota_xdr.c:65: warning: no previous prototype for 'xdr_gqr_status'
rquota_xdr.c: In function 'xdr_gqr_status':
rquota_xdr.c:66: error: expected declaration specifiers before 'gqr_status'
rquota_xdr.c:67: warning: type of 'objp' defaults to 'int'
rquota_xdr.c: In function 'xdr_getquota_rslt':
rquota_xdr.c:80: error: expected declaration specifiers before 'getquota_rslt'
rquota_xdr.c:81: warning: type of 'objp' defaults to 'int'
rquota_xdr.c:81: error: argument 'objp' doesn't match prototype
/usr/include/rpcsvc/rquota.h:74: error: prototype declaration
rquota_xdr.c:82: error: invalid type argument of '->'
rquota_xdr.c:85: error: invalid type argument of '->'
rquota_xdr.c:87: error: invalid type argument of '->'
make: 1254-004 The error code from the last command is 1.


I have googled and found a IBM document page: 
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.progcomm/doc/progcomc/ch8_rpc.htm
 (I clicked `Programming in RPC' link and referred to the `Compiling and 
Linking RPC Programs' section.)
According to the page, I set the CFLAGS to `CFLAGS=-D_BSD -DBSD_INCLUDES', but 
it threw other errors:

 gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict -
I../../../src/lib-index -I../../../src/lib-mail -I../../../src/lib-storage -I../
../../src/lib-storage/index -I../../../src/lib-storage/index/maildir -std=gnu99
-g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wch
ar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -D_BSD -DBSD_IN
CLUDES -MT quota.lo -MD -MP -MF .deps/quota.Tpo -c quota.c  -DPIC -o .libs/quota
.o
quota.c: In function 'quota_warning_e

Re: [Dovecot] v1.1.rc11 released

2008-06-18 Thread Timo Sirainen
On Thu, 2008-06-19 at 06:56 +0200, Gerhard Wiesinger wrote:
> Hello Timo!
> 
> Anything changed since 1.1rc9 regarding the mbox issue?
> Did you have a look at the file I sent you?

Not yet. I've been trying to avoid spending time on debugging difficult
things recently. Time to write some new code for a change. :)



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] v1.1.rc11 released

2008-06-18 Thread Gerhard Wiesinger

Hello Timo!

Anything changed since 1.1rc9 regarding the mbox issue?
Did you have a look at the file I sent you?

Thnx.

Ciao,
Gerhard

Timo Sirainen wrote:

http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc11.tar.gz
http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc11.tar.gz.sig

This is the final v1.1 RC. Tomorrow I'll change only the version number,
update the documentation and call it v1.1.0. But please test this anyway
to make sure I didn't happen to break anything since rc10 :)

- dovecot-uidlist is now recreated if it results in file shrinking
  over 25%.
- Some other minor fixes

  




Re: [Dovecot] v1.1.rc11 released

2008-06-18 Thread Timo Sirainen
On Wed, 2008-06-18 at 21:10 -0700, Woonsan Ko wrote:
> After some googling on this problem, I found that adding `#include ' 
> before other includes in ./src/lib/restrict-access.c.

Done.

> rpcgen -h /usr/include/rpcsvc/rquota.x > rquota.h

Here it generates the rquota.h

> In file included from quota-fs.c:28:
> rquota.h:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
> 'xdr_getquota_args'
> rquota.h:13: error: expected specifier-qualifier-list before 'bool_t'
> rquota.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
> 'xdr_rquota'
> rquota.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
> 'xdr_gqr_status'
> rquota.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
> 'xdr_getquota_rslt'

But for some reason it can't use it. I don't really know why. I suppose
it's missing some include file? Does it include  itself? If
not, does it help to include it?

> quota-fs.c:478: warning: implicit declaration of function 'quotactl'

http://hg.dovecot.org/dovecot-1.1/rev/2b0432ec7c7c probably fixes this.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] v1.1.rc11 released

2008-06-18 Thread Dean Brooks
On Thu, Jun 19, 2008 at 01:50:15AM +0300, Timo Sirainen wrote:
> http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc11.tar.gz
> http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc11.tar.gz.sig
> 
> This is the final v1.1 RC. Tomorrow I'll change only the version number,
> update the documentation and call it v1.1.0. But please test this anyway
> to make sure I didn't happen to break anything since rc10 :)

Did you have a chance to check into the constant mbox errors of:

   Can't find next message offset for uid=nn

in 1.1.rc10?  Today alone, we had 15,613 of the errors in our syslog
even after all indexes have been completely deleted.

--
Dean Brooks
[EMAIL PROTECTED]


Re: [Dovecot] v1.1.rc11 released

2008-06-18 Thread Woonsan Ko
Hi All,

I could build and install on Linux and HP-UX machines successfully with gcc, 
but I failed on an AIX machine with gcc. So may I ask you some advice on making 
on AIX?

The environment is as follows (`gcc -v`):
  Using built-in specs.
  Target: powerpc-ibm-aix5.3.0.0
  Configured with: ../gcc-4.1.1/configure --disable-nls
  Thread model: aix
  gcc version 4.1.1


Firstly, make failed with the following messages:

[Snip]
Making all in lib
make  all-am
gcc -DHAVE_CONFIG_H -I. -I../..  -std=gnu99 -g -O2 -Wall -W 
-Wmissing-prototypes -Wmissing-declarations -Wpointer
-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2  
-MT restrict-access.o -MD -MP -MF .deps/restrict
-access.Tpo -c -o restrict-access.o restrict-access.c
In file included from /usr/include/grp.h:57,
 from restrict-access.c:13:
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:501: error: 
conflicting types for 'fgetpos64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:310: error: 
previous declaration of 'fgetpos64' was here
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:504: error: 
conflicting types for 'fseeko64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:441: error: 
previous declaration of 'fseeko64' was here
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:505: error: 
conflicting types for 'fsetpos64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:312: error: 
previous declaration of 'fsetpos64' was here
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:506: error: 
conflicting types for 'ftello64'
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/include/stdio.h:442: error: 
previous declaration of 'ftello64' was here
make: 1254-004 The error code from the last command is 1.


After some googling on this problem, I found that adding `#include ' 
before other includes in ./src/lib/restrict-access.c.

After that, I met other errors like the following:

[Snip]
 gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict 
-I../../../src/lib-index -I../../../src/lib-ma
il -I../../../src/lib-storage -I../../../src/lib-storage/index 
-I../../../src/lib-storage/index/maildir -std=gnu99 -g -O2 -Wa
ll -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-a
liasing=2 -MT quota-count.lo -MD -MP -MF .deps/quota-count.Tpo -c quota-count.c 
 -DPIC -o .libs/quota-count.o
mv -f .deps/quota-count.Tpo .deps/quota-count.Plo
rpcgen -h /usr/include/rpcsvc/rquota.x > rquota.h
/bin/sh ../../../libtool --tag=CC--mode=compile gcc -DHAVE_CONFIG_H 
-I. -I../../..   -I../../../src/lib  -I../../
../src/lib-dict  -I../../../src/lib-index  -I../../../src/lib-mail  
-I../../../src/lib-storage  -I../../../src/lib-storage/in
dex  -I../../../src/lib-storage/index/maildir   -std=gnu99 -g -O2 -Wall -W 
-Wmissing-prototypes -Wmissing-declarations -Wpoin
ter-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2  
-MT quota-fs.lo -MD -MP -MF .deps/quota-fs.Tp
o -c -o quota-fs.lo quota-fs.c
 gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict 
-I../../../src/lib-index -I../../../src/lib-ma
il -I../../../src/lib-storage -I../../../src/lib-storage/index 
-I../../../src/lib-storage/index/maildir -std=gnu99 -g -O2 -Wa
ll -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-a
liasing=2 -MT quota-fs.lo -MD -MP -MF .deps/quota-fs.Tpo -c quota-fs.c  -DPIC 
-o .libs/quota-fs.o
In file included from quota-fs.c:28:
rquota.h:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_getquota_args'
rquota.h:13: error: expected specifier-qualifier-list before 'bool_t'
rquota.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_rquota'
rquota.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_gqr_status'
rquota.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xdr_getquota_rslt'
quota-fs.c: In function 'do_rquota':
quota-fs.c:287: error: storage size of 'call_status' isn't known
quota-fs.c:288: error: 'CLIENT' undeclared (first use in this function)
quota-fs.c:288: error: (Each undeclared identifier is reported only once
quota-fs.c:288: error: for each function it appears in.)
quota-fs.c:288: error: 'cl' undeclared (first use in this function)
quota-fs.c:309: warning: implicit declaration of function 'clnt_create'
quota-fs.c:317: warning: implicit declaration of function 'auth_destroy'
quota-fs.c:318: warning: implicit declaration of function 
'authunix_create_default'
quota-fs.c:326: warning: implicit declaration of function 'clnt_call'
quota-fs.c:327: error: 'xdrproc_t' undeclared (first use in this function)
quota-fs.c:327: error: expected ')' before 'xdr_getquota_args'
quota-fs.c:333: warning: implicit decl