Include file problem

Started by Pasi Salminenalmost 25 years ago5 messagesgeneral
Jump to latest
#1Pasi Salminen
pasi.salminen@khf.fi

Hello,

I am trying to compile PostgreSQL 7.1.2 on Redhat Linux 7.0 in Intel Pentium Pro
I have done following:

1. ./configure --prefix=/usr/local/pgsql --with-template=linux
--with-odbc --disable-locale --with-pgport=5432 --enable-hba --with-perl

2. gmake

Following error occurs:
...
gmake[3]: Entering directory `/usr/local/src/postgresql-7.1.2/src/backend/libpq'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include
-c -o auth.o auth.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1
30,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits.
h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1
1,
from /usr/include/sys/param.h:22,
from auth.c:21:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from auth.c:21:
/usr/include/sys/param.h:23:26: linux/limits.h: No such file or directory
/usr/include/sys/param.h:24:25: linux/param.h: No such file or directory
gmake[3]: *** [auth.o] Error 1
gmake[3]: Leaving directory `/usr/local/src/postgresql-7.1.2/src/backend/libpq'
gmake[2]: *** [libpq-recursive] Error 2
gmake[2]: Leaving directory `/usr/local/src/postgresql-7.1.2/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/src/postgresql-7.1.2/src'
gmake: *** [all] Error 2

I know a little about programming and I think some include path are wrong.
I have installed Redhat 7.0 without any modifications to the .iso package
and postgres package is the newest from ftp.postgresql.org.

What should I do to get the compile work?

Thanks.

Pasi Salminen
pasi.salminen@khf.fi

In reply to: Pasi Salminen (#1)
Re: Include file problem

"Pasi Salminen" <pasi.salminen@khf.fi> writes:

Hello,

I am trying to compile PostgreSQL 7.1.2 on Redhat Linux 7.0 in Intel Pentium Pro
I have done following:

1. ./configure --prefix=/usr/local/pgsql --with-template=linux
--with-odbc --disable-locale --with-pgport=5432 --enable-hba --with-perl

2. gmake

Following error occurs:
...
gmake[3]: Entering directory `/usr/local/src/postgresql-7.1.2/src/backend/libpq'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include
-c -o auth.o auth.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1
30,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits.
h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1
1,
from /usr/include/sys/param.h:22,
from auth.c:21:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or
directory

You miss the "kernel-headers"-package.,

I know a little about programming and I think some include path are wrong.
I have installed Redhat 7.0 without any modifications to the .iso
package

Remember to keep your system up2date, by running up2date or manually
downloading the packages.

--
Trond Eivind Glomsr�d
Red Hat, Inc.

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Pasi Salminen (#1)
Re: Include file problem

"Pasi Salminen" <pasi.salminen@khf.fi> writes:

In file included from auth.c:21:
/usr/include/sys/param.h:23:26: linux/limits.h: No such file or directory
/usr/include/sys/param.h:24:25: linux/param.h: No such file or directory

Evidently you don't have a complete set of system include files.

I recall that the last time I did a Linux install, some of the system
include files were tucked away in obscure packages that weren't
installed by default; but I don't recall more details than that.
Go back to your distribution CD and look over the uninstalled
packages for mention of "include files" or "header files" ...

regards, tom lane

#4Alex Pilosov
alex@pilosoft.com
In reply to: Pasi Salminen (#1)
Re: Include file problem

It smells to me that you didn't install kernel-includes (or however the
RPM package is called which has files under /usr/include/linux).

If you don't have a file /usr/include/linux/limits.h, try to find out to
which RPM it belongs, and install that RPM.

On Mon, 11 Jun 2001, Pasi Salminen wrote:

Show quoted text

Hello,

I am trying to compile PostgreSQL 7.1.2 on Redhat Linux 7.0 in Intel Pentium Pro
I have done following:

1. ./configure --prefix=/usr/local/pgsql --with-template=linux
--with-odbc --disable-locale --with-pgport=5432 --enable-hba --with-perl

2. gmake

Following error occurs:
...
gmake[3]: Entering directory `/usr/local/src/postgresql-7.1.2/src/backend/libpq'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include
-c -o auth.o auth.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1
30,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits.
h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1
1,
from /usr/include/sys/param.h:22,
from auth.c:21:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from auth.c:21:
/usr/include/sys/param.h:23:26: linux/limits.h: No such file or directory
/usr/include/sys/param.h:24:25: linux/param.h: No such file or directory
gmake[3]: *** [auth.o] Error 1
gmake[3]: Leaving directory `/usr/local/src/postgresql-7.1.2/src/backend/libpq'
gmake[2]: *** [libpq-recursive] Error 2
gmake[2]: Leaving directory `/usr/local/src/postgresql-7.1.2/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/src/postgresql-7.1.2/src'
gmake: *** [all] Error 2

I know a little about programming and I think some include path are wrong.
I have installed Redhat 7.0 without any modifications to the .iso package
and postgres package is the newest from ftp.postgresql.org.

What should I do to get the compile work?

Thanks.

Pasi Salminen
pasi.salminen@khf.fi

#5Lamar Owen
lamar.owen@wgcr.org
In reply to: Pasi Salminen (#1)
Re: Include file problem

On Monday 11 June 2001 09:02, Pasi Salminen wrote:

gmake[3]: Entering directory
`/usr/local/src/postgresql-7.1.2/src/backend/libpq' gcc -O2 -Wall
-Wmissing-prototypes -Wmissing-declarations -I../../../src/include -c -o
auth.o auth.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1 30,
from
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits. h:7,
from
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:1 1,
from /usr/include/sys/param.h:22,
from auth.c:21:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or

Install the kernel-headers package.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11