From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-51358-garchives=archives.gentoo.org@gentoo.org>)
	id 1GPJsh-0007k1-Rt
	for garchives@archives.gentoo.org; Mon, 18 Sep 2006 14:13:56 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8IEDAav006239;
	Mon, 18 Sep 2006 14:13:10 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8IE8nh2014241
	for <gentoo-user@lists.gentoo.org>; Mon, 18 Sep 2006 14:08:50 GMT
Received: by nf-out-0910.google.com with SMTP id p46so3563582nfa
        for <gentoo-user@lists.gentoo.org>; Mon, 18 Sep 2006 07:08:49 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
        b=rXQY3YMMRp69Q0RYHCViqoUG9Yni5O3ExbDOuJ59d0F5D36LGBWSZNCHxlbipUTcOITCJ1IzQva2bs0SiIo4FVHqZbMORUMEq0AHB6yFRHILy8Sv+k4zVC9+XPd1harhHmkxuIOEMzh7z5+lq05Ex25fyy3hkFO5lIbXAHWc2Y8=
Received: by 10.49.55.13 with SMTP id h13mr16962826nfk;
        Mon, 18 Sep 2006 07:08:49 -0700 (PDT)
Received: by 10.49.78.5 with HTTP; Mon, 18 Sep 2006 07:08:48 -0700 (PDT)
Message-ID: <b9e0c3fe0609180708n5462c467ibec0157f6e836cb5@mail.gmail.com>
Date: Mon, 18 Sep 2006 11:08:48 -0300
From: "Bruno Lustosa" <bruno.lists@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Problem with new glibc and libnss
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Archives-Salt: 55f88654-47ed-48b0-bb1b-532f46d4442c
X-Archives-Hash: c7232f73f9202fd4e85e9756bf44e9f5

Hi folks,

As soon as I upgraded my system to new gcc and glibc, I started to get
a very weird problem at boot time. I'm using libnss-mysql to
authenticate users, and my nsswitch.conf is set to check files first,
then mysql.
At boot time, /usr is not yet mounted, and as such, anything that
would need to connect to mysql would fail (because libmysqlclient is
in /usr/lib). However, the problem is that udevd is not starting
without /usr mounted. A simple 'ls' on root dir fails as well, even
though all files and dirs there are owned by root:root (and of course,
root is on passwd and groups). An strace indicates that both of them
are trying to access /usr/lib/libmysqlclient.so, and when they get the
"No such file or directory", they fail with this message:

Inconsistency detected by ld.so: dl-open.c: 604: _dl_open: Assertion
`_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT'
failed!

My workaround (and a kinda ugly one) was to edit /sbin/rc (the script
that calls udevd) and put there just before calling udevd:

mknod /dev/hda7 b 3 7
mount /usr   (my /usr is in /dev/hda7)

This makes it work, but I'm sure someone might have a better idea than
that, because I'll lose this as soon as the package that owns /sbin/rc
is updated.
This worked before the last update to glibc, I just don't know why it
tries to connect to mysql now (either it didn't before, or it did try
but would not fail like that).

Can anyone shed some light on this?

-- 
Bruno Lustosa <bruno@lustosa.net>
http://www.lustosa.net/
-- 
gentoo-user@gentoo.org mailing list