On 9/18/06, Richard Fish <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
http://www.lustosa.net/
--
gentoo-user@gentoo.org mailing list

Reply via email to