-
Notifications
You must be signed in to change notification settings - Fork 267
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
Don't export system related symbols like strlcat #927
Comments
Good point. We can fix for netcdf-c by using a name such as "nc_strlcat" and |
I believe this has been fixed and this issue can be closed. |
Can you link to the commit where it was fixed? |
No! ;-) But I seem to recall that Dennis fixed all these at one point. Can you look in the current main branch and see? |
I was just looking at this. The change I made was to try and replace The code for the last resort strlcat is in netcdf-c/libdispatch/dstrings.c But is this problem restricted to strlcat? are there other functions in dstrings.c |
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
C
code to recreate the issue?Steps to reproduce the behavior
Link against something like unix file or https://virustotal.github.io/yara/
The text was updated successfully, but these errors were encountered: