On 11.10.2014 11:29, Armin K. wrote:
On 10/11/2014 10:25 AM, Andrei Banu wrote:
Hello,
I have attempted to build attr but it returned many
failed tests.
Hoping that those failed tests might be irrelevant (long
shot - I know) I went ahead to ACL but it needed
something missing from attr:
Chapter 6.22
...
checking for rpm... no
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no
FATAL ERROR: attr/xattr.h does not exist.
Install the extended attributes (attr) development package.
Alternatively, run "make install-dev" from the attr source.
So I've retraced my prior step (Ch 6.21: attr) but I still get
errors:
Chapter 6.21
root:/sources/attr-2.4.47# make -j1 tests root-tests
...
114 commands (38 passed, 76 failed)
Makefile:40: recipe for target 'attr.test' failed
make[1]: *** [attr.test] Error 76
make[1]: Leaving directory '/sources/attr-2.4.47/test'
Makefile:116: recipe for target 'tests' failed
make: *** [tests] Error 2
But I went ahead and ran 'make install install-dev install-lib'
again plus the other (chmod,mv and ln).
Then again I retried ACL and now the error moved a few
paces down:
Chapter 6.22
...
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.
Can you spot the problem?
Do you have any suggestions?
Thanks!
Check /usr/lib/libattr.so symlink to see if it points to a valid file.
"file /usr/lib/libattr.so"
should return:
/usr/lib/libattr.so: symbolic link to `../../lib/libattr.so.1'
Hi,
Yes, your intuition is correct I think:
root:/sources# file /usr/lib/libattr.so
/usr/lib/libattr.so: symbolic link to `../../lib/'
So I've tried to manually make the symlink:
root:/sources# ln -svf ../lib/libattr.so.1 /usr/lib/libattr.so
'/usr/lib/libattr.so/libattr.so.1' -> '../../lib/libattr.so.1'
And ran 'file' again on /usr/lib/libattr.so:
root:/sources# file /usr/lib/libattr.so
/usr/lib/libattr.so: symbolic link to `../../lib/'
So in the end I ran file on the target itself:
root:/lib# file /lib/libattr.so.1
/lib/libattr.so.1: broken symbolic link to `../../lib/libattr.so.1'
So I deleted all libattr* files in /usr/lib, went to
/sources/attr* and ran 'make install install-dev install-lib'
and all the below steps again and now ACL configures
and builds correctly. So now I don't know what happened.
But anyway, you helped me - again - to move the things forward.
So many thanks!
Kind regards,
Andrei Banu
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style