Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 77E40B5D91F for ; Wed, 22 Jun 2011 07:54:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 90204-04 for ; Wed, 22 Jun 2011 10:54:15 +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 C6D79B5D8BD for ; Wed, 22 Jun 2011 07:54:14 -0300 (ADT) 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 p5MAsEdT043124 for ; Wed, 22 Jun 2011 10:54:14 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p5MAsDpC043123; Wed, 22 Jun 2011 10:54:13 GMT (envelope-from www) Date: Wed, 22 Jun 2011 10:54:13 GMT Message-Id: <201106221054.p5MAsDpC043123@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6072: VPATH build fails in src/backend/port for src tarball, errcodes.h not found From: "Hartmut "Hardy" Raschick" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201106/189 X-Sequence-Number: 30568 The following bug has been logged online: Bug reference: 6072 Logged by: Hartmut "Hardy" Raschick Email address: hartmut.raschick@keymile.com PostgreSQL version: 9.1beta2 Operating system: Linux, Solaris Description: VPATH build fails in src/backend/port for src tarball, errcodes.h not found Details: WHERE: postgresql-9.1beta2.tar.bz Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux GNU Make 3.81 gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50) OR SunOS 5.9 Generic_122300-46 sun4u sparc SUNW,Sun-Fire-V440 GNU Make 3.80 cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12 WHAT (Linux example): cd /tmp tar xvjf postgresql-9.1beta2.tar.bz cd postgresql-9.1beta2 mkdir build cd build ../configure ... make ... gmake[3]: Entering directory `/tmp/postgresql-9.1beta2/build/src/backend' cd ../../src/include/utils/ && rm -f errcodes.h && \ ln -s ../../../src/backend/utils/errcodes.h . gmake[3]: Leaving directory `/tmp/postgresql-9.1beta2/build/src/backend' gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -I../../src/port -I../../src/include -I/tmp/postgresql-9.1beta2/build/../src/include -D_GNU_SOURCE -c /tmp/postgresql-9.1beta2/build/../src/port/getpeereid.c -o getpeereid_srv.o gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -I../../src/port -I../../src/include -I/tmp/postgresql-9.1beta2/build/../src/include -D_GNU_SOURCE -c /tmp/postgresql-9.1beta2/build/../src/port/strlcat.c -o strlcat_srv.o gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -I../../src/port -I../../src/include -I/tmp/postgresql-9.1beta2/build/../src/include -D_GNU_SOURCE -c /tmp/postgresql-9.1beta2/build/../src/port/strlcpy.c -o strlcpy_srv.o gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -I../../src/port -I../../src/include -I/tmp/postgresql-9.1beta2/build/../src/include -D_GNU_SOURCE -c /tmp/postgresql-9.1beta2/build/../src/port/chklocale.c -o chklocale_srv.o In file included from /tmp/postgresql-9.1beta2/build/../src/include/postgres.h:48, from /tmp/postgresql-9.1beta2/build/../src/port/chklocale.c:17: /tmp/postgresql-9.1beta2/build/../src/include/utils/elog.h:69:28: error: utils/errcodes.h: No such file or directory gmake[2]: *** [chklocale_srv.o] Error 1 gmake[2]: Leaving directory `/tmp/postgresql-9.1beta2/build/src/port' gmake[1]: *** [all-port-recurse] Error 2 gmake[1]: Leaving directory `/tmp/postgresql-9.1beta2/build/src' gmake: *** [all-src-recurse] Error 2 FIX: changing line 178 in src/backend/Makefile from $(LN_S) ../../../$(subdir)/utils/errcodes.h . to $(LN_S) $(top_srcdir)/$(subdir)/utils/errcodes.h . fixes this for me. not sure, whether this is the "proper" fix. see also: http://archives.postgresql.org/pgsql-hackers/2011-02/msg00218.php apparently not fixed...