readline-4.2a compile ,installation problem

Поиск
Список
Период
Сортировка
От Archie MacDonald (rsh)
Тема readline-4.2a compile ,installation problem
Дата
Msg-id 3F4A1EE6.7FEDA5AE@met.ed.ac.uk
обсуждение исходный текст
Ответы Re: readline-4.2a compile ,installation problem  (Peter Eisentraut <peter_e@gmx.net>)
Re: readline-4.2a compile ,installation problem  (William Yu <wyu@talisys.com>)
Список 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@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
----------------------------------------------------------------------




В списке pgsql-admin по дате отправления:

Предыдущее
От: Jeff Boes
Дата:
Сообщение: Re: Disk Utilization Increases And Time for Vacuum Increases.
Следующее
От: Jesse Burkhardt
Дата:
Сообщение: Re: Automated backup problems - pg_dump