LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Can someone explain what is going wrong with these tests of acl-2.2.53? (https://www.linuxquestions.org/questions/linux-from-scratch-13/can-someone-explain-what-is-going-wrong-with-these-tests-of-acl-2-2-53-a-4175653971/)

hazel 05-15-2019 03:14 PM

Can someone explain what is going wrong with these tests of acl-2.2.53?
 
in LFS, acl and atr are built before coreutils, but the acl build can only be tested after coreutils has been built with acl support.

I know the tests are not very important but I am going crazy trying to explain my test results. Six tests fail in the same way:
Code:

awk: error while loading shared libraries: libattr.so.1: cannot open shared object file: No such file or directory != -rw-rw-r--+
Here is the context taken from the test log:
Code:

[4] $ mkdir d -- ok
[5] $ cd d -- ok
[6] $ touch f -- ok
[7] $ setfacl -m u:bin:rw f -- ok
[8] $ ls -l f | awk -- '{ print $1 }' -- failed
awk: error while loading shared libraries: libattr.so.1: cannot open shared object file: No such file or directory != -rw-rw-r--+
ls: write error: Broken pipe          != ~

libattr.so.1 is in fact in fact in /lib where it should be.
Code:

lrwxrwxrwx 1 root root 19 May 15 18:48 /lib/libattr.so.1 -> libattr.so.1.1.2448.
I have gone through the steps indicated in the test log by hand and get the desired result -rw-rw-r--+. So what is going wrong? It should be something simple but damned if I can find it.

Luridis 05-16-2019 03:02 AM

Since the recent updates to those two packages, ACL now requires Gawk and Diffutils to complete the checks, run it after that. You may have to configure/make again because I am not sure if the test suite requires just the utilities or the various .so installed by Gawk.

There's lots of stuff in the books that hasn't been updated. I'd send them stuff but their mailing list has never accepted any message I sent them. (In the LFS book alone: grub needs patches, especially if using UEFI, groff can now be built in parallel and has a working test suite, I still build check in chapter 5 and just add LD_LIBRARY_PATH=/tools/lib to the KBD and Libpipeline 'make check' steps, etc. etc. There's much more, I have a text file full of fixes and updates.)

hazel 05-16-2019 06:32 AM

Quote:

Originally Posted by Luridis (Post 5995575)
Since the recent updates to those two packages, ACL now requires Gawk and Diffutils to complete the checks, run it after that. You may have to configure/make again because I am not sure if the test suite requires just the utilities or the various .so installed by Gawk.

Yes, that fixed it. No need to rebuild acl either; it works from the existing build once gawk is there. Thank you very much! But why wasn't /tools/bin/gawk (which is built after all from the same tarball) good enough? /usr/bin/gawk has some extra libraries linked in but libattr is not one of them. I'd still love an explanation.


All times are GMT -5. The time now is 10:51 AM.