Compile Problem -c -o ?! - Mailing list pgsql-ports

From Jens.Wilke@jwdt.com,München
Subject Compile Problem -c -o ?!
Date
Msg-id 3D2AF717.31789A4D@jwdt.com
Whole thread Raw
List pgsql-ports
============================================================================

                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================



Your name               : Jens Wilke
Your email address      : wilke@jwdt.com


System Configuration
---------------------
  Architecture (example: Intel Pentium)         : K7

  Operating System (example: Linux 2.0.26 ELF)  : Linux 2.2.19

  PostgreSQL version (example: PostgreSQL-7.2.1):   PostgreSQL-7.2.1

  Compiler used (example:  gcc 2.95.2)          :  gcc 2.95.4

Distribution: debian


Please enter a FULL description of your problem:
------------------------------------------------

Compilation stops at first gcc call (see make.log) with:
gcc: cannot specify -o with -c or -S and multiple compilations


Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------

./configure --prefix=/opt/postgresql-7.2.1 --with-java --with-multibyte
make


If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------



loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
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 NLS is wanted... 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=-O2
checking whether the C compiler (gcc -O2 ) works... yes
checking whether the C compiler (gcc -O2 ) 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... yes
checking for jakarta-ant... (cached) /opt/java/jakarta-ant-1.4.1/bin/ant
checking whether /opt/java/jakarta-ant-1.4.1/bin/ant works... (cached) yes
checking whether to build with PAM support... no
checking whether to build the ODBC driver... no
checking whether to build C++ modules... no
using CPPFLAGS=
using LDFLAGS=
checking for mawk... (cached) mawk
checking for flex... (cached) /usr/bin/flex
checking whether ln -s works... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for ranlib... (cached) ranlib
checking for lorder... (cached) lorder
checking for tar... (cached) /bin/tar
checking for bison... (cached) bison -y
checking for perl... (cached) /usr/bin/perl
checking for readline... (cached) yes (-lreadline)
checking for library containing using_history... (cached) none required
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) no
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) no
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) -lcrypt
checking for __inet_ntoa in -lbind... (cached) no
checking for inflate in -lz... (cached) yes
checking for library containing fdatasync... (cached) none required
checking for crypt.h... (cached) yes
checking for dld.h... (cached) no
checking for endian.h... (cached) yes
checking for fp_class.h... (cached) no
checking for getopt.h... (cached) yes
checking for ieeefp.h... (cached) no
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) yes
checking for readline/history.h... (cached) yes
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) yes
checking for union semun... (cached) no
checking for struct cmsgcred... (cached) no
checking for struct fcred... (cached) no
checking for struct sockcred... (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 *, size_t *
checking whether gettimeofday takes only one argument... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for fcvt... (cached) yes
checking for getopt_long... (cached) yes
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) yes
checking for PS_STRINGS... (cached) no
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for isinf... (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... yes
checking for rl_completion_matches... (cached) yes
checking for rl_filename_completion_function... (cached) yes
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) 4
checking alignment of double... (cached) 4
checking for int8... (cached) no
checking for uint8... (cached) no
checking for int64... (cached) no
checking for uint64... (cached) no
checking for sig_atomic_t... (cached) yes
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/pg_config.h
src/include/pg_config.h is unchanged
linking ./src/backend/port/dynloader/linux.c to src/backend/port/dynloader.c
linking ./src/backend/port/dynloader/linux.h to src/include/dynloader.h
linking ./src/include/port/linux.h to src/include/pg_config_os.h
linking ./src/makefiles/Makefile.linux to src/Makefile.port
linking ./src/backend/port/tas/dummy.s to src/backend/port/tas.s
make -C doc all
make[1]: Entering directory `/home/jeans/devel/postgresql-7.2.1/doc'
gzip -d -c man.tar.gz | /bin/tar xf -
for file in man1/*.1; do \
  mv $file $file.bak && \
  sed -e 's/\\fR(l)/\\fR(7)/' $file.bak >$file && \
  rm $file.bak || exit; \
done
/bin/sh ../config/mkinstalldirs man7
mkdir man7
for file in manl/*.l; do \
  sed -e '/^\.TH/s/"l"/"7"/'   \
              -e 's/\\fR(l)/\\fR(7)/' \
      $file >man7/`basename $file | sed 's/.l$/.7/'` || exit; \
done
make[1]: Leaving directory `/home/jeans/devel/postgresql-7.2.1/doc'
make -C src all
make[1]: Entering directory `/home/jeans/devel/postgresql-7.2.1/src'
make -C backend all
make[2]: Entering directory `/home/jeans/devel/postgresql-7.2.1/src/backend'
prereqdir=`cd parser/ >/dev/null && pwd` && \
  cd ../../src/include/parser/ && rm -f parse.h && \
  ln -s "$prereqdir/parse.h" .
make -C utils fmgroids.h
make[3]: Entering directory `/home/jeans/devel/postgresql-7.2.1/src/backend/utils'
CPP='gcc -E' AWK='mawk' /bin/sh Gen_fmgrtab.sh ../../../src/include/catalog/pg_proc.h
make[3]: Leaving directory `/home/jeans/devel/postgresql-7.2.1/src/backend/utils'
cd ../../src/include/utils/ && rm -f fmgroids.h && \
    ln -s ../../../src/backend/utils/fmgroids.h .
make -C access all
make[3]: Entering directory `/home/jeans/devel/postgresql-7.2.1/src/backend/access'
make -C common SUBSYS.o
make[4]: Entering directory `/home/jeans/devel/postgresql-7.2.1/src/backend/access/common'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations common -I../../../../src/include   -c -o heaptuple.o
heaptuple.c
gcc: cannot specify -o with -c or -S and multiple compilations
make[4]: *** [heaptuple.o] Error 1
make[4]: Leaving directory `/home/jeans/devel/postgresql-7.2.1/src/backend/access/common'
make[3]: *** [common-recursive] Error 2
make[3]: Leaving directory `/home/jeans/devel/postgresql-7.2.1/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/jeans/devel/postgresql-7.2.1/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jeans/devel/postgresql-7.2.1/src'
make: *** [all] Error 2

pgsql-ports by date:

Previous
From: Wilson Muñoz Camelo
Date:
Subject: help postgres solaris 8
Next
From:
Date:
Subject: [RPM] I couldn't find postgresql-dump