Обсуждение: make fails on linux

Поиск
Список
Период
Сортировка

make fails on linux

От
"KARTHIKEYAN G.N."
Дата:
Hi,
While doing a make of postgresql7.0.3 i got an error.  the details are
mentioned below.  hope somebody out there has a fix for this.

the environment is:

System Configuration
--------------------
  Operating System   : Linux 2.0.33 (Redhat)

  PostgreSQL version : 7.0.3

  Compiler used      : gcc 2.7.2

  flex 2.5.3

  gmake 3.78.1


Hardware:
---------
i586

Problem Description:
--------------------
I have copied and pasted the error here below.  notice the "no rules for

fmgr/SUBSYS.o" at the end.


gmake[3]: Entering directory
`/home2/www/postgresql-7.0.3/src/backend/utils/fmgr'
gcc -I../../../include -I../../../backend   -O2 -Wall
-Wmissing-prototypes -Wmissing-declarations -I../..   -c -o dfmgr.o
dfmgr.c
In file included from dfmgr.c:25:
../../../include/dynloader.h:20: dlfcn.h: No such file or directory
In file included from ../../../include/utils/builtins.h:39,
                 from dfmgr.c:26:
../../../include/utils/varbit.h:29: warning: `BITSPERBYTE' redefined
/usr/include/values.h:31: warning: this is the location of the previous
definition
gmake[3]: *** [dfmgr.o] Error 1
gmake[3]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils/fmgr'
gmake[3]: Entering directory
`/home2/www/postgresql-7.0.3/src/backend/utils/hash'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils/hash'
gmake[3]: Entering directory
`/home2/www/postgresql-7.0.3/src/backend/utils/init'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils/init'
gmake[3]: Entering directory
`/home2/www/postgresql-7.0.3/src/backend/utils/misc'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils/misc'
gmake[3]: Entering directory
`/home2/www/postgresql-7.0.3/src/backend/utils/mmgr'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils/mmgr'
gmake[3]: Entering directory
`/home2/www/postgresql-7.0.3/src/backend/utils/sort'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils/sort'
gmake[3]: Entering directory
`/home2/www/postgresql-7.0.3/src/backend/utils/time'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils/time'
gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes
-Wmissing-declarations -I..    -c -o fmgrtab.o fmgrtab.c
gmake[2]: *** No rule to make target `fmgr/SUBSYS.o', needed by
`SUBSYS.o'.  Stop.
gmake[2]: Leaving directory
`/home2/www/postgresql-7.0.3/src/backend/utils'
gmake[1]: *** [utils.dir] Error 2
gmake[1]: Leaving directory `/home2/www/postgresql-7.0.3/src/backend'
gmake: *** [all] Error 2



Re: make fails on linux

От
Tom Lane
Дата:
"KARTHIKEYAN G.N." <karthikeyan.nandakumar@wipro.com> writes:
> In file included from dfmgr.c:25:
> ../../../include/dynloader.h:20: dlfcn.h: No such file or directory

Possibly there's some confusion about whether your system uses ELF
object-code format or not.  Or maybe you just haven't installed the
source RPM that provides <dlfcn.h>.

7.0.3 is old news anyway; I suggest trying 7.1.

            regards, tom lane