while executing the command
Code:
./configure --prefix=/usr \
--bindir=/bin \
--libexecdir=/usr/lib
it returns
Code:
FATAL ERROR: could not find a valid Extended Attributes library.
Install the extended attributes (attr) development package.
Alternatively, run "make install-lib" from the attr source.
complete output:
Code:
root:/sources/acl-2.2.52# ./configure --prefix=/usr \
> --bindir=/bin \
> --libexecdir=/usr/lib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /tools/bin/sed
checking for grep that handles long lines and -e... /tools/bin/grep
checking for egrep... /tools/bin/grep -E
checking for fgrep... /tools/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 6291456
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gmake... no
checking for make... /tools/bin/make
checking for tar... /tools/bin/tar
checking for gzip... /tools/bin/gzip
checking for makedepend... /bin/true
checking for awk... /tools/bin/awk
checking for sed... (cached) /tools/bin/sed
checking for echo... /bin/echo
checking for sort... /tools/bin/sort
checking whether ln -s works... yes
checking for msgfmt... /tools/bin/msgfmt
checking for msgmerge... /tools/bin/msgmerge
checking for xgettext... /tools/bin/xgettext
checking for rpm... no
checking attr/xattr.h usability... yes
checking attr/xattr.h presence... yes
checking for attr/xattr.h... yes
checking attr/error_context.h usability... yes
checking attr/error_context.h presence... yes
checking for attr/error_context.h... yes
checking for getxattr in -lattr... no
FATAL ERROR: could not find a valid Extended Attributes library.
Install the extended attributes (attr) development package.
Alternatively, run "make install-lib" from the attr source.
I've read the problem lies in the attr package installed previously, so I rebuilt that too number of time still getting the same error.
perhaps the problem lies in the symmlink created in the end of attr:
Code:
ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so
Moreover ,
My attr points to
Code:
readlink /usr/lib/libattr.so
../../lib/
What might've went wrong?
EDIT :
SOULTION:
I deleted all the attr files under /lib and /usr/lib
Code:
rm -rvf /usr/lib/libattr*
rm -rvf /lib/libattr*
And reinstalled the Attr package now the symmlink points correctly:
Code:
readlink /usr/lib/libattr.so
../../lib/libattr.so.1
Perhaps I made a typo error in making Attr
Happy Coding,
Mayur