Skip to content

Conflicting types for snprintf and vnsprintf on MacOSX build #2

Description

@carloscabanero

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions