Skip to content

_jl_base_ctx not exported in libjulia.dynlib #9117

@waTeim

Description

@waTeim

I suspect that the new variable jl_base_ctx that is part of addressing #8551 is not being exported, which is preventing successful link by embedding programs (ok mine) on OS/X

dlopen(/Users/travis/build/waTeim/node-julia/build/Release/nj.node, 1): Symbol not found: _jl_base_ctx

When examined using nm, it looks like it's a static -- maybe that's the default clang compile mode?

bizarro% nm -pa libjulia.dylib | grep jl_base_ctx
0000000000000000 - 00 0000  GSYM _jl_base_ctx
0000000000d06920 s _jl_base_ctx

The decl in julia.h

extern jl_jmp_buf jl_base_ctx;

should probably instead be (guessing)

extern DLLEXPORT jl_jmp_buf jl_base_ctx;

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