[arch-general] rebuilding shadow fails DSO problem with libattr - where to patch?

Leonid Isaev lisaev at umail.iu.edu
Sat Feb 18 13:58:29 EST 2012

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

> Guys
>   The update to shadow has caused problems and I needed to rebuild shadow
> 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:
Leonid Isaev
GnuPG key ID: 164B5A6D
Key fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120218/dea208b4/attachment.asc>

More information about the arch-general mailing list