Le 28/09/2014 18:42, Bruce Dubbs a écrit :
> Pierre Labastie wrote:
>> Hi,
>>
>> I run into the following error when building sudo-1.8.11 on a fresh LFS 7.6:
>> ------
> 
>> /usr/bin/ld: cannot find -lshadow
> 
>> ------
>> I have tried to find libshadow in /usr/lib and /lib, and found nothing.
>> Actually, during the build of shadow, they use libshadow.a, which is linked 
>> to
>> the executables, but not installed.
>>
>> Looking at what changed in configure.ac, I think I found the faulty code:
>> -------- Note that shadow_libs_optional contains "-lshadow"
>>          AC_CHECK_FUNCS($shadow_funcs, [found=yes])
>> -       if test "$found" = "yes"; then
>> -           SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
>> -       elif test -n "$shadow_libs_optional"; then
>> +       if test "$found" = "yes" -a -n "$shadow_libs_optional"; then
>>              LIBS="$LIBS $shadow_libs_optional"
>>              AC_CHECK_FUNCS($shadow_funcs, [found=yes])
>>              if test "$found" = "yes"; then
>> -               SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs 
>> $shadow_libs_optional"
>> +               shadow_libs="$shadow_libs $shadow_libs_optional"
>> -------
>> So while before, $shadow_libs_optional was only added when $found was
>> different from "yes", now it is included when $found is equal to "yes".
>>
>> Actually, the issue seems to have been corrected at:
>> http://www.sudo.ws/repos/sudo/rev/fdf06757f25d
>>
>> But what amazes me is that nobody on the list has seen this yet. Is there a
>> possibility that some of our developpers have libshadow installed? And if
>> so, how?
> 
> I have /opt/xorg/lib/xorg/modules/libshadow.so.  It was installed as a part of
> xorg-server-1.16.0.tar.bz2.
Hmmm, I think it has nothing to do with the shadow (from package shadow)
library, but rather with some display buffering technique, which is called
shadow too...
> 
> sudo-1.8.10p3 certainly built OK before Xorg, but I haven't tried sudo-1.8.11.
> 
>   -- Bruce
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to