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 ) id 1GPNQb-0004Av-QC for garchives@archives.gentoo.org; Mon, 18 Sep 2006 18:01:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8IHxmFt028034; Mon, 18 Sep 2006 17:59:48 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8IHtTAZ021615 for ; Mon, 18 Sep 2006 17:55:29 GMT Received: by nf-out-0910.google.com with SMTP id n15so3159842nfc for ; Mon, 18 Sep 2006 10:55:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UseN6wkAid1XruwksjFZWBgsj0G942CXsrRUVVr3t46KkP/p/E27wkb+4viXXDuW82NByXfM0Qw/rTDzJMGVCptI9srraYHmw8d/LbZ0bTdJob1uhIZfDaYY4mP+Km5Sn5UuA2Yld+yCVMbWMwbAckvQ1wsytXMm2JIO7D7kQp8= Received: by 10.48.48.15 with SMTP id v15mr17285972nfv; Mon, 18 Sep 2006 10:55:29 -0700 (PDT) Received: by 10.49.78.5 with HTTP; Mon, 18 Sep 2006 10:55:28 -0700 (PDT) Message-ID: Date: Mon, 18 Sep 2006 14:55:28 -0300 From: "Bruno Lustosa" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problem with new glibc and libnss In-Reply-To: <7573e9640609180948t382ab626pda1ab20afb6afe0d@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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 References: <7573e9640609180948t382ab626pda1ab20afb6afe0d@mail.gmail.com> X-Archives-Salt: 7a7ad7cf-45e0-480f-9626-74f98deabedb X-Archives-Hash: 6247a5dc076a6772ff7617244d9bdd48 On 9/18/06, Richard Fish 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 http://www.lustosa.net/ -- gentoo-user@gentoo.org mailing list