Skip to content

Does not build in OpenSuSe when versioned_function is used #267

Description

@rostamn739

I'm trying to port Rust software to Opensuse

One of the crates uses rust_icu_sys directly
When any code tries to use the macro versioned_function! with some ICU symbol, a build error appears:

error[E0425]: cannot find function `ucol_strcoll_65` in crate `$crate`
    --> ...
     |
322  |           let result = versioned_function!(ucol_strcoll)(
     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ucol_strcoll_65_1`

It seems that on opensuse ICU defines it own symbols with both MAJOR and MINOR versions included in the name of the symbol, however the rust_icu_sys crate uses only MAJOR version suffix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions