LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-01-2015, 12:25 AM   #1
mayur_
Member
 
Registered: Dec 2013
Location: Pune, India
Distribution: Ubuntu
Posts: 46

Rep: Reputation: 1
Smile Fatal error in building Acl in chapter 6.22 [LFS-7.7]


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

Last edited by mayur_; 07-01-2015 at 12:41 AM.
 
Old 10-07-2017, 04:37 PM   #2
bastl
Member
 
Registered: Sep 2003
Location: Germany/BW
Distribution: My own
Posts: 237

Rep: Reputation: 22
I had the same problem:
attr-2.4.47.src.tar.gz installs only these two libs:
-libattr.so.1
-libattr.so.1.1.0

so I did:

bash# ln -s libattr.so.1.1.0 libattr.so

in the libdir. And all went fine.

Thanks for your hint!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 7.1 errors in chapter 6 when building gcc in 6.17 kevstev Linux From Scratch 3 01-02-2013 12:31 PM
[SOLVED] LFS 7.1, Chapter 5.4.1 fatal error: cannot find 'ld' engineer Linux From Scratch 15 12-13-2012 10:06 PM
LFS 7.0 - Chapter 6.9 building glibc jimmy_page_89 Linux From Scratch 5 11-27-2011 05:31 AM
Chapter 6 Building the LFS System brayden516 Linux From Scratch 1 05-01-2008 11:41 AM
Stuck on chapter 5 when building Tcl-8.4.6 For LFS-5.1 deMilo Linux From Scratch 2 06-20-2004 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration