Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 70514
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Aron Griffis (RETIRED) <agriffis@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Matthew Kennedy (RETIRED) <mkennedy@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
librep-0.18.patch librep-0.18.patch patch Matthew Kennedy (RETIRED) 2004-12-04 18:31 0000 2.52 KB Details | Diff
rep-gtk-0.18.patch rep-gtk-0.18.patch patch Matthew Kennedy (RETIRED) 2004-12-04 18:32 0000 717 bytes Details | Diff
sawfish-1.3.2004120.patch sawfish-1.3.2004120.patch patch Matthew Kennedy (RETIRED) 2004-12-04 18:32 0000 516 bytes Details | Diff
librep-libtool.patch librep-libtool.patch patch Harald van Dijk 2005-01-13 23:11 0000 1.71 KB Details | Diff
librep-libtool.diff librep-libtool diff between working and broken rep-gtk-compile. text/plain Michael Haubenwallner 2005-06-20 02:10 0000 12.47 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 70514 depends on: Show dependency tree
Bug 70514 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-11-08 15:22 0000
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 From Matthew Kennedy (RETIRED) 2004-11-08 15:23:33 0000 -------
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 From Matthew Kennedy (RETIRED) 2004-11-16 19:10:53 0000 -------
See also http://forums.gentoo.org/viewtopic.php?t=238312&highlight=repgtk

------- Comment #3 From Matthew Kennedy (RETIRED) 2004-12-04 18:31:07 0000 -------
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 From Matthew Kennedy (RETIRED) 2004-12-04 18:31:57 0000 -------
Created an attachment (id=45300) [details]
librep-0.18.patch

------- Comment #5 From Matthew Kennedy (RETIRED) 2004-12-04 18:32:21 0000 -------
Created an attachment (id=45301) [details]
rep-gtk-0.18.patch

------- Comment #6 From Matthew Kennedy (RETIRED) 2004-12-04 18:32:39 0000 -------
Created an attachment (id=45302) [details]
sawfish-1.3.2004120.patch

------- Comment #7 From Daniel Lawson 2004-12-19 14:06:24 0000 -------
the CC tweaks to the librep and sawfish work for amd64
(ie, setting CC=gcc in the ebuild).

------- Comment #8 From Harald van Dijk 2005-01-13 23:11:06 0000 -------
Created an attachment (id=48438) [details]
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 From Joseph Garvin 2005-01-22 14:44:05 0000 -------
Um, hey, when is the ebuild going to be patched? It's been like this for weeks
now.

------- Comment #10 From Adam 2005-02-08 15:15:23 0000 -------
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 From Adam 2005-02-08 15:35:39 0000 -------
The workaround described in bug 81260 works for rep-gtk also.

------- Comment #12 From Harald van Dijk 2005-02-09 18:51:26 0000 -------
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 From Adam 2005-02-10 14:22:57 0000 -------
You should ask the maintainers of libtool.

------- Comment #14 From Jakub Moc (RETIRED) 2005-02-10 16:21:36 0000 -------
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 From Adam 2005-02-10 18:32:12 0000 -------
I don't care who wins the argument as long as the problem gets FIXED.

------- Comment #16 From David D. Huff Jr. 2005-02-12 08:51:25 0000 -------
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 From David D. Huff Jr. 2005-02-12 12:29:30 0000 -------
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 From Harald van Dijk 2005-02-12 13:57:07 0000 -------
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 From Adam 2005-03-04 19:49:49 0000 -------
Rebuilt from scratch today, still broken.

------- Comment #20 From Matthew Kennedy (RETIRED) 2005-03-27 12:47:47 0000 -------
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 From Christophe 2005-05-03 13:22:17 0000 -------
Any update ? will it make it into portage ?

------- Comment #22 From Michael Haubenwallner 2005-06-20 02:10:30 0000 -------
Created an attachment (id=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 From Harald van Dijk 2005-06-22 16:29:32 0000 -------
*** Bug 96808 has been marked as a duplicate of this bug. ***

------- Comment #24 From Aron Griffis (RETIRED) 2005-06-22 18:26:48 0000 -------
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 From Harald van Dijk 2005-06-23 04:16:59 0000 -------
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 From Aron Griffis (RETIRED) 2005-06-23 05:28:17 0000 -------
(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 From John N. Laliberte (RETIRED) 2005-08-06 04:58:20 0000 -------
*** Bug 100534 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug