Merged
Conversation
Collaborator
Author
|
GLIBC version: |
Collaborator
Author
|
Able to reproduce the error locally. docker run --rm -it ubuntu:latest@sha256:ca2b0f26964cf2e80ba3e084d5983dab293fdb87485dc6445f3f7bbfc89d7459 bash
root@838d749f2375:/realm/implants# ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3.6) 2.35
# Install tools and rust
apt update && apt install -y curl git vim
curl --tlsv1.2 https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path --profile minimal 2>&1
. "$HOME/.cargo/env"
rustup update
git clone https://github.com/spellshift/realm.git
cd realm/implants/
apt install -y make
# Bulid
cargo build
Compiling netstat2 v0.9.1
error[E0609]: no field `state` on type `&libc::tcp_info`
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/netstat2-0.9.1/src/integrations/linux/netlink_iterator.rs:193:40
|
193 | return TcpState::from(tcpi.state);
| ^^^^^ unknown field
|
= note: available fields are: `tcpi_state`, `tcpi_ca_state`, `tcpi_retransmits`, `tcpi_probes`, `tcpi_backoff` ... and 26 others
For more information about this error, try `rustc --explain E0609`.
error: could not compile `netstat2` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
|
Collaborator
Author
|
The github action image: https://github.com/spellshift/realm/actions/runs/11604084567/job/32312249420 |
Collaborator
Author
|
I think we should remove netstat2 as a dependency and replace it with something else or implement our own. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixes libc compile error by replacing deprecated library netstat2 with listeners
Which issue(s) this PR fixes:
Fixes #