Opened 10 years ago

Closed 10 years ago

#5599 closed defect (fixed)

Sudo-1.8.11 does not build if PAM is not installed

Reported by: Pierre Labastie Owned by: Pierre Labastie
Priority: high Milestone: 7.7
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

When installing on a fresh LFS-7.6 install:

libtool: link: gcc -shared  -fPIC -DPIC  .libs/sudo_auth.o .libs/getspwuid.o
.libs/passwd.o .libs/boottime.o .libs/check.o .libs/env.o .libs/find_path.o
.libs/goodpath.o .libs/group_plugin.o .libs/interfaces.o .libs/iolog.o
.libs/iolog_path.o .libs/locale.o .libs/logging.o .libs/logwrap.o
.libs/parse.o .libs/policy.o .libs/prompt.o .libs/set_perms.o .libs/sudo_nss.o
.libs/sudoers.o .libs/timestamp.o  -Wl,--whole-archive
./.libs/libparsesudoers.a -Wl,--no-whole-archive  -Wl,-rpath
-Wl,/sources/sudo/sudo-1.8.11/lib/util/.libs -Wl,-rpath -Wl,/usr/lib/sudo
-lcrypt -lshadow ../../lib/util/.libs/libsudo_util.so -ldl -lz  -Wl,-z
-Wl,relro   -Wl,-soname -Wl,sudoers.so -o .libs/sudoers.so
/usr/bin/ld: cannot find -lshadow
collect2: error: ld returned 1 exit status
Makefile:204: recipe for target 'sudoers.la' failed
make[2]: *** [sudoers.la] Error 1
make[2]: Leaving directory '/sources/sudo/sudo-1.8.11/plugins/sudoers'
Makefile:89: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/sources/sudo/sudo-1.8.11'

The patch at http://www.sudo.ws/repos/sudo/rev/fdf06757f25d allows to build.

This does not affect building when PAM is installed.

Change History (3)

comment:1 by Pierre Labastie, 10 years ago

Owner: changed from blfs-book@… to Pierre Labastie
Status: newassigned

comment:2 by Fernando de Oliveira, 10 years ago

Priority: normalhigh

Please, fix it, if you don't mind.

It breaks also in 32bit.

comment:3 by Pierre Labastie, 10 years ago

Resolution: fixed
Status: assignedclosed

Thanks for the information. Fixed at r14413

Note: See TracTickets for help on using tickets.