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-51076-garchives=archives.gentoo.org@gentoo.org>)
	id 1GOEQE-0007sS-G0
	for garchives@archives.gentoo.org; Fri, 15 Sep 2006 14:12:02 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8FEBJtp025667;
	Fri, 15 Sep 2006 14:11:19 GMT
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8FE66It030485
	for <gentoo-user@lists.gentoo.org>; Fri, 15 Sep 2006 14:06:06 GMT
Received: from localhost (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id 060996400A
	for <gentoo-user@lists.gentoo.org>; Fri, 15 Sep 2006 14:06:06 +0000 (UTC)
Received: from smtp.gentoo.org ([127.0.0.1])
 by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 16042-12-2 for <gentoo-user@lists.gentoo.org>;
 Fri, 15 Sep 2006 14:05:57 +0000 (UTC)
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191])
	by smtp.gentoo.org (Postfix) with ESMTP id 594EB6464D
	for <gentoo-user@gentoo.org>; Fri, 15 Sep 2006 14:05:53 +0000 (UTC)
Received: by nf-out-0910.google.com with SMTP id k26so2662497nfc
        for <gentoo-user@gentoo.org>; Fri, 15 Sep 2006 07:05:53 -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=Uj89nxS1kXvi9w85oWLSdOFEveuCacN6ngDsxVZqgWRtSc62tSR83izMw2ijHzus++7hq7CWrQlpj+v7aAw3daOmkldPjBOCzE2yaZgAec71/X+MoJzDlasf0ZnEmKXV6/Qbirwwty+RD39owZE7YMU89kqezk1n6A9n9tGCFtg=
Received: by 10.49.8.15 with SMTP id l15mr13374512nfi;
        Fri, 15 Sep 2006 07:05:52 -0700 (PDT)
Received: by 10.49.78.5 with HTTP; Fri, 15 Sep 2006 07:05:52 -0700 (PDT)
Message-ID: <b9e0c3fe0609150705q2d53d4cbmf00d3e50a2437e19@mail.gmail.com>
Date: Fri, 15 Sep 2006 11:05:52 -0300
From: "Bruno Lustosa" <bruno.lists@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Weird problem with new glibc
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-Virus-Scanned: amavisd-new at gentoo.org
X-Spam-Status: No, score=-2.396 required=5.5 tests=[AWL=-0.074,
 BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, TW_QL=0.077]
X-Spam-Score: -2.396
X-Spam-Level: 
X-Archives-Salt: abac91f3-44b6-4edb-b9df-93e48c38b2ea
X-Archives-Hash: 57cbf7e51a33d0b5dc213189fbd4ca53

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