Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLSM3-0002YN-Q8 for pgsql-committers@postgresql.org; Tue, 09 Oct 2012 05:27:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLSM1-0008PD-I1 for pgsql-committers@postgresql.org; Tue, 09 Oct 2012 05:27:43 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q995Rcxp002548; Tue, 9 Oct 2012 01:27:38 -0400 (EDT) From: Tom Lane To: Alvaro Herrera cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix thinko in previous commit In-reply-to: <20695.1349757261@sss.pgh.pa.us> References: <20121009041314.GC28686@alvh.no-ip.org> <20695.1349757261@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 09 Oct 2012 00:34:21 -0400" Date: Tue, 09 Oct 2012 01:27:38 -0400 Message-ID: <2547.1349760458@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/118 X-Sequence-Number: 49427 I wrote: > But having said that, it seems there's something wrong with the > STATIC_IF_INLINE patch for the case where USE_INLINE doesn't get set. > I'm too tired to investigate right now, but if you manually disable > USE_INLINE in pg_config.h after configuring, do you see a problem? I summoned the energy to run a build with an old non-inline-aware C compiler, and it went through, so the explanation is not that simple. Looking again at the spoonbill failure, it's striking that it gets as far as plpython before choking. The symptoms are consistent with the theory that USE_INLINE is getting #define'd by some Python header or other, after having *not* been defined by pg_config.h. Maybe we should rename that to PG_USE_INLINE? BTW, just noticing that this theory espoused in plpython.h: * Undefine some things that get (re)defined in the Python headers. They aren't * used by the PL/Python code, and all PostgreSQL headers should be included * earlier, so this should be pretty safe. is entirely full of it, as the plpy_*.h files feel free to pull in random Postgres header files. Maybe that area needs another look. It's (probably) not contributing to this particular breakage, but I can't say that I think undef'ing things like _POSIX_C_SOURCE midstream is a bright idea at all. Seems to me that could easily result in inconsistent results from reading different system header files. regards, tom lane