Обсуждение: ...

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

...

От
rkollmorgen@freenet.de
Дата:
Hallo

I tried to compile postgresql-7.1.2 on SunOS 5.8 with gcc and Suns cc.
I made the following:

# ./configure --prefix=/usr/local/
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking which template to use... solaris
checking whether to build with locale support... no
checking whether to build with recode support... no
checking whether to build with multibyte character support... no
checking whether to build with Unicode conversion support... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
using CFLAGS=
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc needs -traditional... (cached) no
checking whether to build with Tcl... no
checking whether to build with Tk... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build Java/JDBC tools... no
checking whether to build the ODBC driver... no
checking whether to build C++ modules... no
using CPPFLAGS=
using LDFLAGS=
checking for mawk... (cached) nawk
checking for flex... (cached) no
configure: 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.)
checking whether ln -s works... (cached) yes
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for ranlib... (cached) :
checking for lorder... no
checking for tar... (cached) /usr/sbin/tar
checking for perl... (cached) perl
checking for bison... no
configure: warning:
*** Without Bison you will not be able to build PostgreSQL from CVS or
*** change any of the parser definition files.  You can obtain Bison 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 Bison
*** output is pre-generated.)  To use a different yacc program (possible,
*** but not recommended), set the environment variable YACC before running
*** 'configure'.
checking for readline... (cached) no
checking for library containing using_history... (cached) no
checking for main in -lbsd... (cached) no
checking for setproctitle in -lutil... (cached) no
checking for main in -lm... (cached) yes
checking for main in -ldl... (cached) yes
checking for main in -lsocket... (cached) yes
checking for main in -lnsl... (cached) yes
checking for main in -lipc... (cached) no
checking for main in -lIPC... (cached) no
checking for main in -llc... (cached) no
checking for main in -ldld... (cached) no
checking for main in -lld... (cached) no
checking for main in -lcompat... (cached) no
checking for main in -lBSD... (cached) no
checking for main in -lgen... (cached) yes
checking for main in -lPW... (cached) no
checking for main in -lresolv... (cached) yes
checking for main in -lunix... (cached) no
checking for library containing crypt... (cached) none required
checking for __inet_ntoa in -lbind... (cached) no
checking for inflate in -lz... (cached) yes
checking for crypt.h... (cached) yes
checking for dld.h... (cached) no
checking for endian.h... (cached) no
checking for fp_class.h... (cached) no
checking for getopt.h... (cached) no
checking for ieeefp.h... (cached) yes
checking for pwd.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for sys/pstat.h... (cached) no
checking for sys/select.h... (cached) yes
checking for sys/sem.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/shm.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/un.h... (cached) yes
checking for termios.h... (cached) yes
checking for kernel/OS.h... (cached) no
checking for kernel/image.h... (cached) no
checking for SupportDefs.h... (cached) no
checking for netinet/in.h... (cached) yes
checking for netinet/tcp.h... yes
checking whether string.h and strings.h may both be included... (cached) yes
checking for readline/readline.h... (cached) no
checking for readline.h... (cached) no
checking for readline/history.h... (cached) no
checking for history.h... (cached) no
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for preprocessor stringizing operator... (cached) yes
checking for signed types... (cached) yes
checking for volatile... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) no
checking for tzname... (cached) yes
checking for union semun... (cached) no
checking for struct sockaddr_un... (cached) yes
checking for int timezone... (cached) yes
checking types of arguments for accept()... (cached) int, struct sockaddr *, int *
checking whether gettimeofday takes only one argument... (cached) no
checking for fcvt... (cached) yes
checking for getopt_long... (cached) no
checking for memmove... (cached) yes
checking for pstat... (cached) no
checking for setproctitle... (cached) no
checking for setsid... (cached) yes
checking for sigprocmask... (cached) yes
checking for sysconf... (cached) yes
checking for waitpid... (cached) yes
checking for dlopen... (cached) yes
checking for fdatasync... (cached) no
checking for PS_STRINGS... (cached) no
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for isinf... (cached) no
checking for fpclass... (cached) yes
checking for getrusage... (cached) yes
checking for srandom... (cached) yes
checking for gethostname... (cached) yes
checking for random... (cached) yes
checking for inet_aton... (cached) yes
checking for strerror... (cached) yes
checking for strdup... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for strcasecmp... (cached) yes
checking for cbrt... (cached) yes
checking for rint... (cached) yes
checking for rl_completion_append_character... no
checking for rl_completion_matches... (cached) no
checking for finite... yes
checking for sigsetjmp... yes
checking for optreset... (cached) no
checking test program... ok
checking whether long int is 64 bits... (cached) no
checking whether long long int is 64 bits... (cached) yes
checking whether snprintf handles 'long long int' as %lld... yes
checking for strtoll... (cached) yes
checking for strtoull... (cached) yes
checking for atexit... (cached) yes
checking size of unsigned long... (cached) 4
checking alignment of short... (cached) 2
checking alignment of int... (cached) 4
checking alignment of long... (cached) 4
checking alignment of long long int... (cached) 8
checking alignment of double... (cached) 8
checking for POSIX signal interface... (cached) yes
checking for onsgmls... no
checking for nsgmls... no
creating ./config.status
creating GNUmakefile
creating src/GNUmakefile
creating src/Makefile.global
creating src/backend/port/Makefile
creating src/include/config.h
src/include/config.h is unchanged
linking ./src/backend/port/dynloader/solaris.c to src/backend/port/dynloader.c
linking ./src/backend/port/dynloader/solaris.h to src/include/dynloader.h
linking ./src/include/port/solaris.h to src/include/os.h
linking ./src/makefiles/Makefile.solaris to src/Makefile.port
linking ./src/backend/port/tas/solaris_sparc.s to src/backend/port/tas.s
#
# make
make -C doc all
make[1]: Entering directory `/opt/postgresql-7.1.2/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/postgresql-7.1.2/doc'
make -C src all
make[1]: Entering directory `/opt/postgresql-7.1.2/src'
make -C backend all
make[2]: Entering directory `/opt/postgresql-7.1.2/src/backend'
make -C access all
make[3]: Entering directory `/opt/postgresql-7.1.2/src/backend/access'
make -C common SUBSYS.o
make[4]: Entering directory `/opt/postgresql-7.1.2/src/backend/access/common'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include   -c -o heaptuple.o heaptuple.c
/usr/ccs/bin/as: "/var/tmp/ccehswJi.s", line 1692: error: unknown opcode ".subsection"
/usr/ccs/bin/as: "/var/tmp/ccehswJi.s", line 1692: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccehswJi.s", line 1702: error: unknown opcode ".previous"
/usr/ccs/bin/as: "/var/tmp/ccehswJi.s", line 1702: error: statement syntax
make[4]: *** [heaptuple.o] Error 1
make[4]: Leaving directory `/opt/postgresql-7.1.2/src/backend/access/common'
make[3]: *** [common-recursive] Error 2
make[3]: Leaving directory `/opt/postgresql-7.1.2/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/opt/postgresql-7.1.2/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/postgresql-7.1.2/src'
make: *** [all] Error 2

with cc I tried:
# ./configure --prefix=/usr/local/ --enable-local --with-CC=/usr/ucb/cc
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking which template to use... solaris
checking whether to build with locale support... no
checking whether to build with recode support... no
checking whether to build with multibyte character support... no
checking whether to build with Unicode conversion support... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
#

If anybody could help me, I would be happy.


--
Bei uns lernst Du viele nette Leute kennen
zum Flirten, Lachen und Verlieben,
fuer Reisen, Sport und Freizeit.
http://singles.freenet.de - Die Single Community von freenet.de

freenet.de - normal ist das nicht!