Re: rebuilding shadow 4.1.4.3-5 fails DSO problem with libattr - where to patch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, 18 Feb 2012 12:43:07 -0600
"David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx> wrote:

> Guys
> 
>   The update to shadow has caused problems and I needed to rebuild shadow
> 4.1.4.3-5. I have run into the DSO error regarding libattr. I know I need to
> update the Makefile.am or patch the Makefile after the ./configure, but I'm
> not having any luck. The error is:
> 
> /bin/sh ../libtool --tag=CC   --mode=link gcc  -march=x86-64 -mtune=generic
> -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
> -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lcrypt -o
> useradd useradd.o   ../libmisc/libmisc.a ../lib/libshadow.la -lpam
> -lpam_misc   -lacl libtool: link: gcc -march=x86-64 -mtune=generic -O2 -pipe
> -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1
> -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--hash-style=gnu
> -o .libs/useradd useradd.o ../libmisc/libmisc.a ../lib/.libs/libshadow.so
> -lcrypt -lpam -lpam_misc -lacl /usr/bin/ld: ../libmisc/libmisc.a(copydir.o):
> undefined reference to symbol 'attr_copy_fd@@ATTR_1.1'
> /usr/bin/ld: note: 'attr_copy_fd@@ATTR_1.1' is defined in
> DSO /lib/libattr.so.1 so try adding it to the linker command line
> /lib/libattr.so.1: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> 
>   I think I need the explicit -llibattr in the CFLAGS line of the Makefile,
> but trying to patch it after ./configure isn't working. How do I properly
> handle this?
> 
> 

See the diff here:
http://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/shadow&id=f0072b844c5bc17797c6b483acfec170a5024163
-- 
Leonid Isaev
GnuPG key ID: 164B5A6D
Key fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux