Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70514 - x11-libs/rep-gtk-0.18 build failure
Summary: x11-libs/rep-gtk-0.18 build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
: 96808 100534 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-08 15:22 UTC by Matthew Kennedy (RETIRED)
Modified: 2005-08-06 04:58 UTC (History)
5 users (show)

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


Attachments
librep-0.18.patch (librep-0.18.patch,2.52 KB, patch)
2004-12-04 18:31 UTC, Matthew Kennedy (RETIRED)
Details | Diff
rep-gtk-0.18.patch (rep-gtk-0.18.patch,717 bytes, patch)
2004-12-04 18:32 UTC, Matthew Kennedy (RETIRED)
Details | Diff
sawfish-1.3.2004120.patch (sawfish-1.3.2004120.patch,516 bytes, patch)
2004-12-04 18:32 UTC, Matthew Kennedy (RETIRED)
Details | Diff
librep-libtool.patch (librep-libtool.patch,1.71 KB, patch)
2005-01-13 23:11 UTC, Harald van Dijk (RETIRED)
Details | Diff
librep-libtool diff between working and broken rep-gtk-compile. (librep-libtool.diff,12.47 KB, text/plain)
2005-06-20 02:10 UTC, Michael Haubenwallner (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kennedy (RETIRED) gentoo-dev 2004-11-08 15:22:02 UTC
creating ./config.status
creating Makefile
creating rep-gtk.spec
creating config.h
mkdir gtk-2
/usr/lib/rep/i686-pc-linux-gnu/libtool --mode=compile gcc -c  -DHAVE_CONFIG_H -I. -O2 -g -pipe -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include -I/usr/lib/rep/i686-pc-linux-gnu -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/libgnome-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0   -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config -I/usr/include/libxml2   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config   -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   rep-types.c
/usr/lib/rep/i686-pc-linux-gnu/libtool --mode=compile gcc -c  -DHAVE_CONFIG_H -I. -O2 -g -pipe -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include -I/usr/lib/rep/i686-pc-linux-gnu -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/libgnome-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0   -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config -I/usr/include/libxml2   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config   -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   rep-gtk.c
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make: *** [rep-gtk.lo] Error 1
make: *** Waiting for unfinished jobs....
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make: *** [rep-types.lo] Error 1

!!! ERROR: x11-libs/rep-gtk-0.18 failed.
!!! Function src_compile, Line 47, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2004-11-08 15:23:33 UTC
No idea if the mass of repeating include flags above is a symptom or not.

Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r6
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -g -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs digest distlocks notitles sandbox sfperms userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apm avi berkdb bitmap-fonts cdr cjk crypt cscope cups doc dvd dvdr emacs encode esd f77 faad fam flac foomaticdb fortran gcj gdbm gif gmp gnome gstreamer gtk gtk2 gtkhtml guile hal howl imagemagick imlib ipv6 jpeg junit ldap libg++ libwww mad mbox mikmod mmx mng motif mozilla mpeg ncurses nls nptl objc oggvorbis opengl pam pcre pdflib perl png postgres quicktime samba sdl spell sse ssl svg tcpd tetex threads tiff truetype unicode wmf x86 xml2 xv xvid zlib"

Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2004-11-16 19:10:53 UTC
See also http://forums.gentoo.org/viewtopic.php?t=238312&highlight=repgtk
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2004-12-04 18:31:07 UTC
I guess when you need something bad enough, you find the solution yourself ;)

The problem was the dependency between librep and rep-gtk and the ltmain.sh 
librep installs.  librep configures an ltmain.sh script to compile with the 
compiler argument "i686-pc-linux-gnu-gcc" while rep-gtk uses "gcc".  Its the 
difference in naming which causes this --tag inference bug.

