First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 168198
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alistair Bush <ali_bush@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
build.log build.log text/plain Alistair Bush 2007-02-24 00:25 0000 13.83 KB Details
unixODBC-2.2.11-r1.libtoolerror.list List of all currently installed packages text/plain Michael Evans 2007-03-06 04:53 0000 30.30 KB Details
gtk+_glib-force_system_libtool-ebuilds.tar.bz2 gtk+-1 and glib-1 tar-bz2'd for easy overlaying. application/octet-stream Daniel Baumann 2007-05-10 14:19 0000 27.74 KB Details
sci-mathematics_octave-2.1.73-r2_20070511-204917.log octave emerge log text/plain Volkmar Glauche 2007-05-11 20:16 0000 26.64 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 168198 depends on: Show dependency tree
Bug 168198 blocks: 169581
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: 2007-02-24 00:18 0000
During the emerge -e world that I performed after switching from amd64 to
~amd64 I discovered that glib-1.2.10-r5 fails to build with the following
errors.

/libtool: line 297: s,^.*/,,g: No such file or directory
./libtool: line 297: s,^.*/,,g: No such file or directory
./libtool: line 711: -e: command not found

See attached build.log for more info.

I have also noticed that this has been posted to the forums
http://forums.gentoo.org/viewtopic-t-541928.html

Of note is within the forum thread is this link
http://www.arcknowledge.com/gmane.comp.gnu.libtool.general/2002-08/msg00104.html

Which posts that the solution to this issue is...

export SED=sed

Im presently still emerge -e world (ing) so I have not been able to test this
solution, but one person has reported success with this fix.  I will test this
as soon as possible.

Reproducible: Always

Steps to Reproduce:
1. Ensure dev-libs/glib-1.2.10-r5 is ~arch'd
2. emerge -auv glib
3.

------- Comment #1 From Alistair Bush 2007-02-24 00:25:13 0000 -------
Created an attachment (id=111100) [details]
build.log

build.log showing build errors

------- Comment #2 From Alistair Bush 2007-02-24 01:45:19 0000 -------
Sorry for missing my emerge --info

Portage 2.1.2-r10 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r0,
2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 22 Feb 2007 07:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig debug distlocks metadata-transfer parallel-fetchi sandbox
sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/alistair/overlays/java-overlays/migrated-java-experimental-overlay
/home/alistair/overlays/java-overlays/maven-overlay
/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac admin alsa amd64 apache2 avi berkdb bitmap-fonts bzip2 c3p0 cdr cli
cracklib crypt cups dbus dlloader doc dri dvd dvdr dvdread fortran gd gdbm glut
gpm hal iconv ipv6 isdnlog jpeg jpeg2k kde libg++ live log4j midi mp3 mpeg
mplayer mysql ncurses nls nptl nptlonly nsplugin nvidia offensive ogg openal
opengl pam pcre pdf perl php png ppds pppd python qt readline reflection ruby
session spell spl ssl tcpd threads tiff truetype truetype-fonts type1-fonts
unicode userlocales vorbis xml xorg zlib" ALSA_CARDS="intel8x0"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Norberto Bensa 2007-02-24 13:43:38 0000 -------
Thanks. SED=sed emerge "<glib-2" worked. 

------- Comment #4 From Alistair Bush 2007-02-24 17:47:07 0000 -------
I am now able to confirm that this fix works

SED=sed emerge "<glib-2"

------- Comment #5 From Guy 2007-02-28 12:48:12 0000 -------
Works for me as well. Thank you all.

------- Comment #6 From Mat 2007-03-02 20:30:24 0000 -------
confirmed!

worked for me, too, thanks =)

------- Comment #7 From Jakub Moc (RETIRED) 2007-03-04 20:08:12 0000 -------
*** Bug 168266 has been marked as a duplicate of this bug. ***

------- Comment #8 From SpanKY 2007-03-05 21:15:50 0000 -------
exporting SED is a workaround, not a solution

glib-1.x sucks and bundles an old libtool m4 file ... solution here would be
to:
rm -f acinclude.m4
before running eautoreconf

------- Comment #9 From Michael Evans 2007-03-06 04:44:35 0000 -------
*** Bug 169566 has been marked as a duplicate of this bug. ***

------- Comment #10 From Michael Evans 2007-03-06 04:48:50 0000 -------
*** Bug 169568 has been marked as a duplicate of this bug. ***

