'/' in os name leads to compile fail
Linux performance monitoring on-screen or to CSV file
Brought to you by:
nigelgriffiths
OSNAME in Makefile must not contain '/'
~/nmon$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 13 (trixie)
Release: 13
Codename: trixie
~/nmon$ make list
HW X86
osname DebianGNU/Linux
osversion 13
~/nmon$ make
cc nmon_numa.c -o nmon_X86_DebianGNU/Linux13_16s -g -O3 -Wall -lm -lncurses -D X86 -D DebianGNU/Linux13
<command-line>: warning: ISO C99 requires whitespace after the macro name
/usr/bin/ld: cannot open output file nmon_X86_DebianGNU/Linux13_16s: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: nmon] Error 1
patch included (replace '/' with underscore)
Hi,
Thanks for the feedback.
Not sure what nmon_numa.c is about! Perhaps some experimental code.
A similar fix for the strange OS Name that Debian uses is in the Makefile for nmon16t released about a week ago.
The OS Name for a distro does not need a "GNU" a "/" or a "Linux" in it.
Just one of the many quirks in Linux, I guess.
yes, it's just an experimental version with cpu by NUMA aggregation.
anyway, thanks for your attention. I guess ticket may be closed