hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.85k stars 579 forks source link

Build failure of htop 3.0.0beta5 on FreeBSD #1023

Open dmilith opened 4 years ago

dmilith commented 4 years ago
Settings.c:220:21: error: use of undeclared identifier 'LAST_PROCESSFIELD'; did you mean 'NULL_PROCESSFIELD'?
   if (i < 0 || i > LAST_PROCESSFIELD) {
                    ^~~~~~~~~~~~~~~~~
                    NULL_PROCESSFIELD
./Process.h:37:4: note: 'NULL_PROCESSFIELD' declared here
   NULL_PROCESSFIELD = 0,
   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.

System: FreeBSD 12.1, x86_64 Htop: 3.0.0beta5

natoscott commented 4 years ago

@dmilith you'd be better off working on the master branch - the 3.0.0beta branches are long out of date.

Does the build still fail there? It looks like that symbol is defined for FreeBSD, so if it still fails its likely a missing #include issue I guess.

gaod commented 4 years ago

https://github.com/gaod/htop/commit/441fad01b87f8fd6f378cb2ff6b207bf44992067

Take a look?

dmilith commented 4 years ago

Is it normal that produced build from master shows version 2.2.0 or I did something wrong? But I think it builds just fine :)