Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EA88B1337999 for ; Sun, 30 Jan 2011 13:45:11 -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 70226-03 for ; Sun, 30 Jan 2011 17:45:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 159841337B4E for ; Sun, 30 Jan 2011 13:45:03 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0UHj0n3002147; Sun, 30 Jan 2011 12:45:00 -0500 (EST) To: Dylan Alex Simon cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5665: catalog/schemapg.h: No such file or directory In-reply-to: <20110129114655.GA10393@datura.dylex.net> References: <20110129114655.GA10393@datura.dylex.net> Comments: In-reply-to Dylan Alex Simon message dated "Sat, 29 Jan 2011 06:46:55 -0500" Date: Sun, 30 Jan 2011 12:44:59 -0500 Message-ID: <2146.1296409499@sss.pgh.pa.us> From: Tom Lane 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/241 X-Sequence-Number: 29263 Dylan Alex Simon writes: > 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 Hm. I can't replicate this at all. I followed your recipe (except for starting in ~/tmp not /usr/src) and the make completed without error. I see $ pwd /home/tgl/tmp/postgresql-9.0.2 $ find . -name schemapg.h -ls 1984573 16 -rw-r--r-- 1 tgl tgl 14754 Dec 13 22:20 ./src/src/backend/catalog/schemapg.h 2097841 0 lrwxrwxrwx 1 tgl tgl 65 Jan 29 18:25 ./obj-x86_64/src/include/catalog/schemapg.h -> /home/tgl/tmp/postgresql-9.0.2/src/src/backend/catalog/schemapg.h As you can see, the symlink has the correct absolute path to the schemapg.h file in the source tree. You're getting a wrong link: > 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 I'm not sure about the "/loot" part (copy and paste-o?) but anyway it seems to be pointing into the build tree not the source tree. >> make -v >> GNU Make 3.82 Mine is 3.81 (Fedora 13). Is it possible this is a bug introduced in 3.82? The symlink is made this way: $(top_builddir)/src/include/catalog/schemapg.h: catalog/schemapg.h prereqdir=`cd $(dir $<) >/dev/null && pwd` && \ cd $(dir $@) && rm -f $(notdir $@) && \ $(LN_S) "$$prereqdir/$(notdir $<)" . so AFAICS the possibilities are that make is getting the wrong answer for "dir $<" or that pwd is broken. What platform are you on exactly? regards, tom lane