------- Comment #11 From Michael Evans 2007-03-06 04:50:25 0000 -------
SED=sed emerge -v unixODBC

Found this on my system too.  I'll generate a list of current package versions
shortly...

------- Comment #12 From Michael Evans 2007-03-06 04:53:52 0000 -------
Created an attachment (id=112242) [details]
List of all currently installed packages

Here are all of the installed packages at the time of the bug.  I can try to
reproduce it again after a full world upgrade completes.

------- Comment #13 From Michael Evans 2007-03-06 05:52:48 0000 -------
*** Bug 169573 has been marked as a duplicate of this bug. ***

------- Comment #14 From Michael Evans 2007-03-06 20:08:35 0000 -------
*** Bug 169663 has been marked as a duplicate of this bug. ***

------- Comment #15 From Charity 2007-03-07 14:19:34 0000 -------
This happens on more packages than just glib>2. It also happens on older
versions of gtk as well. It looks like the same problem. I've noticed that if
you change to the source directories and just remove the sh from the start of
the ./libtool command, that everything compiles fine. So is this a bash bug
since sh links to /bin/bash? I've noticed that:
/bin/bash echo 1
does not do what I think it should do which is print out 1. It gives me an
error:
/usr/bin/echo: /usr/bin/echo: cannot execute binary file
I've tried a few different commands and get the same result. Also, /bin/bash -c
"echo 1" works fine and prints the expected "1".

I have no idea why the SED environment variable fixes it. It still gives me the
above error even if I export SED=sed Maybe the bugs are related, maybe not.

(In reply to comment #0)
> During the emerge -e world that I performed after switching from amd64 to
> ~amd64 I discovered that glib-1.2.10-r5 fails to build with the following
> errors.
> 
> /libtool: line 297: s,^.*/,,g: No such file or directory
> ./libtool: line 297: s,^.*/,,g: No such file or directory
> ./libtool: line 711: -e: command not found
> 

------- Comment #16 From Michael Evans 2007-03-07 15:06:34 0000 -------
Error is still reproducible with the test I outlined above.

I believe that this has a root cause in one of the automatic build tools
packages, though since most other things compile, probably the more outdated
version support.

Can anyone think of any tests I could run at this point?

------- Comment #17 From Charity 2007-03-07 20:03:07 0000 -------
Even when I cd to the build directory and type "make" I get the same error.

angeliqe glib-1.2.10 # /bin/sh ./libtool --mode=compile i686-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG  
 -O3 -march=athlon-xp -pipe -fPIC -Wall  -D_REENTRANT -c garray.c
./libtool: line 297: s,^.*/,,g: No such file or directory
./libtool: line 711: -e: command not found
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1022: -e: command not found
./libtool: line 1050: -e: command not found
./libtool: line 1074: -e: command not found
: compile: cannot determine name of library object from `'

You could update this package to use a current version of libtool as well as
gtk+-1.2.10-r12 which has the same issue. Something like:

----------------------------------------------------------------------------

--- glib-1.2.10/aclocal.m4.orig 2007-03-07 14:52:20.000000000 -0500
+++ glib-1.2.10/aclocal.m4      2007-03-07 14:52:36.000000000 -0500
@@ -34,7 +34,7 @@
 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"

 # Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(SHELL) /usr/bin/libtool'
 AC_SUBST(LIBTOOL)dnl

 # Redirect the config.log output again, so that the ltconfig log is not

------------------------------------------------------------------------------



(In reply to comment #16)
> Error is still reproducible with the test I outlined above.
> 
> I believe that this has a root cause in one of the automatic build tools
> packages, though since most other things compile, probably the more outdated
> version support.
> 
> Can anyone think of any tests I could run at this point?
> 

------- Comment #18 From Jakub Moc (RETIRED) 2007-03-11 19:03:11 0000 -------
*** Bug 170474 has been marked as a duplicate of this bug. ***

------- Comment #19 From Jakub Moc (RETIRED) 2007-03-18 22:42:36 0000 -------
*** Bug 171387 has been marked as a duplicate of this bug. ***

------- Comment #20 From lucas 2007-03-18 23:59:00 0000 -------
mplayer is using a really old glib version

------- Comment #21 From Jakub Moc (RETIRED) 2007-03-23 11:55:28 0000 -------
*** Bug 171893 has been marked as a duplicate of this bug. ***

------- Comment #22 From Ryan Hill 2007-03-25 01:40:06 0000 -------
Um, solution is in comment #8.  We don't need further diagnosis. ;P

------- Comment #23 From Thomas S. Howard 2007-03-29 02:30:24 0000 -------
(In reply to comment #22)
> Um, solution is in comment #8.  We don't need further diagnosis. ;P
> 
Half right about that.  "rm -f acinclude.m4" works fine with glib, but w/ gtk+
it gets unhappy:

 * Running eautoreconf in
'/var/tmp/portage/x11-libs/gtk+-1.2.10-r12/work/gtk+-1.2.10' ...
 * Running aclocal ...                                                         
                                                                               
[ !! ]

 * Failed Running aclocal !
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/x11-libs/gtk+-1.2.10-r12/temp/aclocal-867529.out

!!! ERROR: x11-libs/gtk+-1.2.10-r12 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_unpack
  ebuild.sh, line 751:   Called qa_call 'src_unpack'
  environment, line 3595:   Called src_unpack
  gtk+-1.2.10-r12.ebuild, line 43:   Called eautoreconf
  autotools.eclass, line 93:   Called eaclocal
  autotools.eclass, line 130:   Called autotools_run_tool 'aclocal'
  autotools.eclass, line 218:   Called die


Here's the aclocal error log:
 aclocal: configure.in: 178: macro `AM_GTK_GNU_GETTEXT' not found in library

I'm not sure what's up with this. The macro is in the aclocal.m4 file. However,
if you strip all the archaic libtool stuff from acinclude.m4, then everything's
happy. Probably easiest to just copy the shortened acinclude, since a patch
would actually be longer than the new file. Or have sed delete the first 400 or
so lines.

------- Comment #24 From Shunichi Fuji 2007-04-14 12:16:19 0000 -------
force use system libtool on aclocal.m4 and acinclude.m4.
this is usable for glib and gtk+.

--- glib-1.2.10/aclocal.m4.orig 2007-03-07 14:52:20.000000000 -0500
+++ glib-1.2.10/aclocal.m4      2007-03-07 14:52:36.000000000 -0500
@@ -34,5 +34,5 @@
 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"

 # Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(SHELL) /usr/bin/libtool'
 AC_SUBST(LIBTOOL)dnl

--- glib-1.2.10/acinclude.m4.orig 2007-03-07 14:52:20.000000000 -0500
+++ glib-1.2.10/acinclude.m4      2007-03-07 14:52:36.000000000 -0500
@@ -34,5 +34,5 @@
 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"

 # Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(SHELL) /usr/bin/libtool'
 AC_SUBST(LIBTOOL)dnl

------- Comment #25 From Shunichi Fuji 2007-04-14 12:21:50 0000 -------
more better is maybe `which libtool`.

------- Comment #26 From Alistair Bush 2007-04-14 16:11:05 0000 -------
(In reply to comment #25)
> more better is maybe `which libtool`.
> 

It is probably better to be using `type -p libtool`

I will refer you to the dev mailing list message
http://archives.gentoo.org/gentoo-dev/msg_143424.xml
as to why.

------- Comment #27 From Alexander Skwar 2007-04-26 18:10:15 0000 -------
I currently have to rebuild gtk+ 1.2.10 and got bitten by this bug for the 2nd
time. Is there a chance, that we'll see a fixed gtk+ 1.2.10 sometime?

------- Comment #28 From Steven Parker 2007-04-27 23:46:15 0000 -------
I tried applying the patch from Comment #24, but it did not fix the problem.  I
tried export SED=sed then emerge "<glib-2", and it worked perfectly.  I know
the SED=sed is only a workaround, but it seems that the patch did not seem to
help any.  I am using libtool-1.5.23b.

Haven't tried gtk+ yet, but performing an emerge -e world currently, so we'll
see.

BTW, I'm running ~x86 arch, with CFLAGS="-O2 -march=athlon-xp -pipe
-fomit-frame-pointer".

------- Comment #29 From Saurabh Singhvi 2007-05-02 20:59:17 0000 -------
(In reply to comment #28)
> I tried applying the patch from Comment #24, but it did not fix the problem.  I
> tried export SED=sed then emerge "<glib-2", and it worked perfectly.  I know
> the SED=sed is only a workaround, but it seems that the patch did not seem to
> help any.  I am using libtool-1.5.23b.
> 
> Haven't tried gtk+ yet, but performing an emerge -e world currently, so we'll
> see.
> 
> BTW, I'm running ~x86 arch, with CFLAGS="-O2 -march=athlon-xp -pipe
> -fomit-frame-pointer".
> 

same config, but the solution doesn't work for me :(

Saurabh

------- Comment #30 From Christoph Mende 2007-05-03 23:09:03 0000 -------
*** Bug 176974 has been marked as a duplicate of this bug. ***

------- Comment #31 From Weedy 2007-05-04 00:50:34 0000 -------
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> dev-libs/glib-1.2.10-r5 merged.

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
 * Regenerating GNU info directory index...
 * Processed 210 info files.
 * IMPORTANT: 2 config files in '/etc' need updating.
 * Type emerge --help config to learn how to update config files.


# diff -u /usr/portage/dev-libs/glib/glib-1.2.10-r5.ebuild
/usr/local/portage/dev-libs/glib/glib-1.2.10-r5.ebuild
--- /usr/portage/dev-libs/glib/glib-1.2.10-r5.ebuild    2007-03-03
11:05:49.000000000 -0500
+++ /usr/local/portage/dev-libs/glib/glib-1.2.10-r5.ebuild      2007-05-03
20:46:01.000000000 -0400
@@ -35,6 +35,8 @@
        use ppc64 && use hardened && replace-flags -O[2-3] -O1
        append-ldflags $(dlopen_lib)

+
+       rm -f acinclude.m4
        eautoreconf
        elibtoolize
 }

------- Comment #32 From Daniel Baumann 2007-05-10 14:19:17 0000 -------
Created an attachment (id=118749) [details]
gtk+-1 and glib-1 tar-bz2'd for easy overlaying.

(In reply to comment #24 and #26)
I've merged that patch to gtk+-1 and glib-1 and tar-bz2'd them together for
easy overlaying.
see attached file "gtk+_glib-force_system_libtool-ebuilds.tar.bz2"

------- Comment #33 From Volkmar Glauche 2007-05-11 20:16:03 0000 -------
Created an attachment (id=118902) [details]
octave emerge log

------- Comment #34 From Volkmar Glauche 2007-05-11 20:18:27 0000 -------
(From update of attachment 118902 [details])
The same error seems to prevent octave to emerge. export SED=sed does not help
to work around.

------- Comment #35 From Shunichi Fuji 2007-05-17 01:49:12 0000 -------
(In reply to comment #28 and #29)
hmm... if you still has error with #32 overlay,
how error was output?

------- Comment #36 From Jakub Moc (RETIRED) 2007-05-28 16:23:44 0000 -------
*** Bug 180124 has been marked as a duplicate of this bug. ***

------- Comment #37 From Fernando Luz 2007-06-01 11:52:30 0000 -------
(In reply to comment #17)

On solution for this are

fix_libtool_files.sh 3.3.4 as root

works for glib and gtk+ problems for libtool

because if change you gcc, you get this problem.

------- Comment #38 From Fernando Luz 2007-06-01 11:55:54 0000 -------
(In reply to comment #17)

On solution for this are

fix_libtool_files.sh 3.3.4 as root

works for glib and gtk+ problems for libtool

because if change you gcc, you get this problem.

------- Comment #39 From Peter Humphrey 2007-06-01 17:08:22 0000 -------
(In reply to comment #38)

> fix_libtool_files.sh 3.3.4 as root
> 
> works for glib and gtk+ problems for libtool

Not for me. glib-1.2.10-r5 still fails to compile. I don't know which version
of glib was used to compile the version on the 2006.1 installation CD, which I
assume is the version I have installed here since I've never been able to
recompile it, but I've tried passing every version reported by eix to
fix_libtool_files.sh, and still no joy.

------- Comment #40 From Peter Humphrey 2007-06-01 17:12:50 0000 -------
- but the SED fix did work for me. Sorry, I meant to say that but forgot until
just after clicking Submit.

------- Comment #41 From Jakub Moc (RETIRED) 2007-06-19 07:59:56 0000 -------
*** Bug 182545 has been marked as a duplicate of this bug. ***

------- Comment #42 From SpanKY 2007-06-27 15:28:31 0000 -------
glib-1.x is fixed now

------- Comment #43 From SpanKY 2007-06-27 16:34:49 0000 -------
and now gtk+-1.x is fixed

First Last Prev Next    No search results available      Search page      Enter new bug