Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve t/porting/globvar.t portability #21637

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Conversation

tonycoz
Copy link
Contributor

@tonycoz tonycoz commented Nov 14, 2023

This makes two basic changes:

  • use nm -P objectfile instead of nm objectfile. POSIX defines a specific layout for nm -P ...
  • AIX (at least) lists multiple definitions (of different types) for global symbols, so restructure the code to handle that

Tested on smokes, AIX 5, HP-UX 11.31 (Tux's machine)

Fixes #21623

POSIX specifies well defined output for nm -P

This will hopefully run this test on more platforms, including old AIX,
for which nm produces a different output from what the test expected.

Part of Perl#21623
nm on AIX can list both local and global definitions for the same
variable, which meant the parsing would delete the first instance
from %exported, but then add the second to %unexported, failing the
test.

This didn't fail on AIX 5 because the default nm output didn't
match what the code expected when checking for PL_Yes, and so
the entire test script skipped.

Fixes Perl#21623
@tonycoz tonycoz merged commit 2804f7d into Perl:blead Nov 16, 2023
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

t/porting/globvar.t has failures on AIX
2 participants