Re: BUG #5665: catalog/schemapg.h: No such file or directory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5665: catalog/schemapg.h: No such file or directory
Дата
Msg-id 2146.1296409499@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5665: catalog/schemapg.h: No such file or directory  (Dylan Alex Simon <dylan@dylex.net>)
Ответы Re: BUG #5665: catalog/schemapg.h: No such file or directory  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Dylan Alex Simon <dylan@dylex.net> 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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Dylan Alex Simon
Дата:
Сообщение: Re: BUG #5665: catalog/schemapg.h: No such file or directory
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5665: catalog/schemapg.h: No such file or directory