Re: [Dovecot] Failute to compile of pigeonhole-0.4.2 with Dovecot 2.2.7

2013-11-27 Thread Andreas Kasenides

On 26-11-2013 22:39, Stephan Bosch wrote:

On 11/26/2013 3:27 PM, Andreas Kasenides wrote:

On trying to compile pigeonhole-0.4.2 on Dovecot 2.2.7 on a CentOS 6.4
machine
Linux xxx.xxx 2.6.32-358.14.1.el6.x86_64 #1 SMP Tue Jul 16 23:51:20
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

with ./configure --with-dovecot=/usr/local/lib/dovecot
I get the following error:


/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../..  -I/usr/local/include/dovecot  -I../..
-I../../src/lib-sieve   -std=gnu99 -g -O2 -Wall -W
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime
-Wstrict-aliasing=2  -MT sieve-storage.lo -MD -MP -MF
.deps/sieve-storage.Tpo -c -o sieve-storage.lo sieve-storage.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../..
-I/usr/local/include/dovecot -I../.. -I../../src/lib-sieve -std=gnu99
-g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast
-fno-builtin-strftime -Wstrict-aliasing=2 -MT sieve-storage.lo -MD -MP
-MF .deps/sieve-storage.Tpo -c sieve-storage.c  -fPIC -DPIC -o
.libs/sieve-storage.o
sieve-storage.c: In function 
'sieve_storage_inbox_script_attribute_set':

sieve-storage.c:702: error:
'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in
this function)
sieve-storage.c:702: error: (Each undeclared identifier is reported
only once
sieve-storage.c:702: error: for each function it appears in.)
sieve-storage.c:702: error: expected ')' before string constant
sieve-storage.c:693: warning: unused parameter 'name'
sieve-storage.c: In function
'sieve_storage_inbox_script_attribute_rename':
sieve-storage.c:718: error:
'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in
this function)
sieve-storage.c:718: error: expected ')' before string constant
sieve-storage.c:720: error: expected ')' before string constant
sieve-storage.c:709: warning: unused parameter 'oldname'
sieve-storage.c:709: warning: unused parameter 'newname'
sieve-storage.c: In function
'sieve_storage_inbox_script_attribute_unset':
sieve-storage.c:738: error:
'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in
this function)
sieve-storage.c:738: error: expected ')' before string constant
sieve-storage.c:729: warning: unused parameter 'name'
make[3]: *** [sieve-storage.lo] Error 1
make[3]: Leaving directory
`/root/dovecot-2.2-pigeonhole-0.4.2/src/lib-sievestorage'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/dovecot-2.2-pigeonhole-0.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot-2.2-pigeonhole-0.4.2'
make: *** [all] Error 2


I tried this here and I cannot reproduce this problem. It looks as
though your installed dovecot at /usr/local/lib/dovecot is older than
2.2.7. Can you verify? What happens if you point it directly at your
compiled Dovecot source tree?

Regards,

Stephan.


Thank you Stephan.
You are right. This was a 2.2.4 Dovecot. Sorry.
Upgrading solved this problem.Now on to the configuration.

Andreas


Re: [Dovecot] Failute to compile of pigeonhole-0.4.2 with Dovecot 2.2.7

2013-11-26 Thread Stephan Bosch
On 11/26/2013 3:27 PM, Andreas Kasenides wrote:
> On trying to compile pigeonhole-0.4.2 on Dovecot 2.2.7 on a CentOS 6.4
> machine
> Linux xxx.xxx 2.6.32-358.14.1.el6.x86_64 #1 SMP Tue Jul 16 23:51:20
> UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> with ./configure --with-dovecot=/usr/local/lib/dovecot
> I get the following error:
>
> 
> /bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I../..  -I/usr/local/include/dovecot  -I../..
> -I../../src/lib-sieve   -std=gnu99 -g -O2 -Wall -W
> -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
> -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime
> -Wstrict-aliasing=2  -MT sieve-storage.lo -MD -MP -MF
> .deps/sieve-storage.Tpo -c -o sieve-storage.lo sieve-storage.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../..
> -I/usr/local/include/dovecot -I../.. -I../../src/lib-sieve -std=gnu99
> -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations
> -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast
> -fno-builtin-strftime -Wstrict-aliasing=2 -MT sieve-storage.lo -MD -MP
> -MF .deps/sieve-storage.Tpo -c sieve-storage.c  -fPIC -DPIC -o
> .libs/sieve-storage.o
> sieve-storage.c: In function 'sieve_storage_inbox_script_attribute_set':
> sieve-storage.c:702: error:
> 'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in
> this function)
> sieve-storage.c:702: error: (Each undeclared identifier is reported
> only once
> sieve-storage.c:702: error: for each function it appears in.)
> sieve-storage.c:702: error: expected ')' before string constant
> sieve-storage.c:693: warning: unused parameter 'name'
> sieve-storage.c: In function
> 'sieve_storage_inbox_script_attribute_rename':
> sieve-storage.c:718: error:
> 'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in
> this function)
> sieve-storage.c:718: error: expected ')' before string constant
> sieve-storage.c:720: error: expected ')' before string constant
> sieve-storage.c:709: warning: unused parameter 'oldname'
> sieve-storage.c:709: warning: unused parameter 'newname'
> sieve-storage.c: In function
> 'sieve_storage_inbox_script_attribute_unset':
> sieve-storage.c:738: error:
> 'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in
> this function)
> sieve-storage.c:738: error: expected ')' before string constant
> sieve-storage.c:729: warning: unused parameter 'name'
> make[3]: *** [sieve-storage.lo] Error 1
> make[3]: Leaving directory
> `/root/dovecot-2.2-pigeonhole-0.4.2/src/lib-sievestorage'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/dovecot-2.2-pigeonhole-0.4.2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/dovecot-2.2-pigeonhole-0.4.2'
> make: *** [all] Error 2

