pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
To: pgsql-bugs@postgresql.org
Subject: BUG #5878: BTREE_BUILD_STATS causes 'make check' to fail
Date: Thu, 10 Feb 2011 12:56:53 GMT
Message-ID: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org> (raw)


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



view thread (3+ messages)  latest in thread

Message-ID: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org>
Permalink:  ../201102101256.p1ACurU7089757@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201102101256.p1ACurU7089757@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Jan-Peter.Seifert@gmx.de
  Subject: Re: BUG #5878: BTREE_BUILD_STATS causes 'make check' to fail
  In-Reply-To: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org>
  References: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox