Skip to content

undefined reference was occurred with shared library #231

Closed

Description

@toge

When I compiled uvwasi test example with shared library, following compilation errors were occurred.

test_package.c:(.text.startup+0xa4): undefined reference to `uvwasi_init'
test_package.c:(.text.startup+0xae): undefined reference to `uvwasi_destroy'

I think this is caused by -fvisibility=hidden.

Are there any way to solve it?

Environment:
OS: Fedora Linux 38
Compiler: gcc 13.1.1
Version: uvwasi 0.0.19

Activity

  1. phated commented on Sep 27, 2023

    @phated
    Contributor

    Can you provide a reproduction repository? I'm pretty novice with CMake but can usually tweak things until they work.

  2. carlocab commented on Sep 3, 2025

    @carlocab

    This should have been fixed by #308 (but maybe it still needs #311).

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