I tried this here and I cannot reproduce this problem. It looks as
though your installed dovecot at /usr/local/lib/dovecot is older than
2.2.7. Can you verify? What happens if you point it directly at your
compiled Dovecot source tree?

Regards,

Stephan.





[Dovecot] Failute to compile of pigeonhole-0.4.2 with Dovecot 2.2.7

2013-11-26 Thread Andreas Kasenides
On trying to compile pigeonhole-0.4.2 on Dovecot 2.2.7 on a CentOS 6.4 
machine
Linux xxx.xxx 2.6.32-358.14.1.el6.x86_64 #1 SMP Tue Jul 16 23:51:20 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux


with ./configure --with-dovecot=/usr/local/lib/dovecot
I get the following error:


/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I../..  -I/usr/local/include/dovecot  -I../.. -I../../src/lib-sieve   
-std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations 
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast 
-fno-builtin-strftime -Wstrict-aliasing=2  -MT sieve-storage.lo -MD -MP 
-MF .deps/sieve-storage.Tpo -c -o sieve-storage.lo sieve-storage.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. 
-I/usr/local/include/dovecot -I../.. -I../../src/lib-sieve -std=gnu99 -g 
-O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2 -MT sieve-storage.lo -MD -MP -MF 
.deps/sieve-storage.Tpo -c sieve-storage.c  -fPIC -DPIC -o 
.libs/sieve-storage.o

sieve-storage.c: In function 'sieve_storage_inbox_script_attribute_set':
sieve-storage.c:702: error: 
'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in 
this function)
sieve-storage.c:702: error: (Each undeclared identifier is reported only 
once

sieve-storage.c:702: error: for each function it appears in.)
sieve-storage.c:702: error: expected ')' before string constant
sieve-storage.c:693: warning: unused parameter 'name'
sieve-storage.c: In function 
'sieve_storage_inbox_script_attribute_rename':
sieve-storage.c:718: error: 
'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in 
this function)

sieve-storage.c:718: error: expected ')' before string constant
sieve-storage.c:720: error: expected ')' before string constant
sieve-storage.c:709: warning: unused parameter 'oldname'
sieve-storage.c:709: warning: unused parameter 'newname'
sieve-storage.c: In function 
'sieve_storage_inbox_script_attribute_unset':
sieve-storage.c:738: error: 
'MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER' undeclared (first use in 
this function)

sieve-storage.c:738: error: expected ')' before string constant
sieve-storage.c:729: warning: unused parameter 'name'
make[3]: *** [sieve-storage.lo] Error 1
make[3]: Leaving directory 
`/root/dovecot-2.2-pigeonhole-0.4.2/src/lib-sievestorage'

make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/dovecot-2.2-pigeonhole-0.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot-2.2-pigeonhole-0.4.2'
make: *** [all] Error 2


Dovecot 2.2.7 compiles and runs fine. Any help appreciated.

Andreas