Created attachment 288013 [details]
On my hardened ~amd64 machine with gcc-4.6.1 sys-devel/libtool fails its testsuite. More exactly it fails tests 42, 84, 112.
42: Runpath in libtool library files FAILED (runpath in-lalib.at:61)
84: enforced lib prefix FAILED (need_lib_prefix.at:170)
112: Run tests with low max_cmd_len FAILED (cmdline_wrap.at:43)
ERROR: 107 tests were run,
8 failed (5 expected failures).
13 tests were skipped.
If I switch to vanilla-gcc-4.6.1 the result stays the same.
Created attachment 288015 [details]
we need the testsuite.log file attached
Created attachment 288609 [details]
testsuite.log for failing tests 42, 84, 112
Here you go!
I can confirm it - on my system (Portage 220.127.116.11 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.12.2-r0, 3.1.0-gentoo x86_64) these test was failed too.
This also failed for me, on libtool-2.4.2. I do *NOT* use hardened, which may help to simplify the situation. This is amd64. I still have my 32-bit install so I might be able to attempt this there if interested. I'm on gcc 4.6.3.
The test numbers are now 42, 86, and 115.
*** Bug 391305 has been marked as a duplicate of this bug. ***
*** Bug 395475 has been marked as a duplicate of this bug. ***
*** Bug 516808 has been marked as a duplicate of this bug. ***
Commit message: Fix cmdline_wrap test failures
looks like the last two fail only when --disable-static is used
should be all set now in the tree; thanks for the report!
Commit message: Move up the libtool static hack to fix unit tests too