public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Bruno Lustosa" <bruno.lists@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem with new glibc and libnss
Date: Mon, 18 Sep 2006 14:55:28 -0300	[thread overview]
Message-ID: <b9e0c3fe0609181055mea07eebhc6c96dec15aab57c@mail.gmail.com> (raw)
In-Reply-To: <7573e9640609180948t382ab626pda1ab20afb6afe0d@mail.gmail.com>

On 9/18/06, Richard Fish <bigfish@asmallpond.org> wrote:
> Can you post your nsswitch.conf?  I don't normally use nss_mysql, but
> I just installed it on my box to see what an strace ls would reveal,
> and it does not show libmysql being accessed when files appears first
> for passwd, shadow, and groups.

Hello. I have just tried it again, and surprisingly it's working now,
even though I already had it this way:

$ grep -e ^passwd -e ^shadow -e ^group /etc/nsswitch.conf
passwd:         files mysql
shadow:         files mysql
group:          files mysql

> carcharias ~ # strace -f -e open -o /tmp/strace.out ls -l / >/dev/null
> carcharias ~ # grep mysql /tmp/strace.out

Same result here, no access to mysql whatsoever.

> carcharias ~ # strace -f -e open -o /tmp/strace.out ls -l / >/dev/null
> carcharias ~ # grep mysql /tmp/strace.out
> 30644 open("/lib/libnss_mysql.so.2", O_RDONLY) = 3

It seems to be trying to find it. In my root dir, I have all files
owned by root:root, don't know how it is there, but in my case, it
wouldn't need to try mysql for that.

> Also the outputs of emerge --info and emerge -pv sys-libs/glibc might help.

Well, even though mine seems to be working very very fine, a friend
who had the same problem still has it. The versions of glibc,
libnss-mysql and baselayout are the same as mine, although he's
running om amd64 (I'm on x86).
I just had a look over there, and udevd doesn't start. An strace shows
it trying to open libmysqlclient on /usr, and as it's not mounted, it
fails with that "Inconsistency detected" error.
Anyway, here are my versions:

[ebuild   R   ] sys-libs/glibc-2.4-r3  USE="nls nptl nptlonly -build
-glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB
[ebuild   R   ] sys-auth/libnss-mysql-1.5  0 kB
[ebuild   R   ] sys-apps/baselayout-1.12.5  USE="unicode -bootstrap
-build -static" 0 kB

For me, this looks very very strange. I mean, I know it *should* work
with "files mysql" at nsswitch.conf, but why mine works and my
friend's doesn't is a mystery for me. At least for now. I'm pretty
sure baselayout has nothing to do with it, I listed it just because it
owns /sbin/rc. Problem seems to be the way nss is trying to resolve
things over there.
My emerge --info shows:

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1/vanilla,
glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Sempron(tm)  2400+
Gentoo Base System version 1.12.5
Last Sync: Fri, 15 Sep 2006 14:00:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.0-r2, 2.0.28-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler
/etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch
sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LINGUAS="pt_BR ru en_US"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aalib acl alsa bash-completion berkdb
bitmap-fonts bluetooth cli crypt cups dga dlloader dri dvd dvdread
elibc_glibc esd firefox fortran gdbm gif gnome gpm gtk
input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux
libg++ linguas_en_US linguas_pt_BR linguas_ru maildir mmx mmxext mpeg
ncurses nls nptl nptlonly nsplugin offensive ogg opengl pam pcre perl
png ppds pppd python readline reflection sdl session spl sse sse2 ssl
tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU
video_cards_nv video_cards_nvidia vorbis xmms xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

Thanks for your answer, and if you need something more, please tell me.

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



  reply	other threads:[~2006-09-18 18:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-18 14:08 [gentoo-user] Problem with new glibc and libnss Bruno Lustosa
2006-09-18 16:48 ` Richard Fish
2006-09-18 17:55   ` Bruno Lustosa [this message]
2006-09-18 18:33     ` Richard Fish
2006-09-18 20:23       ` Bruno Lustosa
2006-09-19  1:58         ` Bruno Lustosa
     [not found]           ` <7573e9640609181938q46e3998dq76e5d69aa8cbbbc0@mail.gmail.com>
2006-09-19 13:24             ` Bruno Lustosa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9e0c3fe0609181055mea07eebhc6c96dec15aab57c@mail.gmail.com \
    --to=bruno.lists@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox