Skip site navigation (1) Skip section navigation (2)

7.1 Build fails with Bash and CDPATH

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: 7.1 Build fails with Bash and CDPATH
Date: 2001-04-24 13:31:50
Message-ID: 200104241331.f3ODVoP76222@hub.org (view raw or flat)
Thread:
Lists: pgsql-bugs
Mark Hollomon (mhh(at)mindspring(dot)com) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
7.1 Build fails with Bash and CDPATH

Long Description
If using Bash with CDPATH set, the build of 7.1 fails with the following messages:

gmake[2]: Entering directory `/home/mhh/src/postgresql-7.1/src/backend'
prereqdir=`cd parser/ && pwd` && \
  cd ../../src/include/parser/ && rm -f parse.h && \
  ln -s $prereqdir/parse.h .
ln: .//parser exists
gmake[2]: *** [../../src/include/parser/parse.h] Error 1
gmake[2]: *** Deleting file `../../src/include/parser/parse.h'
gmake[2]: Leaving directory `/home/mhh/src/postgresql-7.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/mhh/src/postgresql-7.1/src'
gmake: *** [all] Error 2


I believe the following patch to backend/Makefile solves the problem:

*** Makefile.orig       Tue Apr 24 09:27:44 2001
--- Makefile    Tue Apr 24 09:29:47 2001
***************
*** 97,103 ****
  # up to date when we update the base file.
  
  $(top_builddir)/src/include/parser/parse.h: $(srcdir)/parser/parse.h
!       prereqdir=`cd $(dir $<) && pwd` && \
          cd $(dir $@) && rm -f $(notdir $@) && \
          $(LN_S) $$prereqdir/$(notdir $<) .
  
--- 97,103 ----
  # up to date when we update the base file.
  
  $(top_builddir)/src/include/parser/parse.h: $(srcdir)/parser/parse.h
!       prereqdir=`cd $(dir $<) > /dev/null && pwd` && \
          cd $(dir $@) && rm -f $(notdir $@) && \
          $(LN_S) $$prereqdir/$(notdir $<) .




Sample Code


No file was uploaded with this report


Responses

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-04-24 13:49:44
Subject: incompatible return type for netmask(inet) function between 7.0.3 and 7.1
Previous:From: Darren CookDate: 2001-04-24 08:55:38
Subject: Re: postgres.h missing

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group