Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40041 - emerge fails for dev-db/pgadmin3-1.0.2
Summary: emerge fails for dev-db/pgadmin3-1.0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 23:10 UTC by Eric Nylander
Modified: 2004-03-20 23:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Nylander 2004-01-31 23:10:09 UTC
I get a compile error when I try to emerge dev-db/pgadmin3:

if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include -I -DSSL -I/usr/include/postgresql -I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include -I  -MT pgConn.o -MD -MP -MF ".deps/pgConn.Tpo" \
  -c -o pgConn.o `test -f 'db/pgConn.cpp' || echo './'`db/pgConn.cpp; \
then mv ".deps/pgConn.Tpo" ".deps/pgConn.Po"; \
else rm -f ".deps/pgConn.Tpo"; exit 1; \
fi
g++: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [pgAdmin3.o] Error 1
make[2]: *** Waiting for unfinished jobs....
g++: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [pgConn.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/pgadmin3-1.0.2/work/pgadmin3-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/pgadmin3-1.0.2/work/pgadmin3-1.0.2'
make: *** [all] Error 2
 
!!! ERROR: dev-db/pgadmin3-1.0.2 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! (no error message)
 


Reproducible: Always
Steps to Reproduce:
1. run emerge -v pgadmin3
2. wait for compile error
3.

Actual Results:  
emerge -v pgadmin3
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-db/pgadmin3-1.0.2 to /
>>> md5 src_uri ;-) pgadmin3-1.0.2.tar.gz
>>> Unpacking source...
>>> Unpacking pgadmin3-1.0.2.tar.gz to /var/tmp/portage/pgadmin3-1.0.2/work
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for x86_64-pc-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working strtod... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for strchr... yes
checking for wx-config binary... yes
checking for pgsql include files... yes
yes
checking for pgsql... yes
checking for PQexec in -lpq... yes
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking pgsql in /usr/local/pgsql... ok
checking for wxWindows... yes
checking wxWindows in /usr... ok
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/pgadmin3-1.0.2/work/pgadmin3-1.0.2'
Making all in src
make[2]: Entering directory
`/var/tmp/portage/pgadmin3-1.0.2/work/pgadmin3-1.0.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall
-g -I../src/include -I -DSSL -I/usr/include/postgresql
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include
-DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include -I  -MT pgAdmin3.o
-MD -MP -MF ".deps/pgAdmin3.Tpo" \
  -c -o pgAdmin3.o `test -f 'pgAdmin3.cpp' || echo './'`pgAdmin3.cpp; \
then mv ".deps/pgAdmin3.Tpo" ".deps/pgAdmin3.Po"; \
else rm -f ".deps/pgAdmin3.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall
-g -I../src/include -I -DSSL -I/usr/include/postgresql
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include
-DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include -I  -MT pgConn.o
-MD -MP -MF ".deps/pgConn.Tpo" \
  -c -o pgConn.o `test -f 'db/pgConn.cpp' || echo './'`db/pgConn.cpp; \
then mv ".deps/pgConn.Tpo" ".deps/pgConn.Po"; \
else rm -f ".deps/pgConn.Tpo"; exit 1; \
fi
g++: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [pgAdmin3.o] Error 1
make[2]: *** Waiting for unfinished jobs....
g++: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [pgConn.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/pgadmin3-1.0.2/work/pgadmin3-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/pgadmin3-1.0.2/work/pgadmin3-1.0.2'
make: *** [all] Error 2
 
!!! ERROR: dev-db/pgadmin3-1.0.2 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! (no error message)
 


Expected Results:  
pgadmin3 gets installed

if I cd over to /var/tmp/portage/pgadmin3-1.0.2/work/pgadmin3-1.0.2/src and make
I get the same error. However if I rerun configure like this:
./configure --prefix=/usr --with-pgsql-include=/usr/include/postgresql
and then make, it doesn't have the error, and builds and runs just fine (if I
link with the extra libraries specified in the ebuild : -lwx_gtk2-2.4
-lwx_gtk2_xrc-2.4 -lwx_gtk2_stc-2.4)


Portage 2.0.50_pre21 (default-amd64-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -fomit-frame-pointer -msse2 -msse -m3dnow -mmmx -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://mirror.tucdemonic.org/gentoo/
http://mirrors.tds.net/gentoo http://gentoo.ccccom.com http://128.213.5.34/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa amd64 apache2 apm arts avi berkdb bonobo cdr crypt
cscope cups curl dga doc dvd dvdr encode esd ethereal evo foomaticdb gd gdbm gif
gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb jack
jack-tmpfs java jpeg kde libg++ libwww mad mikmod motif mozcalendar mozilla
mozxmlterm mpeg multilib mysql ncurses nls odbc oggvorbis opengl oss pam pdflib
perl plotutils png postgres prelude python qt quicktime radeon readline samba
scanner sdk sdl slang speex spell ssl tcltk tcpd tetex tiff truetype usb videos
vim-with-x wmf wxwindows xml xml2 xmms xosd xv zlib"
Comment 1 Eric Nylander 2004-03-20 23:19:11 UTC
Since it has been a while, I thought I would retry the emerge, and try to figure out what was wrong.  But it works now.  So it must have been fixed as a side effect of some other change.