Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 16743

Summary: rxvt binary fails to compile in rxvt-2.7.9.ebuild - package installs without binary
Product: Gentoo Linux Reporter: Haroon Rafique <corporate_gadfly>
Component: New packagesAssignee: Jonathan Nall <nall>
Status: RESOLVED FIXED    
Severity: normal CC: jeffames, rajiv
Priority: High    
Version: 1.4_rc2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Haroon Rafique 2003-03-03 10:20:03 UTC
emerge -u rxvt

upgraded to 2.7.9. Half way thru the install, the make fails with the
following message:

gcc -DHAVE_CONFIG_H -I/usr/X11R6/include -march=pentium4 -O3 -pipe -s
-fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays
-ffast-math -DDEBUG_STRICT -I/usr/X11R6/include -I.. -I. -I. -c defaultfont.c 
-fPIC -DPIC -o .libs/defaultfont.lo
In file included from command.c:48:
rxvt.h:1036: field `ut' has incomplete type
make[1]: *** [command.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from defaultfont.c:26:
rxvt.h:1036: field `ut' has incomplete type
make[1]: *** [defaultfont.lo] Error 1

yet, the ebuild continues emerging. As a result, the already
installed binary from the previous version is uninstalled and
rxvt ebuild is installed with a missing binary.

I was expecting the emerge to fail at the point of failed compilation
and not continue any further.

Portage 2.0.47-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb
/opt/jakarta/tomcat/conf
/usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/portage.local"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg
libg++ mikmod mmx mpeg ncurses nls pdflib png
quicktime spell truetype xml2 xmms xv zlib gtkhtml
alsa gdbm berkdb slang readline arts tetex bonobo
svga tcltk java guile mysql postgres X sdl gpm tcpd
pam libwww ssl perl python esd imlib oggvorbis
gnome gtk qt kde motif opengl mozilla cdr scanner xfs"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays -ffast-math"
CXXFLAGS="-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays -ffast-math"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Jeff Ames 2003-03-03 16:09:11 UTC
When trying to build this by hand, I get the same result after doing a 'make'.
However, it comes back with $? = 0.  Checking in the makefile, I believe it's
happening here: (line 100-101)

all allbin alldoc tags:
        @for I in ${subdirs}; do (cd $$I; ${MAKE} $@ || exit 1); done

I believe what's happening is that the "cd src; make all || exit 1" version of
this fails with $? = 2, which causes the exit 1 to be called.  However, since
the for loop still has other values to process, it continues with those, and
make never sees the failed src build.

Of course, this doesn't address the "field 'ut' has incomplete type" problem
itself, just why emerge doesn't stop there and complain.

Comment 2 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-03-04 20:43:00 UTC
the same problem happens on ppc...
Comment 3 Nicholas Wourms 2003-03-31 14:50:18 UTC
I've bumped the RXVT ebuild to 2.7.10, in which all of these compile time issues were resolved.  Enjoy!