Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuGDZ-0002xJ-G9 for pgsql-committers@arkaria.postgresql.org; Sat, 01 Apr 2017 10:25:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cuGDY-0004zc-MJ for pgsql-committers@arkaria.postgresql.org; Sat, 01 Apr 2017 10:25:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cuGDX-0004yc-RX for pgsql-committers@postgresql.org; Sat, 01 Apr 2017 10:25:12 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cuGDP-0007CH-Nj; Sat, 01 Apr 2017 10:25:10 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1470:60c0:76e5:bff:fef3:7e00]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3vwDy82C01z3F0T; Sat, 1 Apr 2017 12:24:47 +0200 (CEST) Date: Sat, 1 Apr 2017 12:24:45 +0200 From: Christoph Berg To: Kevin Grittner Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Try to fix breakage of sepgsql hooks by ENR patch. Message-ID: <20170401102445.fmkdp36lrvptjqdi@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Kevin Grittner , pgsql-committers@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Re: Kevin Grittner 2017-04-01 > Try to fix breakage of sepgsql hooks by ENR patch. > > Turned up by buildfarm animal rhinoceros. Fixing blind. Will have > to wait for next run by rhinoceros to know whether it worked. Fwiw, I was seeing sepgsql problems on Ubuntu xenial and trusty this morning (but not on Debian). Jenkins claims it was on 25dc142, so even one commit before the ENR patch (which I think can be trusted, but MMMV). Anyway, it's fixed now with this commit. Thanks! 07:07:48 make[3]: Entering directory '/<>/build/contrib/sepgsql' 07:07:48 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -I. -I/<>/build/../contrib/sepgsql -I../../src/include -I/<>/build/../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o hooks.o /<>/build/../contrib/sepgsql/hooks.c 07:07:48 /<>/build/../contrib/sepgsql/hooks.c: In function 'sepgsql_utility_command': 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:368:12: warning: passing argument 5 of 'next_ProcessUtility_hook' from incompatible pointer type [-Wincompatible-pointer-types] 07:07:48 dest, completionTag); 07:07:48 ^ 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:368:12: note: expected 'QueryEnvironment * {aka struct QueryEnvironment *}' but argument is of type 'DestReceiver * {aka struct _DestReceiver *}' 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:368:18: warning: passing argument 6 of 'next_ProcessUtility_hook' from incompatible pointer type [-Wincompatible-pointer-types] 07:07:48 dest, completionTag); 07:07:48 ^ 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:368:18: note: expected 'DestReceiver * {aka struct _DestReceiver *}' but argument is of type 'char *' 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:366:4: error: too few arguments to function 'next_ProcessUtility_hook' 07:07:48 (*next_ProcessUtility_hook) (pstmt, queryString, 07:07:48 ^ 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:372:10: warning: passing argument 5 of 'standard_ProcessUtility' from incompatible pointer type [-Wincompatible-pointer-types] 07:07:48 dest, completionTag); 07:07:48 ^ 07:07:48 In file included from /<>/build/../contrib/sepgsql/hooks.c:23:0: 07:07:48 /<>/build/../src/include/tcop/utility.h:38:13: note: expected 'QueryEnvironment * {aka struct QueryEnvironment *}' but argument is of type 'DestReceiver * {aka struct _DestReceiver *}' 07:07:48 extern void standard_ProcessUtility(PlannedStmt *pstmt, const char *queryString, 07:07:48 ^ 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:372:16: warning: passing argument 6 of 'standard_ProcessUtility' from incompatible pointer type [-Wincompatible-pointer-types] 07:07:48 dest, completionTag); 07:07:48 ^ 07:07:48 In file included from /<>/build/../contrib/sepgsql/hooks.c:23:0: 07:07:48 /<>/build/../src/include/tcop/utility.h:38:13: note: expected 'DestReceiver * {aka struct _DestReceiver *}' but argument is of type 'char *' 07:07:48 extern void standard_ProcessUtility(PlannedStmt *pstmt, const char *queryString, 07:07:48 ^ 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:370:4: error: too few arguments to function 'standard_ProcessUtility' 07:07:48 standard_ProcessUtility(pstmt, queryString, 07:07:48 ^ 07:07:48 In file included from /<>/build/../contrib/sepgsql/hooks.c:23:0: 07:07:48 /<>/build/../src/include/tcop/utility.h:38:13: note: declared here 07:07:48 extern void standard_ProcessUtility(PlannedStmt *pstmt, const char *queryString, 07:07:48 ^ 07:07:48 /<>/build/../contrib/sepgsql/hooks.c: In function '_PG_init': 07:07:48 /<>/build/../contrib/sepgsql/hooks.c:464:22: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] 07:07:48 ProcessUtility_hook = sepgsql_utility_command; 07:07:48 ^ 07:07:48 : recipe for target 'hooks.o' failed 07:07:48 make[3]: *** [hooks.o] Error 1 Christoph -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers