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

cannot find function ptsname_r in this scope #1046

Open
sw2wolf opened this issue Feb 20, 2025 · 1 comment
Open

cannot find function ptsname_r in this scope #1046

sw2wolf opened this issue Feb 20, 2025 · 1 comment

Comments

@sw2wolf
Copy link

sw2wolf commented Feb 20, 2025

$ cargo build
error[E0425]: cannot find function `ptsname_r` in this scope --> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rexpect-0.6.0/src/process.rs:97:26 | 97 | ...ave_name = ptsname_r(&master_fd)?; | ^^^^^^^^^ not found in this scope

Regards !

@sw2wolf
Copy link
Author

sw2wolf commented Feb 21, 2025

After adding 'use crate::process::nix::pty::ptsname_r;' in ~/.cargo/registr
y/src/index.crates.io-6f17d22bba15001f/rexpect-0.6.0/src/process.rs manually, cargo build outputs

error[E0432]: unresolved import io::UnixIO
--> core/lib.rs:65:9 |
65 | pub use io::UnixIO; | ^^^^^^^^^^ no UnixIO in io
| note: found an item that was configured out
--> core/io/mod.rs:182:23 |
182 | pub use unix::UnixIO; | ^^^^^^

Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant