First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 81793
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Chris Smith <chris@realcomputerguy.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
rc.patch patch to remove the use of awk and gawk from /sbin/rc patch uniplex 2005-02-13 17:02 0000 2.55 KB Details | Diff
rc.patch patch to remove the use of awk and gawk from /sbin/rc patch uniplex 2005-02-13 17:25 0000 2.55 KB Details | Diff
rc.patch patch to remove the use of awk and gawk from /sbin/rc patch uniplex 2005-02-13 17:37 0000 2.55 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 81793 depends on: Show dependency tree
Bug 81793 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: 2005-02-12 15:10 0000
after upgrading to sys-apps/gawk-3.1.4-r2 system no longer boots
keep getting numerous gawk errors during the boot process which eventually hangs
the oft repeated error is ->

gawk: error while loading shared libraries: libexpat.so.0: cannot open shared object file: no such file or directory

after dropping back to sys-apps/gawk-3.1.3-r2 the system boots normally

Reproducible: Always
Steps to Reproduce:
1.emerge sys-apps/gawk-3.1.4-r2
2.boot
3.

Actual Results:  
the errors as detailed above appear, boot process hangs

Expected Results:  
system should have booted normally

the error is consistent and repeatable on my desktop but I have no problem at
all with the newer gawk on my laptop

~ # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-ck5 i686)
=================================================================
System uname: 2.6.10-ck5 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 11:21:35)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -s"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /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 -march=pentium4 -fomit-frame-pointer -pipe -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com http://mirrors.tds.net/gentoo
http://open-systems.ufl.edu/mirrors/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="x86 X aalib acl acpi alsa apache2 arts audiofile avi bash-completion berkdb
bitmap-fonts bonobo cdparanoia cdr crypt cups curl divx4linux dv dvd dvdr encode
esd f77 fam flac font-server fortran gdbm gif gphoto2 gpm gstreamer gtk gtk2
gtkhtml guile imagemagick imap imlib ipv6 jack java jpeg jpeg2k kde lcms ldap
libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl odbc oggvorbis
opengl oss pam pda pdflib perl png ppds python qt quicktime readline samba sasl
scanner sdl slang spell sse ssl svg svga tcltk tcpd tetex theora threads tiff
truetype truetype-fonts type1-fonts unicode usb wmf xine xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

------- Comment #1 From Derek Dolney 2005-02-12 15:46:57 0000 -------
I got this too. It seems the new gawk links dynamically to /usr/lib/libexpat,
so startup scripts that use gawk before /usr is mounted fail.

------- Comment #2 From Sam 2005-02-12 16:46:50 0000 -------
I have the same thing. 
The system drops to a login prompt after starting what it can with the filesystem readonly (unable to init /etc/mtab)

emerge info:
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0                                                                                                                      
, 2.6.10-morph22 i686)
=================================================================
System uname: 2.6.10-morph22 i686 AMD Athlon(tm)  2600+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 17:29:29)                                                                                                                      
]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share                                                                                                                      
/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar                                                                                                                      
e/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/                                                                                                                      
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm avi berkdb bitmap-fonts cdr cfq-ts crypt cups divx div                                                                                                                      
x4linux dvd encode f77 fam flac font-server foomatic foomaticdb fortran gdbm gif                                                                                                                      
 gimpprint gpm gtk gtk2 imagemagick imlib ipv6 java jpeg libg++ libwww live mad                                                                                                                       
mikmod mmx motif mozilla mpeg nas ncurses nls nptl offensive oggvorbis opengl os                                                                                                                      
s pam pdflib perl pic png posix ppds python quicktime readline samba sdl spell s                                                                                                                      
se ssl staircase svga tcltk tcpd tiff truetype truetype-fonts type1-fonts unicod                                                                                                                      
e usb xml xml2 xmms xpm xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

------- Comment #3 From Jacoby Yves 2005-02-12 19:03:17 0000 -------
*** Bug 81817 has been marked as a duplicate of this bug. ***

------- Comment #4 From Peter Gordon (RETIRED) 2005-02-13 13:09:40 0000 -------
I think you're having the same problem described in bug # 81823.

------- Comment #5 From Sven Wegener 2005-02-13 16:30:56 0000 -------
*** Bug 81823 has been marked as a duplicate of this bug. ***

------- Comment #6 From uniplex 2005-02-13 17:02:04 0000 -------
Created an attachment (id=51168) [edit]
patch to remove the use of awk and gawk from /sbin/rc

I've only done very limited testing of it at the time of this post.

------- Comment #7 From uniplex 2005-02-13 17:18:25 0000 -------
(From update of attachment 51168 [edit])
only limited testing

------- Comment #8 From uniplex 2005-02-13 17:25:57 0000 -------
Created an attachment (id=51171) [edit]
patch to remove the use of awk and gawk from /sbin/rc

limited testing

------- Comment #9 From uniplex 2005-02-13 17:37:48 0000 -------
Created an attachment (id=51172) [edit]
patch to remove the use of awk and gawk from /sbin/rc

gosh this web interface is killing me, sorry :)

------- Comment #10 From Moshe Kamensky 2005-02-14 01:04:17 0000 -------
I simply copied libexpat* from /usr/lib to /lib

------- Comment #11 From Chris Smith 2005-02-14 07:48:50 0000 -------
Why is this ebuild not masked? If not an unbootable system, what makes an
ebuild qualify for masking?
Applying it to a remote system could be reasonably catastrophic. Shouldn't it
be masked until it's resolved?

------- Comment #12 From Stéphane Gimenez 2005-02-14 09:42:57 0000 -------
The issue is that sys-apps/gawk-3.1.4-r2 in /bin depends on dev-libs/expat in
/usr/lib.

The latest (-r2 only) version gawk depends on libexpat:

$ ldd /bin/gawk
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/libdl.so.2 (0x4aa6a000)
        libm.so.6 => /lib/libm.so.6 (0x4ab5b000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4ac6d000)
        libc.so.6 => /lib/libc.so.6 (0x4a940000)
        /lib/ld-linux.so.2 (0x4a926000)

This make my late sytem boot become big mess. I managed to login, but root
filesystem was mounted read only. I had to "mount -o remount,rw /" and "cp -a
/usr/lib/libexpat* /lib" in order to be able to boot it again.

Two choices:
 - moving gawk into the land of /usr and remove the use of gawk in the init
script until /usr is accessible.
 - moving libexpat into the land of /

Thanks for fixing this thing quickly.

------- Comment #13 From Stéphane Gimenez 2005-02-14 09:52:06 0000 -------
The origin of this bug is the patch proposed in enhancement proposal bug
#57857.

------- Comment #14 From SpanKY 2005-02-14 10:17:01 0000 -------
(From update of attachment 51172 [edit])
removal of awk from /sbin/rc will be a feature for the future, not for the
current baselayout

------- Comment #15 From uniplex 2005-02-14 14:25:36 0000 -------
Personally I'd like to see gentoo sometime in the future adopt mawk (GPL-2).
Frankly, gawk is bloated and slow. mawk can run circles around gawk. Of all the
ebuilds and system files I've seen that call gawk specifically, not one has
actually used a gawk specific extension. Of course on a gentoo system and most
other linux distros awk is a symlink to gawk and so it doesn't matter if you
call awk or gawk -- gawk still gets executed. It would seem more fitting for a
lean and mean distro such as gentoo to use a lean and mean version of awk and
not some slow wimp version. :) One day I would really like to see gentoo link
awk to mawk but keep gawk as an aside (even though I've never seen anything in
gentoo actually use a gawk specific extension).

------- Comment #16 From SpanKY 2005-02-14 18:52:50 0000 -------
*** Bug 82046 has been marked as a duplicate of this bug. ***

------- Comment #17 From SpanKY 2005-02-14 19:46:44 0000 -------
assuming we dont have problems refering to 'awk' in baselayout, you could in
theory just update the /bin/awk symlink to point to mawk ...  regardless,
gawk-3.1.4-r3 is now in portage ... it'll build gawk twice if USE=xml,  that
way we get the normal gawk w/out libexpat requirements in /bin while the xml
peeps get their 'xmlgawk' in /usr/bin

------- Comment #18 From uniplex 2005-02-14 22:01:32 0000 -------
shew.. nice work. :) My fancy for awk didn't want to see it removed anyway. :)

------- Comment #19 From SpanKY 2005-02-15 07:15:46 0000 -------
*** Bug 82096 has been marked as a duplicate of this bug. ***

------- Comment #20 From Carsten Lohrke 2005-02-15 10:59:08 0000 -------
*** Bug 82137 has been marked as a duplicate of this bug. ***

------- Comment #21 From Sven Wegener 2005-02-16 09:28:31 0000 -------
*** Bug 82263 has been marked as a duplicate of this bug. ***

------- Comment #22 From SpanKY 2005-02-21 11:08:21 0000 -------
*** Bug 82853 has been marked as a duplicate of this bug. ***

------- Comment #23 From martin mittendorfer 2005-02-21 11:11:54 0000 -------
*sigh* at least i am not the only one who has submitted this bug as duplicate
:) 

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