Skip to content

Don't export system related symbols like strlcat #927

@schwehr

Description

@schwehr

I'm on a system where strlcat is not defined. netcdf then builds with strlcat and exports the symbol. Then a user creates a binary that links against another library that also doesn't see strlcat and also exports strlcat. The linker is then sad. Neither package should be exporting strlcat. I'm hacking around in my system by renaming strlcat to nc_strlcat.

Environment Information

netcdf 4.6.1 point release

Feel free to skip this if the issue is related to documentation, a feature request, or general discussion.

  • What platform are you using? (please provide specific distribution/version in summary)
    • [x ] Linux = Custom
  • 32 and/or 64 bit?
    • [x ] 64-bit
  • What build system are you using?
    • bazel
  • Can you provide a sample netCDF file or C code to recreate the issue?
    • No

Steps to reproduce the behavior

Link against something like unix file or https://virustotal.github.io/yara/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions