Bugzilla – Bug 477
sudo: symbol 'crypt': can't resolve symbol in lib '/usr/libexec/sudoers.so'
Last modified: 2011-04-11 08:05:09 MDT
When upgrading to sudo-1.8.0 on Alpine Linux sudo failed to work (breraking all our build boxes) sudo: symbol 'crypt': can't resolve symbol in lib '/usr/libexec/sudoers.so'. sudo: unable to dlopen /usr/libexec/sudoers.so: (null) I notice something that looks like a bug in configure.in: ... checking for strsignal... yes ./configure: line 17464: test: =: unary operator expected checking for library containing crypt... -lcrypt ... Alpine Linux is a non-GNU x86/86_64 linux distro based on uclibc/busybox. (uclibc is fairly POSIX compliant nowdays) My guess is that the sudoers.so needs -lcrypt, but GNU compiles fine without it.
Created attachment 305 [details] libcrypt.patch The attched patch fixes the issue for Alpine Linux. Basicly it just adds -lcrypt hard to sudoers.so.
Some libraries used for authentication were being added to SUDO_LIBS where they should be added to SUDOERS_LIBS. In the case of shared libraries, this is not a big deal, but if the libraries are static this could cause the problem you report. I've fixed that in the source repo, can you try ftp://ftp.sudo.ws/pub/millert/sudo/configure and verify that it works correctly for you?
(In reply to comment #2) > Some libraries used for authentication were being added to SUDO_LIBS > where they should be added to SUDOERS_LIBS. In the case of shared > libraries, this is not a big deal, but if the libraries are static this > could cause the problem you report. > > I've fixed that in the source repo, can you try > ftp://ftp.sudo.ws/pub/millert/sudo/configure and verify that it works > correctly for you? Yes, that seems to work. Please make sure it gets included in the 1.8.1 release. Thanks!
This is fixed in 1.8.1 which is currently in beta test, see http://www.sudo.ws/sudo/devel.html
Fixed in sudo 1.8.1