On Monday 24 of January 2005 14:54, Christian Hammers wrote: > Hello Piotr > > On 2005-01-24 Piotr Roszatycki wrote: > > The same is applied if there is db or ldap backend used. It is because > > mysql is compiled with --static option for ./configure script. > > Is it really due to compile time options or more because > /var/lib/dpkg/info/mysql-server.preinst does a "grep mysql /etc/passwd" > which, of course, fails in your case. (It has been replaced by > a "getent passwd mysql" which should work. > > If it's really due to the compile option I would be interested to know > why this makes a difference.
Hmmm. I was suggested by some of bug report on MySQL site. I've recompiled with --disable-static and nothing was changed. My ltrace and strace output: # ltrace -f mysqld 2>&1 | grep getpwnam getpwnam("mysql" <unfinished ...> <... getpwnam resumed> ) = NULL # strace -f mysqld 2>&1 | grep open [...] open("/usr/share/mysql/english/errmsg.sys", O_RDONLY|O_LARGEFILE) = 3 open("/etc/nsswitch.conf", O_RDONLY) = 3 open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/tls/libnss_files.so.2", O_RDONLY) = 3 open("/etc/passwd", O_RDONLY) = 3 open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/libnss_db.so.2", O_RDONLY) = 3 open("/usr/lib/libdb3.so.3", O_RDONLY) = 3 open("/var/lib/misc/passwd.db", O_RDWR|O_LARGEFILE) = 3 open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 3 open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 3 It seems should work but getpwnam returns NULL. -- .''`. Piotr Roszatycki, Netia SA : :' : mailto:[EMAIL PROTECTED] `. `' mailto:[EMAIL PROTECTED] `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]