htop icon indicating copy to clipboard operation
htop copied to clipboard

Build failure of htop 3.0.0beta5 on FreeBSD

Open dmilith opened this issue 4 years ago • 3 comments

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

dmilith avatar Jul 31 '20 13:07 dmilith

@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.

natoscott avatar Aug 03 '20 23:08 natoscott

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

Take a look?

gaod avatar Aug 04 '20 02:08 gaod

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 :)

dmilith avatar Aug 04 '20 07:08 dmilith