Re: [lfs-dev] libelf
On 7/7/20 8:13 AM, Pierre Labastie via lfs-dev wrote: On Tue, 2020-07-07 at 11:56 +0100, Roger via lfs-dev wrote: Yesterday I built LFS-9.1 (sysvinit not systemd) with /usr on a separate partition. Localnet failed when I booted. This is because ip (from iproute2) links to libelf which is in /usr/lib. Localnet is run before mounting /usr which means that libelf is unavailable. My quick and easy solution was to move libelf* from /usr/lib to /lib. I've just looked at the latest SVN 2020-07-06 and libelf is still before iproute2 so the above would still happen. I don't see any configure option in iproute2 to stop the link to libelf so one solution would be to change the instructions for installing libelf. If there's a better way, feel free to use it. Thanks for the heads-up. It's good that somebody tests with a separate /usr partition! We can avoid linking by temporarily moving libelf.pc to another file. But I do not know what functionality would be lost in the process. Otherwise, I think we could just add --libdir=/lib to configure in libelf (and still install the .pc file to /usr/lib, and of course remove /lib/libelf.a). I don't think we need to do anything with libelf.pc. Just finish with mv -v /usr/lib/libelf-0.180.so libelf.so.1 /lib ln -sfv ../../lib/$(readlink /usr/lib/libelf.so) /usr/lib/libelf.so -- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] libelf
On Tue, 2020-07-07 at 11:56 +0100, Roger via lfs-dev wrote: > Yesterday I built LFS-9.1 (sysvinit not systemd) with /usr > on a separate partition. Localnet failed when I booted. This > is because ip (from iproute2) links to libelf which is in > /usr/lib. Localnet is run before mounting /usr which means > that libelf is unavailable. My quick and easy solution was > to move libelf* from /usr/lib to /lib. > > I've just looked at the latest SVN 2020-07-06 and libelf > is still before iproute2 so the above would still happen. > I don't see any configure option in iproute2 to stop the > link to libelf so one solution would be to change the > instructions for installing libelf. If there's a better > way, feel free to use it. Thanks for the heads-up. It's good that somebody tests with a separate /usr partition! We can avoid linking by temporarily moving libelf.pc to another file. But I do not know what functionality would be lost in the process. Otherwise, I think we could just add --libdir=/lib to configure in libelf (and still install the .pc file to /usr/lib, and of course remove /lib/libelf.a). Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] libelf
Yesterday I built LFS-9.1 (sysvinit not systemd) with /usr on a separate partition. Localnet failed when I booted. This is because ip (from iproute2) links to libelf which is in /usr/lib. Localnet is run before mounting /usr which means that libelf is unavailable. My quick and easy solution was to move libelf* from /usr/lib to /lib. I've just looked at the latest SVN 2020-07-06 and libelf is still before iproute2 so the above would still happen. I don't see any configure option in iproute2 to stop the link to libelf so one solution would be to change the instructions for installing libelf. If there's a better way, feel free to use it. -- Roger -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] Libelf Test Failure
Hi all, Just an FYI, really. I am currently working through LFS 8.2-rc1 (systemd) and I have a test failure in the libelf test suite. The test “run-strip-nothing.sh” fails. The elfutils package in BLFS 8.1 mentions that this test fails, but it is not mentioned in the LFS rc. Regards, Mark. -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Libelf 0.170
Cyrillo Baggins wrote: Hello, on a fresh LFS systemd dev book build I had to turn off Werror to build libelf 0.170 a simple sed -i "s/-Werror//" src/Makefile fixed it You do not say what the warning was that triggered the Werror. We have not needed that sed in out tests. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] Libelf 0.170
Hello, on a fresh LFS systemd dev book build I had to turn off Werror to build libelf 0.170 a simple sed -i "s/-Werror//" src/Makefile fixed it cheers -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page