I am having problems for compiler PostgreSQL 8.2.0 in Slackware 11.0.
I used this parameters in configure:
% ./configure --with-includes=/usr/src/linux/include
showing after the error:
...
configure: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
checking whether the C compiler still works... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
...
%
In config.log:
===================================================================================
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by PostgreSQL configure 8.2.0, which was
generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --with-includes=/usr/src/linux/include
## --------- ##
## Platform. ##
## --------- ##
hostname = darkstar
uname -m = i586
uname -r = 2.4.33.3
uname -s = Linux
uname -v = #6 Fri Sep 1 04:15:45 CDT 2006
/usr/bin/uname -p = k6-2
/bin/uname -X = iso-8859-1
/bin/arch = i586
/usr/bin/arch -k = iso-8859-1
/usr/convex/getsysinfo = iso-8859-1
hostinfo = iso-8859-1
/bin/machine = iso-8859-1
/usr/bin/oslevel = iso-8859-1
/bin/universe = iso-8859-1
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/openoffice.org2.0/program
PATH: /opt/netbeans-5.5/bin
PATH: /opt/eclipse
PATH: /opt/jude_community/bin
PATH: /opt/datastudio/bin
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1408: checking build system type
configure:1426: result: i586-pc-linux-gnu
configure:1434: checking host system type
configure:1448: result: i586-pc-linux-gnu
configure:1458: checking which template to use
configure:1558: result: linux
configure:1700: checking whether to build with 64-bit integer date/time support
configure:1732: result: no
configure:1739: checking whether NLS is wanted
configure:1774: result: no
configure:1782: checking for default port number
configure:1812: result: 5432
configure:2123: checking for gcc
configure:2139: found /usr/bin/gcc
configure:2149: result: gcc
configure:2170: checking for C compiler version
configure:2173: gcc --version </dev/null >&5
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
...
configure:3247: $? = 0
configure:3250: test -s conftest.o
configure:3253: $? = 0
configure:3272: checking how to run the C preprocessor
configure:3307: gcc -E -D_GNU_SOURCE conftest.c
In file included from /usr/include/bits/posix1_lim.h:153, from /usr/include/limits.h:144,
from/usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122, from
/usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7, from
/usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11, from conftest.c:13:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3313: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.2.0"
| #define PACKAGE_STRING "PostgreSQL 8.2.0"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.2.0"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3307: gcc -E -D_GNU_SOURCE conftest.c
In file included from /usr/include/bits/posix1_lim.h:153, from /usr/include/limits.h:144,
from/usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122, from
/usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7, from
/usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11, from conftest.c:13:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3313: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.2.0"
| #define PACKAGE_STRING "PostgreSQL 8.2.0"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.2.0"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3307: gcc -E -traditional-cpp -D_GNU_SOURCE conftest.c
In file included from /usr/include/features.h:308, from /usr/include/assert.h:36, from
conftest.c:15:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3313: $? = 1
configure: failed program was:
...
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.2.0"
| #define PACKAGE_STRING "PostgreSQL 8.2.0"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.2.0"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3489: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
...
configure: exit 1
===================================================================================
How can I solve this problem ?
[]'s
MCSL
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html