-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
anchor-lang and solana-client dependency conflict #3451
Comments
For detail your problem. Please check issue-26688 use anchor_client::solana_client::*; |
@docongminh Hello, using anchor-client dependency build error [lib] [features] anchor build 1668 | getsockopt::<c_int>(self.as_raw(), sys::IPPROTO_IP, sys::IP_RECVTOS) error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0422]: cannot find struct, variant or union type error[E0425]: cannot find function error[E0425]: cannot find value error[E0425]: cannot find value error[E0422]: cannot find struct, variant or union type error[E0425]: cannot find function error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find function error[E0425]: cannot find function error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0412]: cannot find type error[E0412]: cannot find type error[E0425]: cannot find function error[E0425]: cannot find function error[E0425]: cannot find function error[E0412]: cannot find type error[E0425]: cannot find function error[E0412]: cannot find type error[E0425]: cannot find function error[E0425]: cannot find function error[E0425]: cannot find function error[E0425]: cannot find function error[E0425]: cannot find function error[E0433]: failed to resolve: use of undeclared crate or module For more information about this error, try warning: [email protected]: In file included from crypto/curve25519/curve25519.c:22: error: failed to run custom build command for Caused by: exit status: 1 exit status: 1 exit status: 1 exit status: 1 exit status: 1 exit status: 1 exit status: 1 exit status: 1 exit status: 1 exit status: 1 --- stderr error occurred in cc-rs: Command LC_ALL="C" "/Users/wencanma/.local/share/solana/install/releases/stable-7104d713ccc8fe0fcff1e296068d9844e4256b83/solana-release/bin/sdk/sbf/dependencies/platform-tools/llvm/bin/clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=sbf-solana-solana" "-I" "include" "-I" "/Applications/code/demo/anchor-test/target/sbf-solana-solana/release/build/ring-b95c0a593d90bde5/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "/Applications/code/demo/anchor-test/target/sbf-solana-solana/release/build/ring-b95c0a593d90bde5/out/123d8a351a02283d-poly1305.o" "-c" "crypto/poly1305/poly1305.c" with args clang did not execute successfully (status code exit status: 1). |
@hengshanMWC how about your current OS ? |
Yeah Line 115 in 72c7e09
You should generally avoid adding On the other hand, the problem you mentioned in #3451 (comment) is a completely separate issue. It happens because you ran Leaving this issue open for now because we may be able to improve the error message and explain the problem, similar to how we'll warn having |
@docongminh |
@acheroncrypto You can use cargo build, but the anchor command is no longer available, and anchor test is also unavailable. |
I want to generate AccountInfo from an address for airdrop sol and token. Which library should I use? The language is rust |
No, you can't. |
I need the get_account method of solana-client, but they have conflicting dependencies
The text was updated successfully, but these errors were encountered: