liberasurecode icon indicating copy to clipboard operation
liberasurecode copied to clipboard

A Rust wrapper for `openstack/liberasurecode`

Results 9 liberasurecode issues
Sort by recently updated
recently updated
newest added

おそらく MacOS 限定だが、以下のような gf_complete 関連のシンボルが見つからないというエラーが出ていたため、そのための修正を施した。(gcc でも clang でもエラーが出る) なぜ Linux 環境でこのエラーが出ないのかは不明。 バージョン情報: ``` $ sw_vers ProductName: Mac OS X ProductVersion: 10.13.6 BuildVersion: 17G9016 $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1...

Resolves https://github.com/frugalos/liberasurecode/issues/13. Probably this PR needs to wait until https://github.com/frugalos/liberasurecode/pull/12 is merged.

Necessary fixes: https://github.com/frugalos/liberasurecode/blob/master/liberasurecode.patch (follow changes of the upstream) - `zlib` is introduced in the dependencies Changes in the upstream: [1.5.0...1.6.1](https://github.com/openstack/liberasurecode/compare/1.5.0...1.6.1#diff-02f0b547c2779d25cff89672135f20e3)

## Description `cargo build` generates the following error: ``` + patch -p1 + make install erasurecode_helpers.c: In function 'get_chksum': erasurecode_helpers.c:499:25: error: taking address of packed member of 'struct fragment_metadata' may...

On MacOS, if gcc is installed, `CC=gcc cargo build` or simply `cargo build` fails with the error log like below: https://gist.github.com/koba-e964/c9ff5ab39b0ef510d0a893af54f4c0a4 Probably this is because of adding an option `-Wno-error=address-of-packed-member`...

https://github.com/frugalos/liberasurecode/blob/ed4582200b9906ff9a14a4ee6a95d9b312e5241e/src/lib.rs#L175 `std::thread::sleep(Duration::from_millis(10))` is not enough and causes build failures on TravisCI. We need a new solution. See #2 .

動的リンクベースでopenstack/liberasurecodeを用いるためのPR

It's convenient for debugging.