Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0E872133740B for ; Sat, 29 Jan 2011 08:09:36 -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 60681-04 for ; Sat, 29 Jan 2011 12:09:28 +0000 (UTC) X-Greylist: delayed 00:22:30.981274 by SQLgrey-1.7.6 Received: from datura.dylex.net (datura.dylex.net [216.27.141.80]) by mail.postgresql.org (Postfix) with ESMTP id 98C7F1336971 for ; Sat, 29 Jan 2011 08:09:28 -0400 (AST) Received: from dylan by datura.dylex.net with local (Exim 4.72) (envelope-from ) id 1Pj9GZ-0002k9-Qx for pgsql-bugs@postgresql.org; Sat, 29 Jan 2011 06:46:55 -0500 Date: Sat, 29 Jan 2011 06:46:55 -0500 From: Dylan Alex Simon To: pgsql-bugs@postgresql.org Subject: Re: BUG #5665: catalog/schemapg.h: No such file or directory Message-ID: <20110129114655.GA10393@datura.dylex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Jabber-ID: dylan@dylex.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/240 X-Sequence-Number: 29262 I'm seeing this problem too, so I might be able to shed some light on it. Here's exactly what I did: > cd /usr/src/postgresql-9.0.2 > tar -xjvf postgresql-9.0.2.tar.bz2 > mv postgresql-9.0.2 src > mkdir obj-x86_64 > cd obj-x86_64 > /usr/src/postgresql-9.0.2/src/configure '--prefix=/usr/local/postgresql-9.0.2' \ '--exec-prefix=/usr/local/postgresql-9.0.2' \ '--libdir=/usr/local/postgresql-9.0.2/lib64' \ '--sysconfdir=/usr/etc' \ '--localstatedir=/var' \ '--disable-nls' \ '--enable-integer-datetimes' > make ... make[4]: Entering directory `/loot/src/postgresql-9.0.2/obj-x86_64/src/backend/utils/cache' gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/usr/src/postgresql-9.0.2/src/src/include -D_GNU_SOURCE -c -o relcache.o /usr/src/postgresql-9.0.2/src/src/backend/utils/cache/relcache.c /usr/src/postgresql-9.0.2/src/src/backend/utils/cache/relcache.c:57:30: fatal error: catalog/schemapg.h: No such file or directory compilation terminated. > find /usr/src/postgresql-9.0.2 -name schemapg.h -ls -rw-r--r-- 1 dylan src 14754 Dec 13 22:20 ./src/src/backend/catalog/schemapg.h lrwxrwxrwx 1 dylan src 68 Jan 29 06:38 ./obj-x86_64/src/include/catalog/schemapg.h -> /loot/src/postgresql-9.0.2/obj-x86_64/src/backend/catalog/schemapg.h > make -C /usr/src/postgresql-9.0.2/obj-x86_64/src/backend/catalog schemapg.h make: `/usr/src/postgresql-9.0.2/src/src/backend/catalog/schemapg.h' is up to date. > make -v GNU Make 3.82 It looks like this is related to VPATH, in that make finds the distributed schemapg.h when it goes to generate it in the obj directory, and so it's never created there. Perhaps schemapg.h should not be distributed if it's generated, or the symlink should point to srcdir instead of builddir.