From owner-freebsd-ports-bugs@freebsd.org Tue Dec 8 18:16:06 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5B9DB4A81FB for ; Tue, 8 Dec 2020 18:16:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Cr7fG1v8lz4kPT for ; Tue, 8 Dec 2020 18:16:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 40FB14A833E; Tue, 8 Dec 2020 18:16:06 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 40BB54A81FA for ; Tue, 8 Dec 2020 18:16:06 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cr7fG1GhYz4k66 for ; Tue, 8 Dec 2020 18:16:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 1440C18852 for ; Tue, 8 Dec 2020 18:16:06 +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 0B8IG52f093183 for ; Tue, 8 Dec 2020 18:16:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0B8IG5ai093182 for ports-bugs@FreeBSD.org; Tue, 8 Dec 2020 18:16:05 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 251688] mail/opendkim: Fix build with lua > 5.3 Date: Tue, 08 Dec 2020 18:16:05 +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: ports-bugs@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 cc flagtypes.name attachments.created 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2020 18:16:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251688 Bug ID: 251688 Summary: mail/opendkim: Fix build with lua > 5.3 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: freebsd-ports@dan.me.uk CC: freebsd-ports@dan.me.uk Flags: maintainer-feedback?(freebsd-ports@dan.me.uk) Created attachment 220370 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D220370&action= =3Dedit Fix lua version check in mail/opendkim Attempting to build mail/opendkim 2.10.3_11 with lua 5.4 installed (i.e. wi= th DEFAULT_VERSIONS+=3Dlua=3D5.4 in make.conf) leads to warnings and errors: ... Making all in miltertest cc -DHAVE_CONFIG_H -I. -I.. -I./../libopendkim -I/usr/include -I/usr/local/include/lua54 -DCONFIG_BASE=3D\"/usr/local/etc\" -O2 -pipe -march=3Dhaswell -fstack-protector-strong -fno-strict-aliasing -MT miltertest-miltertest.o -MD -MP -MF .deps/miltertest-miltertest.Tpo -c -o miltertest-miltertest.o `test -f 'miltertest.c' || echo './'`miltertest.c miltertest.c:4016:2: warning: implicit declaration of function 'luaL_regist= er' is invalid in C99 [-Wimplicit-function-declaration] luaL_register(l, "mt", mt_library); ^ miltertest.c:4171:54: error: too few arguments to function call, expected 5, have 4 script =3D=3D NULL ? "(stdin)" : script)) ^ /usr/local/include/lua54/lua.h:289:1: note: 'lua_load' declared here LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, ^ /usr/local/include/lua54/luaconf.h:292:18: note: expanded from macro 'LUA_A= PI' #define LUA_API extern ^ 1 warning and 1 error generated. *** Error code 1 This is because ports r488837 changed the #if statements in this file, but didn't use >=3D to check for any version of lua >=3D 5.2. Attached patch will make it all work for a while, until lua messes up their= API again. --=20 You are receiving this mail because: You are the assignee for the bug.=