The solution is to ensure the libtool argument for librep and rep-gtk is the same.  Attached is a patch which sets export CC="gcc" in librep's ebuild so that
it matches rep-gtk and sawfish.  The librep patch also incorporates Debians 
libtool patch and the ebuild also installs Debian's manpages.


Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2004-12-04 18:31:57 UTC
Created attachment 45300 [details, diff]
librep-0.18.patch
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2004-12-04 18:32:21 UTC
Created attachment 45301 [details, diff]
rep-gtk-0.18.patch
Comment 6 Matthew Kennedy (RETIRED) gentoo-dev 2004-12-04 18:32:39 UTC
Created attachment 45302 [details, diff]
sawfish-1.3.2004120.patch
Comment 7 Daniel Lawson 2004-12-19 14:06:24 UTC
the CC tweaks to the librep and sawfish work for amd64
(ie, setting CC=gcc in the ebuild).
Comment 8 Harald van Dijk (RETIRED) gentoo-dev 2005-01-13 23:11:06 UTC
Created attachment 48438 [details, diff]
librep-libtool.patch

This bug is really a dupe of bug #68063, which is marked a dupe of #67692. The
same fix for that can be applied to librep, except librep doesn't provide the
original ltmain.in, only the generated ltmain.sh, so that needs to be patched
instead. rep-gtk and sawfish don't need any modifications (nothing that has
anything to do with this bug, anyway).
Comment 9 Joseph Garvin 2005-01-22 14:44:05 UTC
Um, hey, when is the ebuild going to be patched? It's been like this for weeks now.
Comment 10 Adam 2005-02-08 15:15:23 UTC
From comments on bug 77921 it appears that rep-gtk like some other packages
includes its own libtool, the output of emerge appears to be running
    /usr/lib/rep/i386-pc-linux-gnu/libtool
when it apparently should be running
    /usr/bin/libtool
Please see comments on bug 77921 and the files I have attached there.

Thanks,
Adam
Comment 11 Adam 2005-02-08 15:35:39 UTC
The workaround described in bug 81260 works for rep-gtk also.
Comment 12 Harald van Dijk (RETIRED) gentoo-dev 2005-02-09 18:51:26 UTC
rep-gtk doesn't provide its own libtool, librep does. Since /usr/bin/libtool and /usr/lib/rep/*/libtool may have stored different configurations, is it really a good idea to use /usr/bin/libtool instead of patching /usr/lib/rep/*/libtool?
Comment 13 Adam 2005-02-10 14:22:57 UTC
You should ask the maintainers of libtool.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-02-10 16:21:36 UTC
Maintainers of libtool think that including libtool in other packages is stupid - see http://bugs.gentoo.org/show_bug.cgi?id=77921#c17
Comment 15 Adam 2005-02-10 18:32:12 UTC
I don't care who wins the argument as long as the problem gets FIXED.
Comment 16 David D. Huff Jr. 2005-02-12 08:51:25 UTC
Hmm, seems there may be a problem of a different sort. I just hit this bug 300+ compiles in to a system rebuild. I'm surprised the ebuild hasn't been updated for six months, too. Can the build be working sporatically or is everybody downloading the patches every time it's compiled?
Comment 17 David D. Huff Jr. 2005-02-12 12:29:30 UTC
Ok, I'm fine with this if it goes away. After a lot of research there have been sportatic problems with this over the years. Apparently devlopment for sawfish (sawfish *IS* the only dependency for rep-gtk in the gentoo tree), has not been ongoing since the middle of 2003 and sawfish-themes has never progressed above the 0.0.1 level. <= My attempt at political correctness.
Since I haven't used sawfish since Mandrake 8.1, I removed both from my tree and have no dependencies for librep or rep-gtk.
For me this is fixed, thanks.
Comment 18 Harald van Dijk (RETIRED) gentoo-dev 2005-02-12 13:57:07 UTC
Sorry, wasn't trying to start an argument. If a symlink for libtool should fix things on an otherwise fine system, no complaints from me.

