Skip to content

[gnutls]: does not compile if it uses musl's weak_alias() #14350

Closed

Description

@msabwat

In musl, weak_alias has the following definition:

#undef weak_alias
#define weak_alias(old, new) \
 __typeof(old) new __attribute__((weak, alias(#old)))

gnutls won't compile because of a missing semicolon after weak_alias()

memchr.c:171:39: error: expected ';' after top level declarator
weak_alias (__memchr, BP_SYM (memchr))

Activity

  1. added a commit that references this issue on Jun 2, 2021
    70d5503
  2. sbc100 commented on Jun 4, 2021

    @sbc100
    Collaborator

    libc.h is not installed into the sysroot, so should not be visible, except when building musl itself.

    Are you perhaps using an older version of emscripten?

  3. added a commit that references this issue on Jun 4, 2021
    167c4be
  4. added a commit that references this issue on Jun 4, 2021
    79e5c94
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