Skip to content

Conversation

@daviesrob
Copy link
Member

At some point nm --with-symbol-versions stopped appending @@Base to unversioned symbols. This broke the awk script that looked for symbols to add to the htslib.map file. Fix by changing the match criteria to accept symbol names with no version appended as well as @@Base, and make minor adjustments to how the semicolon is appended to the name in the output.

Also add --defined-only to the nm command line to get rid of imported functions as they don't follow the same output format as for the symbols we want (the first column is blank). Removing them eliminates the chance that these lines could be incorrectly included.

Fixes #1971 although care will have to be taken on the next release to ensure that the missed symbols get attached to the correct version. Possibly this could be done by pushing a commit to add them manually prior to release building activities.

At some point `nm --with-symbol-versions` stopped appending
`@@Base` to unversioned symbols.  This broke the awk script
that looked for symbols to add to the `htslib.map` file.  Fix
by changing the match criteria to accept symbol names with no
version appended as well as `@@Base`, and make minor adjustments
to how the semicolon is appended to the name in the output.

Also add `--defined-only` to the `nm` command line to get rid
of imported functions as they don't follow the same output
format as for the symbols we want (the first column is blank).
Removing them eliminates the chance that these lines could
be incorrectly included.
@whitwham whitwham self-assigned this Dec 4, 2025
@whitwham whitwham merged commit 41af21f into samtools:develop Dec 4, 2025
9 checks passed
@daviesrob daviesrob deleted the map-build-fix branch December 8, 2025 09:11
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.

1.22 functions missing from htslib.map

2 participants