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

David C. Rankin drankinatty at suddenlinkmail.com
Sat Feb 18 13:43:07 EST 2012


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?


-- 
David C. Rankin, J.D.,P.E.


More information about the arch-general mailing list