dovecot / imaptest

IMAP server tester
Other
51 stars 21 forks source link

Can't build against Dovecot 2.2.27 #4

Closed pascalrobert closed 7 years ago

pascalrobert commented 7 years ago

Running: ./configure --with-dovecot=../dovecot-2.2.27 && make

Getting:

gcc -DHAVE_CONFIG_H -I. -I..  -I/root/dovecot-2.2.27 -I/root/dovecot-2.2.27/src/lib -I/root/dovecot-2.2.27/src/lib-dict -I/root/dovecot-2.2.27/src/lib-dns -I/root/dovecot-2.2.27/src/lib-http -I/root/dovecot-2.2.27/src/lib-mail -I/root/dovecot-2.2.27/src/lib-imap -I/root/dovecot-2.2.27/src/lib-fs -I/root/dovecot-2.2.27/src/lib-charset -I/root/dovecot-2.2.27/src/lib-auth -I/root/dovecot-2.2.27/src/lib-master -I/root/dovecot-2.2.27/src/lib-ssl-iostream -I/root/dovecot-2.2.27/src/lib-compression -I/root/dovecot-2.2.27/src/lib-settings -I/root/dovecot-2.2.27/src/lib-test -I/root/dovecot-2.2.27/src/lib-sasl -I/root/dovecot-2.2.27/src/lib-stats -I/root/dovecot-2.2.27/src/lib-dcrypt -I/root/dovecot-2.2.27/src/lib-program-client    -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 client.o -MD -MP -MF .deps/client.Tpo -c -o client.o client.c
client.c: In function ‘client_init’:
client.c:235: erreur: too few arguments to function ‘i_stream_create_fd’
client.c:236: erreur: too few arguments to function ‘o_stream_create_fd’
make[2]: *** [client.o] Erreur 1
make[2]: quittant le répertoire « /root/imaptest-1.0.0/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /root/imaptest-1.0.0 »
make: *** [all] Erreur 2
cmouse commented 7 years ago

Hi!

This is because it needs to be compiled against master-2.2 branch, which apparently is missing. We'll try to get it pushed.

pascalrobert commented 7 years ago

I get the same problem with the master-2.2 branch:

[root@localhost core]# git status
# On branch master-2.2

[root@localhost imaptest]# ./configure --with-dovecot=../core

[root@localhost imaptest]# make
make  all-recursive
make[1]: entrant dans le répertoire « /root/imaptest »
Making all in src
make[2]: entrant dans le répertoire « /root/imaptest/src »
gcc -DHAVE_CONFIG_H -I. -I..  -I/root/core -I/root/core/src/lib -I/root/core/src/lib-dict -I/root/core/src/lib-dns -I/root/core/src/lib-http -I/root/core/src/lib-mail -I/root/core/src/lib-smtp -I/root/core/src/lib-imap -I/root/core/src/lib-fs -I/root/core/src/lib-charset -I/root/core/src/lib-auth -I/root/core/src/lib-master -I/root/core/src/lib-ssl-iostream -I/root/core/src/lib-compression -I/root/core/src/lib-settings -I/root/core/src/lib-test -I/root/core/src/lib-sasl -I/root/core/src/lib-stats -I/root/core/src/lib-dcrypt -I/root/core/src/lib-program-client    -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 client.o -MD -MP -MF .deps/client.Tpo -c -o client.o client.c
client.c: In function ‘client_init’:
client.c:235: erreur: too few arguments to function ‘i_stream_create_fd’
client.c:236: erreur: too few arguments to function ‘o_stream_create_fd’
cmouse commented 7 years ago

what version of dovecot are you compiling against?

cmouse commented 7 years ago

ah, 2.2.27...

cmouse commented 7 years ago

oh, and i ment core-2.2 branch of this repository.

pascalrobert commented 7 years ago

Ok. So, now I'm trying to build imaptest from the core-2.2 branch, with the master-2.2 branch of Dovecot, and I'm getting:

gcc -DHAVE_CONFIG_H -I. -I..  -I/root/core -I/root/core/src/lib -I/root/core/src/lib-dict -I/root/core/src/lib-dns -I/root/core/src/lib-http -I/root/core/src/lib-mail -I/root/core/src/lib-smtp -I/root/core/src/lib-imap -I/root/core/src/lib-fs -I/root/core/src/lib-charset -I/root/core/src/lib-auth -I/root/core/src/lib-master -I/root/core/src/lib-ssl-iostream -I/root/core/src/lib-compression -I/root/core/src/lib-settings -I/root/core/src/lib-test -I/root/core/src/lib-sasl -I/root/core/src/lib-stats -I/root/core/src/lib-dcrypt -I/root/core/src/lib-program-client    -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 user.o -MD -MP -MF .deps/user.Tpo -c -o user.o user.c
user.c: In function ‘user_get_random_from_conf’:
user.c:67: warning: format not a string literal, argument types not checked
user.c: In function ‘user_get_new_mailbox’:
user.c:246: warning: unused variable ‘error’
mv -f .deps/user.Tpo .deps/user.Po
make[2]: *** No rule to make target `/root/core/src/lib-dovecot/libdovecot.la', needed by `imaptest'.  Stop.

Same error if I try to build it against the master branch of Dovecot.

pascalrobert commented 7 years ago

Ok. Updated master-2.2, run make on Dovecot again, and it's working now.

cmouse commented 7 years ago

Good to hear.