In reply to the last comments, the CC environment variable used to be set with older gcc ebuilds (if I recall correctly), so that's why it used to work, but doesn't anymore.
Comment 19 Adam 2005-03-04 19:49:49 UTC
Rebuilt from scratch today, still broken.
Comment 20 Matthew Kennedy (RETIRED) gentoo-dev 2005-03-27 12:47:47 UTC
Aron, what is your take on the solution presented in comment 4, 5 and 6?  With
your permission, I'll commit this fix to portage.  If I don't hear back within a
week or so, I'll also commit it to portage.
Comment 21 Christophe 2005-05-03 13:22:17 UTC
Any update ? will it make it into portage ?
Comment 22 Michael Haubenwallner (RETIRED) gentoo-dev 2005-06-20 02:10:30 UTC
Created attachment 61565 [details]
librep-libtool diff between working and broken rep-gtk-compile.

Have one machine where it works and another where it does not work.
On the working one, sawfish is used for longer now, and dates of
/var/db/pkg/dev-libs/librep-0.17/* are 'Apr 30 2004'.

On the broken one, want sawfish to install the very first time, so librep too.
The difference is in the /usr/lib/rep/i686-pc-linux-gnu/libtool as stated in
comment 3. To see it, i did:
$ ebuild librep-0.17.ebuild install
$ diff /usr/lib/rep/i686-pc-linux-gnu/libtool
/var/tmp/portage/librep-0.17/image/usr/lib/rep/i686-pc-linux-gnu/libtool
<my output is attached>

To get rep-gtk compiled right now i've added a pkg_setup() to
rep-gtk-0.18-r1.ebuild, but the real fix imo might be the patch in comment 8
for the librep-libtool:

pkg_setup() {
    eval $(grep '^CC=.*gcc' /usr/lib/rep/${CHOST}/libtool)
}
Comment 23 Harald van Dijk (RETIRED) gentoo-dev 2005-06-22 16:29:32 UTC
*** Bug 96808 has been marked as a duplicate of this bug. ***
Comment 24 Aron Griffis (RETIRED) gentoo-dev 2005-06-22 18:26:48 UTC
Sorry I haven't been paying attention to this, guys.  I quit using sawfish a
while ago in favor of ion3 and haven't been maintaining it well since then.

I think the correct solution here is simply to set CC prior to calling econf or
configure for librep, rep-gtk and sawfish:

  CC=$(tc-getCC) econf ...

In my tests this seems to solve the problem, and I've committed it to cvs now. 
Please re-open this bug if the problem persists for you.

http://www.gentoo.org/cgi-bin/viewcvs.cgi/dev-libs/librep/librep-0.17-r1.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup
http://www.gentoo.org/cgi-bin/viewcvs.cgi/x11-libs/rep-gtk/rep-gtk-0.18-r2.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup
Comment 25 Harald van Dijk (RETIRED) gentoo-dev 2005-06-23 04:16:59 UTC
This won't work if a user does

CC=gcc emerge librep; emerge rep-gtk

or, similarly,

emerge librep; CC=gcc emerge rep-gtk

(That may seem stupid, but it's reasonable; one example: the user could have
been trying to build a bunch of stuff with CC set because another package (yes,
a broken one) needed it, only to run out of disk space, into a system lockup, or
anything else, when rep-gtk is being built. Then, that user fixes up the systen
and runs emerge --resume (without setting CC again, because that other package
that needed it is installed already).
Besides, it's valid AFAIK even if there wasn't a reason for it.)

Though, it should fix things for most situations, and works here, so thanks for
that. And just say so if you don't want to handle those two situations :)
Comment 26 Aron Griffis (RETIRED) gentoo-dev 2005-06-23 05:28:17 UTC
(In reply to comment #25)
> And just say so if you don't want to handle those two situations :)

There are lots of ways you can break a Gentoo system by changing variables
between builds.  Not going to handle it.
Comment 27 John N. Laliberte (RETIRED) gentoo-dev 2005-08-06 04:58:20 UTC
*** Bug 100534 has been marked as a duplicate of this bug. ***