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

Conflicting types for snprintf and vnsprintf on MacOSX build #2

Open
carloscabanero opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@carloscabanero
Copy link
Member

When building under latest macOS, the build on MacOSX platform will fail with the following error. It looks like there were some changes and the configure test is not detecting this properly. For the time being we have disabled MacOSX versions of the library as we don't need them for our use case. We should probably start by updating the library itself as a lot may have changed in upstream itself. This looks like a deprecation that is now hitting our way. Other ideas for fixes: https://stackoverflow.com/questions/68203667/c-compiler-error-expected-parameter-declarator

bsd-snprintf.c:862:1: error: expected parameter declarator
vsnprintf (char *str, size_t count, const char *fmt, va_list args)                                                                             
^                          
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:75:40: note: expanded from macro 'vsnprintf'                                           
  __builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
carloscabanero pushed a commit that referenced this issue Sep 11, 2024
- Build only for iOS platforms as MacOSX still has some compatibility issues we
need to fix. #2
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

No branches or pull requests

1 participant