Most tests fail
Brought to you by:
bkorb
Most tests fail on macOS 10.13:
============================================================================
Testsuite summary for GNU AutoGen 5.18.16
============================================================================
# TOTAL: 24
# PASS: 3
# SKIP: 0
# XFAIL: 0
# FAIL: 21
# XPASS: 0
# ERROR: 0
============================================================================
What ditritus do you get with:
It looks like it is configured to use gettext but cannot find the library at link time.
I agree... Attached is the output of running that.
I see that autoopts/test/Makefile contains the line
LIBS = -lm -lintl -ldlbut maybe$LIBSisn't being used by the tests.I tried adding
-lintltoLDFLAGSwhen invoking./configure, which does get-lintlto appear in the autoopts/test/MakefileLDFLAGSline, but that too seems to be ignored by the tests.Is this still a problem? Noone else reports it.
I tried the tests again now on macOS 10.13 and got the same failing results.
Once I have a release nearly ready, I'll try it on my Mac.
I don't think you've got "gettext" installed properly.
Well I'm the maintainer of gettext in MacPorts and I have over 150 other ports installed that use gettext, so I think gettext is installed correctly.
I agree that the tests are failing because gettext symbols can't be found, but I think the reason for that is that the
-L/opt/local/lib -lintlflags are not being used here in the tests. I don't know why that is though.I don't think you've got "gettext" installed properly.
Just to add, if nobody else sees this problem on macOS, maybe that's because nobody else is running the tests on macOS, or those who are aren't trying to do so with gettext. macOS doesn't ship with gettext so the user would have to install it themselves and configure autogen to use it.
If I just run
then it doesn't find gettext and all tests succeed (except one, for which I've filed bug #200). But if I have gettext installed with MacPorts and run
then it does find gettext and the tests fail because of not using
-L/opt/local/lib -lintl.Since I'm not seeing it, would you be kind enough to try this patch?
I think it should get the LD flags into the command line.
Thanks, that's promising. It got
-L/opt/local/libinto the compile flags, but still not-lintl. With a little experimentation, I found that the changes to Makefile.am were not needed and the following changes let the tests (except getopt.test) pass:I've applied your patches, thank you. It rebuilds without problems on my platform, so they'll be included when I get 5.20 pushed out. Thanks again.