Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 83C941337BDE for ; Thu, 10 Feb 2011 08:56:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 40030-07 for ; Thu, 10 Feb 2011 12:56:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id BB8C81337B8C for ; Thu, 10 Feb 2011 08:56:53 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p1ACurjO089758 for ; Thu, 10 Feb 2011 12:56:53 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p1ACurU7089757; Thu, 10 Feb 2011 12:56:53 GMT (envelope-from www) Date: Thu, 10 Feb 2011 12:56:53 GMT Message-Id: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5878: BTREE_BUILD_STATS causes 'make check' to fail From: "Jan-Peter Seifert" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201102/97 X-Sequence-Number: 29369 The following bug has been logged online: Bug reference: 5878 Logged by: Jan-Peter Seifert Email address: Jan-Peter.Seifert@gmx.de PostgreSQL version: 8.4.7 Operating system: Ubuntu 10.04 LTS Description: BTREE_BUILD_STATS causes 'make check' to fail Details: Hello, I experimented a bit with compiling PostgreSQL with debug macros. I set up a Makefile.custom with the following contents: CFLAGS+=-DLOCK_DEBUG CFLAGS+=-DBTREE_BUILD_STATS CFLAGS+=-DWAL_DEBUG However, as long as I have BTREE_BUILD_STATS defined, 'make check' fails on me with the following message: ... btree.c: In function ‘btbuild’: nbtree.c:100: error: ‘log_btree_build_stats’ undeclared (first use in this function) nbtree.c:100: error: (Each undeclared identifier is reported only once nbtree.c:100: error: for each function it appears in.) nbtree.c:101: warning: implicit declaration of function ‘ResetUsage’ nbtree.c:146: warning: implicit declaration of function ‘ShowUsage’ ... Without this macro the server seems to install nicely. Am I just doing something wrongly - I'm not really familiar with gcc? Thank you very much, Peter