dovecot not building on latest unstable
nico202 opened this issue · comments
nix-info:
- system:
"x86_64-linux"
- host os:
Linux 4.9.76, NixOS, 18.03pre125130.3a763b91963 (Impala)
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 1.11.16
- channels(gitlab-runner):
"nixpkgs-18.03pre117013.aebdc892d6"
- channels(nixo):
""
- channels(root):
"nixos-18.03pre126729.2e4aded3669"
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
sudo nixos-rebuild switch --upgrade
Install prefix . : /nix/store/74vz1k4m7zkrb91iba5418hhy4s3mx8w-dovecot-pigeonhole-0.4.21 [69/4910]
script drivers . : file dict [68/4910]
: -ldap [67/4910]
building [66/4910]
build flags: -j1 -l1 SHELL=/nix/store/i0ay05pqkbnvpfijm52mmlrp6kmkl80c-bash-4.4-p12/bin/bash [65/4910]
make all-recursive [64/4910]
make[1]: Entering directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21' [63/4910]
Making all in . [62/4910]
make[2]: Entering directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21' [61/4910]
/nix/store/i0ay05pqkbnvpfijm52mmlrp6kmkl80c-bash-4.4-p12/bin/bash ./update-version.sh . . [60/4910]
make[2]: Leaving directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21' [59/4910]
Making all in src [58/4910]
make[2]: Entering directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21/src' [57/4910]
Making all in lib-sieve [56/4910]
make[3]: Entering directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21/src/lib-sieve' [55/4910]
Making all in util [54/4910]
make[4]: Entering directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21/src/lib-sieve/util' [53/4910]
/nix/store/i0ay05pqkbnvpfijm52mmlrp6kmkl80c-bash-4.4-p12/bin/bash ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I/nix/store/nc8ml8r56lyvpfyncnmifd3gyw[52/4910]
vecot-2.3.0/include/dovecot -DMODULEDIR=\""/nix/store/74vz1k4m7zkrb91iba5418hhy4s3mx8w-dovecot-pigeonhole-0.4.21/lib/dovecot"\" -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY[51/4910]
D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/nix[50/4910]
6jirs629q5csg2dxkkb4ibiahgx8ri-openssl-1.0.2n-dev/include -I../../.. -c -o edit-mail.lo edit-mail.c [49/4910]
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I/nix/store/nc8ml8r56lyvpfyncnmifd3gywciwx9k-dovecot-2.3.0/include/dovecot -DMODULEDIR=\"/nix/store/74vz1k4m7zkrb91iba5418hhy4s3mx[48/4910]
t-pigeonhole-0.4.21/lib/dovecot\" -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -[47/4910]
scripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/nix/store/pj6jirs629q5csg2dxkkb4ibiahgx8ri-openssl-1.0.2n-dev/include -I../../.. -c edit-mail.c -fPI[46/4910]
o .libs/edit-mail.o [45/4910]
edit-mail.c: In function 'edit_mail_wrap': [44/4910]
edit-mail.c:235:14: error: too few arguments to function 'mailbox_transaction_begin' [43/4910]
raw_trans = mailbox_transaction_begin(raw_box, 0); [42/4910]
^~~~~~~~~~~~~~~~~~~~~~~~~ [41/4910]
In file included from /nix/store/nc8ml8r56lyvpfyncnmifd3gywciwx9k-dovecot-2.3.0/include/dovecot/mail-storage-private.h:7:0, [40/4910]
from edit-mail.c:16: [39/4910]
/nix/store/nc8ml8r56lyvpfyncnmifd3gywciwx9k-dovecot-2.3.0/include/dovecot/mail-storage.h:652:1: note: declared here [38/4910]
mailbox_transaction_begin(struct mailbox *box, [37/4910]
^~~~~~~~~~~~~~~~~~~~~~~~~ [36/4910]
edit-mail.c: In function 'edit_mail_set_cache_corrupted': [35/4910]
edit-mail.c:1662:2: error: too few arguments to function 'edmail->wrapped->v.set_cache_corrupted' [34/4910]
edmail->wrapped->v.set_cache_corrupted(&edmail->wrapped->mail, field); [33/4910]
^~~~~~ [32/4910]
edit-mail.c: In function 'edit_mail_set_cache_corrupted_reason': [31/4910]
edit-mail.c:1671:20: error: 'struct mail_vfuncs' has no member named 'set_cache_corrupted_reason'; did you mean 'set_cache_corrupted'? [30/4910]
edmail->wrapped->v.set_cache_corrupted_reason [29/4910]
^ [28/4910]
edit-mail.c: At top level: [27/4910]
edit-mail.c:1701:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] [26/4910]
edit_mail_get_real_mail, [25/4910]
^~~~~~~~~~~~~~~~~~~~~~~
edit-mail.c:1701:2: note: (near initialization for 'edit_mail_vfuncs.get_backend_mail')
edit-mail.c:1708:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
edit_mail_set_cache_corrupted,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
edit-mail.c:1708:2: note: (near initialization for 'edit_mail_vfuncs.set_cache_corrupted')
edit-mail.c:1710:2: warning: excess elements in struct initializer
edit_mail_set_cache_corrupted_reason
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
edit-mail.c:1710:2: note: (near initialization for 'edit_mail_vfuncs')
edit-mail.c: In function 'edit_mail_istream_create':
edit-mail.c:2156:9: error: too few arguments to function 'i_stream_create'
return i_stream_create(&edstream->istream, wrapped, -1);
^~~~~~~~~~~~~~~
In file included from edit-mail.c:9:0:
/nix/store/nc8ml8r56lyvpfyncnmifd3gywciwx9k-dovecot-2.3.0/include/dovecot/istream-private.h:77:1: note: declared here
i_stream_create(struct istream_private *stream, struct istream *parent, int fd,
^~~~~~~~~~~~~~~
edit-mail.c:2157:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[4]: *** [Makefile:482: edit-mail.lo] Error 1
make[4]: Leaving directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21/src/lib-sieve/util'
make[3]: *** [Makefile:850: all-recursive] Error 1
make[3]: Leaving directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21/src/lib-sieve'
make[2]: *** [Makefile:426: all-recursive] Error 1
make[2]: Leaving directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21/src'
make[1]: *** [Makefile:741: all-recursive] Error 1
make[1]: Leaving directory '/tmp/nix-build-dovecot-pigeonhole-0.4.21.drv-0/dovecot-2.2-pigeonhole-0.4.21'
make: *** [Makefile:600: all] Error 2
builder for ‘/nix/store/5k0a297nib68zcxpsv49z0x6iafa7nd8-dovecot-pigeonhole-0.4.21.drv’ failed with exit code 2
cannot build derivation ‘/nix/store/ij5r480jxvd6h320vjxxfxm6qdzn2kvb-dovecot-modules.drv’: 1 dependencies couldn't be built
This is about pigeonhole, not Dovecot. Probably fixed by NixOS/nixpkgs#34449.
@dotlambda @nico202 yes, this is the issue the linked PR addresses!
If you cherry pick that commit you should be good, alternatively just wait a bit for the unstable channel to catch up.
fixed on latest unstable, thanks