Обсуждение: Installation sunos 5.9

Поиск
Список
Период
Сортировка

Installation sunos 5.9

От
James Taylor
Дата:
Trying to install 7.3.4 on a Sparc 64 sunos 5.9 box, and have followed
the instructions on
http://techdocs.postgresql.org/v2/Guides/Installation%20Guides/
Compiling%20PostgreSQL%207.3.2%20on%20Solaris%208%209/view to the t.
However, when going to compile Postgres I'm getting the error on
./configure --prefix=/opt/pgsql:

checking for fseeko... (cached) yes
checking test program... failed
configure: error:
*** Could not execute a simple test program.  This may be a problem
*** related to locating shared libraries.  Check the file 'config.log'
*** for the exact reason.


config.log is HUGE, so I'm not going to post the whole thing here, just
the top 2 sections in hopes that a clue will lye within.  If this isn't
the area i'm looking for, please let me know.  Thank you for any
assistance:


It was created by PostgreSQL configure 7.3.4, which was
generated by GNU Autoconf 2.53.  Invocation command line was

   $ ./configure --prefix=/opt/pgsql

## --------- ##
## Platform. ##
## --------- ##

hostname = osiris
uname -m = sun4u
uname -r = 5.9
uname -s = SunOS
uname -v = Generic_112233-07

/usr/bin/uname -p = sparc
/bin/uname -X     = System = SunOS
Node = osiris
Release = 5.9
KernelID = Generic_112233-07
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch              = sun4
/usr/bin/arch -k       = sun4u
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/ccs/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1295: checking build system type
configure:1313: result: sparc-sun-solaris2.9
configure:1321: checking host system type
configure:1335: result: sparc-sun-solaris2.9
configure:1345: checking which template to use
configure:1444: result: solaris
configure:1563: checking whether to build with 64-bit integer date/time
support
configure:1594: result: no
configure:1600: checking whether to build with recode support
configure:1631: result: no
configure:1638: checking whether NLS is wanted
configure:1672: result: no
configure:1680: checking for default port number
configure:1709: result: 5432
configure:1727: checking for default soft limit on number of connections
configure:1756: result: 32
configure:1947: checking for gcc
configure:1963: found /usr/local/bin/gcc
configure:1973: result: gcc
configure:1992: checking for C compiler version
configure:1995: gcc --version </dev/null >&5
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:1998: $? = 0
configure:2000: gcc -v </dev/null >&5
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
configure:2003: $? = 0
configure:2005: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2008: $? = 1
configure:2034: checking for C compiler default output
configure:2037: gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -funroll-loops
-fexpensive-optimizations -I/opt/pgsql/include  conftest.c  >&5
configure:2040: $? = 0
configure:2073: result: a.out
configure:2078: checking whether the C compiler works
configure:2084: ./a.out
configure:2087: $? = 0
configure:2102: result: yes
configure:2109: checking whether we are cross compiling
configure:2111: result: no
configure:2114: checking for suffix of executables
configure:2116: gcc -o conftest -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -funroll-loops -fexpensive-optimizations
-I/opt/pgsql/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c  >&5
configure:2119: $? = 0
configure:2141: result:
configure:2147: checking for suffix of object files
configure:2171: gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -funroll-loops
-fexpensive-optimizations -I/opt/pgsql/include conftest.c >&5
configure:2174: $? = 0
configure:2193: result: o
configure:2197: checking whether we are using the GNU C compiler
configure:2224: gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -funroll-loops
-fexpensive-optimizations -I/opt/pgsql/include conftest.c >&5
configure:2227: $? = 0
configure:2230: test -s conftest.o
configure:2233: $? = 0
configure:2245: result: yes
configure:2251: checking whether gcc accepts -g
configure:2275: gcc -c -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c >&5
configure:2278: $? = 0
configure:2281: test -s conftest.o
configure:2284: $? = 0
configure:2294: result: yes
configure:2321: gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -funroll-loops
-fexpensive-optimizations -I/opt/pgsql/include conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2324: $? = 1
configure: failed program was:
#ifndef __cplusplus
   choke me
