Skip to content

i686-linux-android libc and libstd disagree on c_char #561

Closed

Description

@dten

So std lib seems to be wrong about this. but what to do? a lot of things just don't compile (looking at openssl) because of CString and CStr

libstd says that c_char is u8
https://github.com/rust-lang/rust/blob/b1363a73ede57ae595f3a1be2bb75d308ba4f7f6/src/libstd/os/raw.rs#L15

libc says that c_char is i8
https://github.com/rust-lang/libc/blob/master/src/unix/notbsd/android/b32/x86.rs#L1

Activity

  1. malbarbo commented on Mar 30, 2017

    @malbarbo
    Contributor

    This was fixed when rust libc was update to 0.2.21. See rust-lang/rust#40903.

    Using rustc nightly (2017-03-29) should make your code compile.

  2. dten commented on Mar 30, 2017

    @dten
    Author

    Such timing! I'll give it a try

  3. dten commented on Mar 30, 2017

    @dten
    Author

    it works 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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