Running phase: unpackPhase unpacking source archive /nix/store/vcc5wh6kyn5p02pyvrcvvcap487gwc9j-mairix-0.24.tar.gz source root is mairix-0.24 setting SOURCE_DATE_EPOCH to timestamp 1502661576 of file "mairix-0.24/version.txt" Running phase: patchPhase applying patch /nix/store/mkybfmg8mnixvqniivhi8hzsnxymgijz-mmap.patch patching file mairix.h Hunk #1 succeeded at 332 (offset 5 lines). patching file mbox.c Hunk #1 succeeded at 817 (offset 1 line). Hunk #2 succeeded at 853 (offset 1 line). patching file reader.c patching file reader.h Hunk #1 succeeded at 140 (offset 2 lines). patching file rfc822.c Hunk #1 succeeded at 993 (offset 3 lines). Hunk #2 succeeded at 1268 (offset 3 lines). Hunk #3 succeeded at 1389 (offset 3 lines). Hunk #4 succeeded at 1417 (offset 3 lines). patching file search.c Hunk #1 succeeded at 682 (offset 1 line). Hunk #2 succeeded at 719 (offset 21 lines). Hunk #3 succeeded at 759 (offset 21 lines). Hunk #4 succeeded at 780 (offset 21 lines). Hunk #5 succeeded at 1286 (offset 72 lines). Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase patching script interpreter paths in ./configure ./configure: interpreter directive changed from "#!/bin/sh" to "/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/sh" configure flags: --prefix=/nix/store/wwzrb04qc92lzgfhkls3vilk309as9mm-mairix-0.24 Testing whether your compiler "gcc -O2 -Wall" works : it works Checking for : Yes Checking for : Yes Checking for zlib : Yes Checking for bzlib : Yes Checking for bison : Yes Checking for flex : Yes Checking for OpenSSL : No (disabled IMAP STARTTLS support) Generating Makefile Running phase: buildPhase build flags: -j24 SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash ./mkversion gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o db.o db.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o rfc822.o rfc822.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o tok.o tok.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o hash.o hash.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o dirscan.o dirscan.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o writer.o writer.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o reader.o reader.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o search.o search.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o stats.o stats.c if [ -d dfasyn ]; then cd dfasyn ; make CC="gcc" CFLAGS="-O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX" ; else echo "No dfasyn subdirectory?" ; exit 1 ; fi gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o md5.o md5.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o glob.o glob.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o dumper.o dumper.c make[1]: Entering directory '/build/mairix-0.24/dfasyn' gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o expandstr.o expandstr.c gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o dfasyn.o dfasyn.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o dotlock.o dotlock.c bison -v -d -o parse.c parse.y gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o imap.o imap.c flex -t -s scan.l > scan.c gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o imapinterface.o imapinterface.c bison -v -d -o parse.c parse.y gcc -c -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o mairix.o mairix.c gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o tokens.o tokens.c gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o abbrevs.o abbrevs.c scan.l:112: warning, -s option given but default rule can be matched gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o charclass.o charclass.c gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o stimulus.o stimulus.c search.c: In function 'do_search': search.c:1351:74: error: passing argument 3 of 'create_ro_mapping' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 1351 | create_ro_mapping(db->data + db->path_offsets[i], &data, &len); | ^~~~ | | | int * gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o blocks.o blocks.c In file included from search.c:44: mairix.h:336:76: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *' 336 | void create_ro_mapping(const char *filename, unsigned char **data, size_t *len); | ~~~~~~~~^~~ search.c:1369:60: error: passing argument 5 of 'get_validated_mbox_msg' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 1369 | get_validated_mbox_msg(db, i, &mbi, &data, &mbox_len, &start, &msg_len); | ^~~~~~~~~ | | | int * gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o states.o states.c search.c:722:71: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *' 722 | unsigned char **mbox_data, size_t *mbox_len, | ~~~~~~~~^~~~~~~~ search.c:1369:79: error: passing argument 7 of 'get_validated_mbox_msg' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 1369 | get_validated_mbox_msg(db, i, &mbi, &data, &mbox_len, &start, &msg_len); | ^~~~~~~~ | | | int * search.c:723:71: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *' 723 | unsigned char **msg_data, size_t *msg_len) | ~~~~~~~~^~~~~~~ search.c: At top level: dotlock.c: In function 'lock_database': dotlock.c:87:11: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 87 | fgets(line, sizeof(line), in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mairix.c: In function 'out_of_mem': mairix.c:399:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 399 | write(2, msg1, sizeof(msg1)-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mairix.c:400:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 400 | write(2, file, filelen); | ^~~~~~~~~~~~~~~~~~~~~~~ mairix.c:401:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 401 | write(2, ":", 1); | ^~~~~~~~~~~~~~~~ mairix.c:403:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 403 | write(2, ", ", 2); | ^~~~~~~~~~~~~~~~~ mairix.c:405:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 405 | write(2, msg2, sizeof(msg2)-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mairix.c: In function 'emit_int': mairix.c:381:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 381 | write(2, buf2, q-buf2); | ^~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o n2d.o n2d.c search.c:295:13: warning: 'match_substring_in_table2' defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] 295 | static void match_substring_in_table2(struct read_db *db, struct toktable2_db *tt, char *substring, int max_errors, int left_anchor, char *hits)/*{{{*/ | ^~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:61: search.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o expr.o expr.c gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o evaluator.o evaluator.c evaluator.c: In function 'evaluate_attrs': evaluator.c:197:9: warning: variable 'any_attrs_so_far' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 197 | int any_attrs_so_far = 0; | ^~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o tabcompr.o tabcompr.c gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o compdfa.o compdfa.c gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o scan.o scan.c n2d.c: In function 'print_dfa': n2d.c:615:19: warning: variable 'this_state' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 615 | int from_state, this_state; | ^~~~~~~~~~ gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -c -o parse.o parse.c imapinterface.c: In function 'imap_fetch_message_raw': imapinterface.c:241:17: warning: 'raw_len' may be used uninitialized [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmaybe-uninitialized-Wmaybe-uninitialized8;;] 241 | callback(got_raw, raw_len, arg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapinterface.c:165:17: note: 'raw_len' was declared here 165 | size_t uid_len, raw_len, got_uid_len; | ^~~~~~~ imapinterface.c:239:20: warning: 'got_uid_len' may be used uninitialized [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmaybe-uninitialized-Wmaybe-uninitialized8;;] 239 | if (got_uid_len != uid_len) continue; | ^ imapinterface.c:165:26: note: 'got_uid_len' was declared here 165 | size_t uid_len, raw_len, got_uid_len; | ^~~~~~~~~~~ :1651:16: warning: 'input' defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] states.c: In function 'add_inline_block_transition': states.c:187:29: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-overflow-Wformat-overflow=8;;] 187 | sprintf(input_name, "%s.%s", block_name, ib->in); | ^ In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdio.h:970, from dfasyn.h:28, from states.c:25: In function 'sprintf', inlined from 'add_inline_block_transition' at states.c:187:3: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ states.c: In function 'add_inline_block_transition': states.c:188:30: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-overflow-Wformat-overflow=8;;] 188 | sprintf(output_name, "%s.%s", block_name, ib->out); | ^ In function 'sprintf', inlined from 'add_inline_block_transition' at states.c:188:3: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ imap.c: In function 'imap_ll_waitline': imap.c:349:52: warning: 'curtoken_now' may be used uninitialized [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmaybe-uninitialized-Wmaybe-uninitialized8;;] 349 | if (curtoken_now >= curtoken_max) { | ^ imap.c:242:8: note: 'curtoken_now' was declared here 242 | size_t curtoken_now; | ^~~~~~~~~~~~ imap.c:349:52: warning: 'curtoken_max' may be used uninitialized [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmaybe-uninitialized-Wmaybe-uninitialized8;;] 349 | if (curtoken_now >= curtoken_max) { | ^ imap.c:243:8: note: 'curtoken_max' was declared here 243 | size_t curtoken_max; | ^~~~~~~~~~~~ gcc -O2 -Wall -DHAS_STDINT_H -DHAS_INTTYPES_H -DUSE_GZIP_MBOX -DUSE_BZIP_MBOX -o dfasyn dfasyn.o parse.o scan.o tokens.o abbrevs.o charclass.o stimulus.o blocks.o states.o n2d.o expr.o evaluator.o tabcompr.o compdfa.o make[1]: Leaving directory '/build/mairix-0.24/dfasyn'