readline-4.2a compile ,installation problem

From: "Archie MacDonald (rsh)" <archie(at)met(dot)ed(dot)ac(dot)uk>
To: pgsql-admin(at)postgresql(dot)org
Subject: readline-4.2a compile ,installation problem
Date: 2003-08-25 14:36:22
Message-ID: 3F4A1EE6.7FEDA5AE@met.ed.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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%20Solaris%208%209/view

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(at)met(dot)ed(dot)ac(dot)uk
EOS MLS Research Fellow T: +44 131 650 5096
Institute for Meteorology W: http://www.met.ed.ac.uk/~archie/
School of GeoSciences
----------------------------------------------------------------------

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Steve Santacroce 2003-08-25 15:14:00 pg_ctl won't start postgres, but postmaster will?!
Previous Message Rodrigo De la Peña 2003-08-25 13:46:05 unsubscribe