#endif
configure:2443: using CFLAGS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
configure:2447: checking whether the C compiler still works
configure:2469: gcc -o conftest -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -funroll-loops -fexpensive-optimizations
-I/opt/pgsql/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c  >&5
configure:2472: $? = 0
configure:2475: test -s conftest
configure:2478: $? = 0
configure:2480: result: yes
configure:2516: gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -funroll-loops
-fexpensive-optimizations -I/opt/pgsql/include conftest.c >&5
configure:2519: $? = 0
configure:2522: test -s conftest.o
configure:2525: $? = 0
configure:2543: checking how to run the C preprocessor
configure:2569: gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c
configure:2575: $? = 0
configure:2602: gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c
configure:2598:28: ac_nonexistent.h: No such file or directory
configure:2608: $? = 1
configure: failed program was:
#line 2597 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:2645: result: gcc -E
configure:2660: gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c
configure:2666: $? = 0
configure:2693: gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c
configure:2689:28: ac_nonexistent.h: No such file or directory
configure:2699: $? = 1
configure: failed program was:
#line 2688 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:2856: checking whether to build with Tcl
configure:2884: result: no
configure:2889: checking whether to build with Tk
configure:2921: result: no
configure:2987: checking whether to build Perl modules
configure:3015: result: no
configure:3022: checking whether to build Python modules
configure:3050: result: no
configure:3057: checking whether to build Java/JDBC tools
configure:3195: result: no
configure:3205: checking whether to build with Kerberos 4 support
configure:3252: result: no
configure:3263: checking whether to build with Kerberos 5 support
configure:3310: result: no
configure:3368: checking whether to build with PAM support
configure:3400: result: no
configure:3553: using CPPFLAGS=-D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -funroll-loops -fexpensive-optimizations
-I/opt/pgsql/include
configure:3555: using LDFLAGS=
configure:3563: checking for gawk
configure:3592: result: no
configure:3563: checking for mawk
configure:3592: result: no
configure:3563: checking for nawk
configure:3579: found /usr/bin/nawk
configure:3589: result: nawk
configure:3599: checking for flex
configure:3638: result: no
configure:3655: WARNING:
*** Without Flex you will not be able to build PostgreSQL from CVS or
*** change any of the scanner definition files.  You can obtain Flex
from
*** a GNU mirror site.  (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
*** output is pre-generated.)
configure:3673: checking whether ln -s works
configure:3677: result: yes
configure:3695: checking for ld used by GCC
configure:3758: result: /usr/ccs/bin/ld
configure:3767: checking if the linker (/usr/ccs/bin/ld) is GNU ld
configure:3779: result: no
configure:3880: checking for ranlib
configure:3896: found /usr/ccs/bin/ranlib
configure:3907: result: ranlib
configure:3923: checking for lorder
configure:3939: found /usr/ccs/bin/lorder
configure:3949: result: lorder
configure:3961: checking for tar
configure:3979: found /usr/bin/tar
configure:3991: result: /usr/bin/tar
configure:4040: checking for strip
configure:4056: found /usr/ccs/bin/strip
configure:4067: result: strip
configure:4080: checking whether it is possible to strip libraries
configure:4090: result: no
configure:4101: checking for bison
configure:4117: found /usr/local/bin/bison
configure:4127: result: bison -y
configure:4159: checking for perl
configure:4177: found /usr/bin/perl
configure:4189: result: /usr/bin/perl
configure:4330: checking for main in -lbsd
configure:4357: gcc -o conftest -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -funroll-loops -fexpensive-optimizations
-I/opt/pgsql/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-funroll-loops -fexpensive-optimizations -I/opt/pgsql/include
conftest.c -lbsd   >&5
ld: fatal: library -lbsd: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:4360: $? = 1
configure: failed program was:
#line 4337 "configure"
#include "confdefs.h"