Skip to content

libGRM.so does not link ICU (libicuuc), causes runtime error #196

@kojix2

Description

@kojix2

On Linux, libGRM.so requires ICU symbols but does not link to libicuuc.

Tested with:
https://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_24.04/amd64/gr_0.73.14-1_amd64.deb

Reproduction

  1. ICU is not listed by ldd:

    ldd /usr/gr/lib/libGRM.so
    # libicuuc.so is not shown
  2. Loading with dlopen fails:

    #include <dlfcn.h>
    #include <stdio.h>
    int main() {
        dlopen("/usr/gr/lib/libGRM.so", RTLD_LAZY | RTLD_GLOBAL) ? puts("ok") : puts(dlerror());
    }

    Result:

    /usr/gr/lib/libGRM.so: undefined symbol: UCNV_FROM_U_CALLBACK_SUBSTITUTE_74
    
  3. Workaround:

    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libicuuc.so.74 ./test_grm_load
    # ok

Request

Please link libGRM.so with ICU (libicuuc) at build time.

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