dovecot / imaptest

IMAP server tester
Other
51 stars 21 forks source link

client.c:153:7: error: too many arguments to function ‘io_stream_create_ssl_client’ #31

Closed spijoing closed 6 months ago

spijoing commented 6 months ago

When 'make' imaptest version "0.0.0-590+b73f094" with dovecot 2.3.21 on ubuntu 16.04.7 LTS with openssl 2.3.0 and gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 I get "client.c:153:7: error: too many arguments to function ‘io_stream_create_ssl_client’" as below listing show.

make make all-recursive make[1]: Entering directory '/usr/local/src/imaptest' Making all in src make[2]: Entering directory '/usr/local/src/imaptest/src' CC imaptest-client.o client.c: In function ‘client_wait_connect’: client.c:155:7: warning: passing argument 5 of ‘io_stream_create_ssl_client’ from incompatible pointer type [-Wincompatible-pointer-types] &client->input, &client->output, ^ In file included from client.c:9:0: /usr/local/include/dovecot/iostream-ssl.h:58:5: note: expected ‘struct ostream ’ but argument is of type ‘struct istream ’ int io_stream_create_ssl_client(struct ssl_iostream_context ctx, const char host, ^ client.c:155:23: warning: passing argument 6 of ‘io_stream_create_ssl_client’ from incompatible pointer type [-Wincompatible-pointer-types] &client->input, &client->output, ^ In file included from client.c:9:0: /usr/local/include/dovecot/iostream-ssl.h:58:5: note: expected ‘struct ssl_iostream ’ but argument is of type ‘struct ostream ’ int io_stream_create_ssl_client(struct ssl_iostream_context ctx, const char host, ^ client.c:156:7: warning: passing argument 7 of ‘io_stream_create_ssl_client’ from incompatible pointer type [-Wincompatible-pointer-types] &client->ssl_iostream, &error) < 0) ^ In file included from client.c:9:0: /usr/local/include/dovecot/iostream-ssl.h:58:5: note: expected ‘const char ’ but argument is of type ‘struct ssl_iostream ’ int io_stream_create_ssl_client(struct ssl_iostream_context ctx, const char host, ^ client.c:153:7: error: too many arguments to function ‘io_stream_create_ssl_client’ if (io_stream_create_ssl_client(ssl_ctx, conf.host, &conf.ssl_set, ^ In file included from client.c:9:0: /usr/local/include/dovecot/iostream-ssl.h:58:5: note: declared here int io_stream_create_ssl_client(struct ssl_iostream_context ctx, const char host, ^ Makefile:634: recipe for target 'imaptest-client.o' failed make[2]: [imaptest-client.o] Error 1 make[2]: Leaving directory '/usr/local/src/imaptest/src' Makefile:485: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/usr/local/src/imaptest' Makefile:413: recipe for target 'all' failed make: *** [all] Error 2

cmouse commented 6 months ago

Hi, please use the staticly compiled imaptest (found in releases) or use release-2.3 branch of imaptest.