google / google/rust_icu

Does not build in OpenSuSe when versioned_function is used

Open
#267 3 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
Rust
Stars
140
Forks
34
Avg merge
5h 5m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.