From: Archie MacDonald (rsh) <archie@met.ed.ac.uk>
To: pgsql-admin@postgresql.org
Subject: readline-4.2a compile ,installation problem
Date: Mon, 25 Aug 2003 15:36:22 +0100
Message-ID: <3F4A1EE6.7FEDA5AE@met.ed.ac.uk> (raw)
Hi Folks
I am following the instructions in the techdocs for solaris 8 ( see
link below) and I am trying to
instal readline 4.2a first. It has not went well so far ...:-(
http://techdocs.postgresql.org/v2/Guides/Installation%20Guides/Compiling%20PostgreSQL%207.3.2%20on%2...
I am using gcc 3.2 , GNU Make 3.80 . I tried the following commands
:-
su - postgres
unset LD_LIBRARY_PATH LD_RUN_PATH
PATH=/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/local/GNU/bin/
LD_OPTIONS='-R$ORIGIN/../lib'
CFLAGS='-O2 -I/opt/pgsql/include'
CPPFLAGS='-O2 -I/opt/pgsql/include'
export CFLAGS CPPFLAGS LD_OPTIONS PATH
./configure --prefix=/opt/pgsql
/usr/local/GNU/bin/make shared
This is the error I get :-
test -d shlib || mkdir shlib
( cd shlib ; /usr/local/GNU/bin/make all )
make[1]: Entering directory `/tmp/readline-4.2a/shlib'
rm -f readline.so
gcc -c -DHAVE_CONFIG_H -O2 -I/opt/pgsql/include -I. -I..
-I.. -DRL_LIBRARY_VERSION='"4.2a"' -O2 -I/opt/pgsql/include
-fpic -o readline.o ../readline.c
In file included from ../posixstat.h:27,
from ../readline.c:30:
/usr/include/sys/stat.h:258: parse error before "blksize_t"
/usr/include/sys/stat.h:262: parse error before '}' token
/usr/include/sys/stat.h:318: parse error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of
`st_blocks'
/usr/include/sys/stat.h:322: parse error before '}' token
make[1]: *** [readline.so] Error 1
make[1]: Leaving directory `/tmp/readline-4.2a/shlib'
make: [shared] Error 2 (ignored)
I have tried changing a number of things e.g.. removing optimize flags
-O2, not using the shared signal ,
adding --enable-shared to configure step. Unfortunately I get the same
problem... :-(
I am not a sysadmin person so I don't know why the
/usr/include/sys/stat.h file could cause me
problems? There are no error messages in the configure step but looking
at the config.log it
does indicate that the errors are already present.
If anyone has any suggestions to what might be causing my problem I
would be very keen to hear.
Thanks in advance.
Regards, Archie
--
----------------------------------------------------------------------
Archie MacDonald E: archie@met.ed.ac.uk
EOS MLS Research Fellow T: +44 131 650 5096
Institute for Meteorology W: http://www.met.ed.ac.uk/~archie/
School of GeoSciences
----------------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: archie@met.ed.ac.uk
Subject: Re: readline-4.2a compile ,installation problem
In-Reply-To: <3F4A1EE6.7FEDA5AE@met.ed.ac.uk>
References: <3F4A1EE6.7FEDA5AE@met.ed.ac.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox