X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0AA07D1B8C1 for ; Mon, 25 Aug 2003 11:36:53 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 35800-01 for ; Mon, 25 Aug 2003 11:36:24 -0300 (ADT) Received: from fractus.met.ed.ac.uk (fractus.met.ed.ac.uk [129.215.133.165]) by svr1.postgresql.org (Postfix) with ESMTP id CC40FD1B89D for ; Mon, 25 Aug 2003 11:36:18 -0300 (ADT) Received: from met.ed.ac.uk (tuba [129.215.133.156]) by fractus.met.ed.ac.uk (8.9.3/8.9.3) with ESMTP id PAA03179 for ; Mon, 25 Aug 2003 15:36:22 +0100 (BST) Message-ID: <3F4A1EE6.7FEDA5AE@met.ed.ac.uk> Date: Mon, 25 Aug 2003 15:36:22 +0100 From: "Archie MacDonald (rsh)" Organization: Institute for Meteorology X-Mailer: Mozilla 4.79 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: readline-4.2a compile ,installation problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/292 X-Sequence-Number: 10013 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 ----------------------------------------------------------------------