Compiling my own uname gives a different output
Asked by
hemithec0nyx
I was reading the source code of uname and I didn't understand how it could display something other than "unknown" for the processor (-p) flag on Ubuntu, because it basically uses:
- sysinfo if available
- sysctl if available
- "unknown"
But there is neither sysinfo nor sysctl on Ubuntu.
When running `uname -p` with apt-installed coreutils, I get "x86_64".
So I tried compiling coreutils from source, and when I run it I get "unknown".
I figured it might be a specific version on apt so I downloaded the source archive, compiled it (`./configure && make`), ran it, and got again "unknown".
Am I missing something ?
Thanks.
Ubuntu version: Ubuntu 22.04.2 LTS jammy
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu coreutils Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- hemithec0nyx
- Solved:
- Last query:
- Last reply:
To post a message you must log in.