pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
readline-4.2a  compile ,installation  problem
3+ messages / 3 participants
[nested] [flat]

* readline-4.2a  compile ,installation  problem
@ 2003-08-25 14:36  Archie MacDonald (rsh) <archie@met.ed.ac.uk>
  0 siblings, 2 replies; 3+ messages in thread

From: Archie MacDonald (rsh) @ 2003-08-25 14:36 UTC (permalink / raw)
  To: 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%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
----------------------------------------------------------------------






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: readline-4.2a  compile ,installation  problem
@ 2003-08-25 17:55  Peter Eisentraut <peter_e@gmx.net>
  parent: Archie MacDonald (rsh) <archie@met.ed.ac.uk>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2003-08-25 17:55 UTC (permalink / raw)
  To: Archie MacDonald (rsh) <archie@met.ed.ac.uk>; +Cc: pgsql-admin

Archie MacDonald (rsh) writes:

> 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 ...:-(

You should probably ask in a forum dedicated to readline, not to
PostgreSQL.

-- 
Peter Eisentraut   peter_e@gmx.net




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: readline-4.2a  compile ,installation  problem
@ 2003-08-27 21:19  William Yu <wyu@talisys.com>
  parent: Archie MacDonald (rsh) <archie@met.ed.ac.uk>
  1 sibling, 0 replies; 3+ messages in thread

From: William Yu @ 2003-08-27 21:19 UTC (permalink / raw)
  To: pgsql-admin

Archie MacDonald (rsh) wrote:
> 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 ...:-(

Easiest way to get tools installed on Solaris ... go to 
www.sunfreeware.com. They've got readline, gcc, etc all compiled up and 
ready for installation. Just download and use the command:

   pkgadd -d readline-xxx-local




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-08-27 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-25 14:36 readline-4.2a  compile ,installation  problem Archie MacDonald (rsh) <archie@met.ed.ac.uk>
2003-08-25 17:55 ` Peter Eisentraut <peter_e@gmx.net>
2003-08-27 21:19 ` William Yu <wyu@talisys.com>

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