From nobody Tue Dec 6 19:16:37 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NRVX54zPbz4jhg5 for ; Tue, 6 Dec 2022 19:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NRVX53ycVz4S1S for ; Tue, 6 Dec 2022 19:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670354197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g90M5onHvZWwpN6Ez3fJ/PRFXDG5VEs3BBkYJvzrzK0=; b=iMiMx6z/T8iJe51WNMXUTiKjXkdglREwMuzlipm78mpa2swQdWNbSVLuoxVSYyrarhcULd sqzh2eGCUKcs2vTysd+phiDiivtQNRXUiSLuJ4BufnUrOYB2rsLEigmRzN6t2aCIViQWoC Z2d09fSPTo3r6eLCDu+mvN/AvdBda9w2g0BlU06Yp1G8r23ZxO0nUYAPuH82wZRF7Au2uJ V7HisKLXe/ECo4oXrTG/CqQq1/H1sOAZNiW2HMOcTHlYGXOJ7d47+bbAAHBpQgBGApS08Q s6eIJjGzGi61e7/5CW2uoEdYdqoMU3s+22omSB6UrJyR4+4GVNzCgeMVaT5Pgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670354197; a=rsa-sha256; cv=none; b=hlYrP0AzdCX+i1+13M6EhlmtlK58KfkuQZXTja1Huxw3F23i8DKLhRmS1coVBx/4sEkhaZ SUadoq84+Phg77IUSCzuhQwl2tUL+xKNYZ6rFGfFBpSmOZ8DpGWTXHVxMsirzFZxa9QTGX eeOjriUDhWhuCBlgcKc2+mbjiLcGL1x0Bq6uOQlmtay6ylIA4KHVFVAuEELr/i9mNHaDuT 5EI60mZAWJKhagJ7ILaodl+s0YqVhs7pMeIcJg2OwbckIYRuPx7Si/dRydY6nGi+lNTfrD BCo/CQlXmYF6tUH1kDG/vudfKulM0LDk6ob5t+6SFx0HKUvVJJiqffiLMWikwg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NRVX52vn1zpTK for ; Tue, 6 Dec 2022 19:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2B6JGbvB059907 for ; Tue, 6 Dec 2022 19:16:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B6JGbhW059906 for ports-bugs@FreeBSD.org; Tue, 6 Dec 2022 19:16:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268204] mail/dovecot: fix build with clang 15 Date: Tue, 06 Dec 2022 19:16:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ler@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268204 Bug ID: 268204 Summary: mail/dovecot: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ler@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(ler@FreeBSD.org) Assignee: ler@FreeBSD.org During an exp-run for llvm 15 (see bug 265425), it turned out that mail/dov= ecot failed to build with clang 15: ioloop-notify-kqueue.c:70:2: error: call to undeclared function 'i_gettimeofday'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] i_gettimeofday(&ioloop_timeval); ^ ioloop-notify-kqueue.c:70:2: note: did you mean 'gettimeofday'? /usr/include/sys/time.h:617:5: note: 'gettimeofday' declared here int gettimeofday(struct timeval *, struct timezone *); ^ ... --- test-mail-index-transaction-update.o --- test-mail-index-transaction-update.c:633:14: warning: comparison of function 'timezone' equal to a null pointer is always false [-Wtautological-pointer-compare] test_assert(timezone =3D=3D 0); ^~~~~~~~ ~ ../../src/lib-test/test-common.h:20:8: note: expanded from macro 'test_asse= rt' if (!(code)) test_assert_failed(#code, __FILE__, __LINE__); \ ^~~~ test-mail-index-transaction-update.c:633:14: note: prefix with the address-= of operator to silence this warning test_assert(timezone =3D=3D 0); ^ & ../../src/lib-test/test-common.h:20:8: note: expanded from macro 'test_asse= rt' if (!(code)) test_assert_failed(#code, __FILE__, __LINE__); \ ^ test-mail-index-transaction-update.c:648:42: warning: arithmetic on a point= er to the function type 'char *(int, int)' is a GNU extension [-Wgnu-pointer-arith] hdr.day_stamp =3D tests[i].old_day_stamp + timezone; ^ ~~~~~~~~ test-mail-index-transaction-update.c:648:17: error: incompatible pointer to integer conversion assigning to 'uint32_t' (aka 'unsigned int') from 'char *(*)(int, int)' [-Wint-conversion] hdr.day_stamp =3D tests[i].old_day_stamp + timezone; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test-mail-index-transaction-update.c:650:49: warning: arithmetic on a point= er to the function type 'char *(int, int)' is a GNU extension [-Wgnu-pointer-arith] mail_index_update_day_headers(t, tests[i].now + timezone); ^ ~~~~~~~~ test-mail-index-transaction-update.c:650:36: error: incompatible pointer to integer conversion passing 'char *(*)(int, int)' to parameter of type 'time= _t' (aka 'long') [-Wint-conversion] mail_index_update_day_headers(t, tests[i].now + timezone); ^~~~~~~~~~~~~~~~~~~~~~~ ./mail-index-transaction-private.h:127:77: note: passing argument to parame= ter 'day_stamp' here void mail_index_update_day_headers(struct mail_index_transaction *t, time_t day_stamp); = ^ test-mail-index-transaction-update.c:654:63: warning: arithmetic on a point= er to the function type 'char *(int, int)' is a GNU extension [-Wgnu-pointer-arith] test_assert_idx(new_hdr.day_stamp =3D=3D tests[i].new_day_s= tamp + timezone, i); = ^ ~~~~~~~~ ../../src/lib-test/test-common.h:26:9: note: expanded from macro 'test_assert_idx' if (!(code)) test_assert_failed_idx(#code, __FILE__, __LINE= __, i); \ ^~~~ test-mail-index-transaction-update.c:654:37: warning: comparison between pointer and integer ('uint32_t' (aka 'unsigned int') and 'char *(*)(int, in= t)') [-Wpointer-integer-compare] test_assert_idx(new_hdr.day_stamp =3D=3D tests[i].new_day_s= tamp + timezone, i); ~~~~~~~~~~~~~~~~~ ^=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/lib-test/test-common.h:26:9: note: expanded from macro 'test_assert_idx' if (!(code)) test_assert_failed_idx(#code, __FILE__, __LINE= __, i); \ ^~~~ Fix these warnings and errors by importing: https://github.com/dovecot/core/commit/e983ead775671186b3c8567d59973d2e52b6= 78c7 https://github.com/dovecot/core/commit/1a7b1f66fe4b86cb642dbcfe5a0192c1b77d= 0e17 https://github.com/dovecot/core/commit/867a37fa7b74f798a931fb582214b5377f57= 610e --=20 You are receiving this mail because: You are the assignee for the bug.=