From nobody Wed Oct 11 18:27:11 2023 X-Original-To: dev-commits-ports-main@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 4S5LpR2c1Nz4wW3m; Wed, 11 Oct 2023 18:27:11 +0000 (UTC) (envelope-from git@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 4S5LpR1pXmz4WD6; Wed, 11 Oct 2023 18:27:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697048831; 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=2pplXv02NglkSwOW5XqQfezjplRuUDU8U+cswBeW+2Y=; b=DuRcakBm4g+gs/U9LS9y2cJqiLc79QhZ0xpnZNIWWISAV0a0RhTuxPqFg6p0eOlAJiaT6x 33zNnLcNDnW6TP1OhIyLSdy3Sm5JolCJbHae/8rSQcEal41gk+iDqkTSzA6RovU2K+VMM6 P0YCC0H9SlIvKsbGpEBzQBoSJjk29Tuv0SSw84/K5q5+P+nnvvOuo7Eu+db56rm/RCQ3IA 1w0NJuIJemleDD9JAMbly+brGgzM8vu97bS6OJvz/JzsiII7DR2DAY6h28ykAwg4lH69mi cJPvn8wYz/jAWxmh8IHSzBcdVxj9q3zrLefBUbdfH57bHHpB0iH1VEj/QsC2hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697048831; a=rsa-sha256; cv=none; b=if8INAN1NKakeE15d9kEz4w7O2+yyUekbFoGDmpy6PS0xrmw9to8GelBfKYlgqjBu3hyvN IYq2ZpDn31d4A7qxpRAN15MTMlQ6L7l/lCxKdByoNLkc53tvd+2eNZteX/+95Lxp3YEmmY HE21G0umGiH50R+l7yloYTlJC/hl1WPjf9tkaFplZ/b/db5XuMutFJWopB8c9zYga6/WNr iK99sg0LFZJmejMiikUx5oXoOIwBW3AR3Ts24j27k9bjrhJmnyPl2kSzJO15tJDLd6kS5Y 3w3zcWwCz6tILkXa2WukdkRu+/hU+Llnn63sZ1VeV3f2vDerqPX2GLwQJyDu9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697048831; 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=2pplXv02NglkSwOW5XqQfezjplRuUDU8U+cswBeW+2Y=; b=xUXQ3acugVWQ/m+6gacYNba15+vGV7SbEeaIZ3prAblP1sDeSTOGdvRicR5qAvdMPp7f1B IIyglf0BdxLW6KTXFfAlWn+BHHf/ahDtnlwbm9v+DycJhwuCFUuc0vAYiO7iWsbetlgrwO TkJPanFQd/I4eqx15Rh69Kx3UQZ04GcyojW29KT92NQz1/9YqNGA9f5djIaV/3GExbf6ag BJtievXjW0pnYkONSGHpPeJgfKGQ9X3iBiAfrg0Zts3LpbTRtq1AqKL6E1ni0Pz/IMmRip 3jcTF0qMO0x0XqXSccocb1OYntmyLTulBh+4DaeeOTO1X91+yP88C4rXKCOw2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4S5LpR0qJmzXJ9; Wed, 11 Oct 2023 18:27:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39BIRBiU091216; Wed, 11 Oct 2023 18:27:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39BIRBmH091213; Wed, 11 Oct 2023 18:27:11 GMT (envelope-from git) Date: Wed, 11 Oct 2023 18:27:11 GMT Message-Id: <202310111827.39BIRBmH091213@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: b7c9e0e4796c - main - devel/dyncall: fix build on powerpc List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b7c9e0e4796ce3341fa3df7f508095e1705cc6e9 Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=b7c9e0e4796ce3341fa3df7f508095e1705cc6e9 commit b7c9e0e4796ce3341fa3df7f508095e1705cc6e9 Author: Piotr Kubaj AuthorDate: 2023-10-10 15:17:38 +0000 Commit: Piotr Kubaj CommitDate: 2023-10-11 18:26:31 +0000 devel/dyncall: fix build on powerpc cc -O2 -pipe -fPIC -fstack-protector-strong -fno-strict-aliasing -I/wrkdirs/usr/ports/devel/dyncall/work/dyncall-1.4/./dyncallback/../dyncall -c dyncall_thunk.c -o dyncall_thunk.o In file included from dyncall_thunk.c:38: ./dyncall_thunk_ppc32_sysv.c:28:28: warning: parameter 'x' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static unsigned short hi16(x) { return ( (unsigned short) (((unsigned int)x)>>16UL) ); } ^ ./dyncall_thunk_ppc32_sysv.c:28:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static unsigned short hi16(x) { return ( (unsigned short) (((unsigned int)x)>>16UL) ); } ^ ./dyncall_thunk_ppc32_sysv.c:29:28: warning: parameter 'x' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static unsigned short lo16(x) { return ( (unsigned short) ((unsigned int)x) ); } ^ ./dyncall_thunk_ppc32_sysv.c:29:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static unsigned short lo16(x) { return ( (unsigned short) ((unsigned int)x) ); } ^ ./dyncall_thunk_ppc32_sysv.c:41:26: error: incompatible pointer to integer conversion passing 'DCThunk *' (aka 'struct DCThunk_ *') to parameter of type 'int' [-Wint-conversion] p->addr_self_hi = hi16(p); ^ ./dyncall_thunk_ppc32_sysv.c:43:26: error: incompatible pointer to integer conversion passing 'DCThunk *' (aka 'struct DCThunk_ *') to parameter of type 'int' [-Wint-conversion] p->addr_self_lo = lo16(p); --- .../files/patch-dyncallback_dyncall__thunk__ppc32__sysv.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/devel/dyncall/files/patch-dyncallback_dyncall__thunk__ppc32__sysv.c b/devel/dyncall/files/patch-dyncallback_dyncall__thunk__ppc32__sysv.c new file mode 100644 index 000000000000..88c56ccb381b --- /dev/null +++ b/devel/dyncall/files/patch-dyncallback_dyncall__thunk__ppc32__sysv.c @@ -0,0 +1,13 @@ +--- dyncallback/dyncall_thunk_ppc32_sysv.c.orig 2023-10-10 15:09:47 UTC ++++ dyncallback/dyncall_thunk_ppc32_sysv.c +@@ -25,8 +25,8 @@ + + #include "dyncall_thunk.h" + +-static unsigned short hi16(x) { return ( (unsigned short) (((unsigned int)x)>>16UL) ); } +-static unsigned short lo16(x) { return ( (unsigned short) ((unsigned int)x) ); } ++static unsigned short hi16(DCThunk* x) { return ( (unsigned short) (((unsigned int)x)>>16UL) ); } ++static unsigned short lo16(DCThunk* x) { return ( (unsigned short) ((unsigned int)x) ); } + + void dcbInitThunk(DCThunk* p, void (*entry)()) + {