Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build in OpenSuSe when versioned_function is used #267

Open
rostamn739 opened this issue Apr 13, 2023 · 3 comments
Open

Does not build in OpenSuSe when versioned_function is used #267

rostamn739 opened this issue Apr 13, 2023 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rostamn739
Copy link

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

@rostamn739
Copy link
Author

Yep, I've tried to just run cargo build on opensuse with your repository cloned from github: It does not build, fails with the same errors. How would I fix that?

@filmil
Copy link
Member

filmil commented Apr 15, 2023

We probably need a build flag to support the SUSE version encoding.

I wonder why they must reinvent the wheel.

@filmil filmil added good first issue Good for newcomers help wanted Extra attention is needed labels Aug 7, 2023
@filmil
Copy link
Member

filmil commented Aug 7, 2023

Care to contribute a fix here? I have no immediate contact with SuSE, so don't feel very comfortable proposing a resolution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants