dslm4515 / BMLFS

Beyond Musl Linux From Scratch - Build Recipes for MLFS [Musl Linux From Source]
16 stars 4 forks source link

HTop Fails to build with netbsd curses #20

Closed dslm4515 closed 2 years ago

dslm4515 commented 2 years ago

Htop fails to compile:

make  all-am
make[1]: Entering directory '/media/usb3/home/sysdev/BUILD_SPACE/htop-3.0.5'
depbase=`echo Meter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.  -DNDEBUG  -Wall -Wcast-align -Wcast-qual -Wextra -Wfloat-equal -Wformat=2 -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-s
trings -Wnull-dereference -pedantic -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"/etc\" -I"./linux" -march=native -O3 -ffat-lto-objects -flto=4 -fcommon -MT Meter.o -MD -MP -MF $depbase.Tpo -c -o Meter.o Meter.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from Object.h:15,
                 from ListItem.h:12,
                 from Meter.h:16,
                 from Meter.c:10:
Meter.c: In function 'BarMeterMode_draw':
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
   25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
      |                                                        ^
Meter.c:212:14: note: in expansion of macro 'RichString_getCharVal'
  212 |          if (RichString_getCharVal(bar, pos) == ' ') {
      |              ^~~~~~~~~~~~~~~~~~~~~
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
   25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
      |                                                        ^
Meter.c:213:31: note: in expansion of macro 'RichString_getCharVal'
  213 |             while (pos > w && RichString_getCharVal(bar, pos - 1) == ' ')
      |                               ^~~~~~~~~~~~~~~~~~~~~
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
   25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
      |                                                        ^
Meter.c:243:14: note: in expansion of macro 'RichString_getCharVal'
  243 |          if (RichString_getCharVal(bar, startPos + j) == ' ') {
      |              ^~~~~~~~~~~~~~~~~~~~~
RichString.h:26:83: error: 'cchar_t' has no member named 'chars'
   26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
      |                                                                                   ^~~~~
Meter.c:245:16: note: in expansion of macro 'RichString_setChar'
  245 |                RichString_setChar(&bar, startPos + j, BarMeterMode_characters[i]);
      |                ^~~~~~~~~~~~~~~~~~
Meter.c:245:16: warning: braces around scalar initializer
Meter.c:245:16: note: (near initialization for '(anonymous).attributes')
In file included from Object.h:15,
                 from ListItem.h:12,
                 from Meter.h:16,
                 from Meter.c:10:
RichString.h:26:97: warning: excess elements in scalar initializer
   26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
      |                                                                                                 ^
Meter.c:245:16: note: in expansion of macro 'RichString_setChar'
  245 |                RichString_setChar(&bar, startPos + j, BarMeterMode_characters[i]);
      |                ^~~~~~~~~~~~~~~~~~
RichString.h:26:97: note: (near initialization for '(anonymous).attributes')
   26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
      |                                                                                                 ^
Meter.c:245:16: note: in expansion of macro 'RichString_setChar'
  245 |                RichString_setChar(&bar, startPos + j, BarMeterMode_characters[i]);
      |                ^~~~~~~~~~~~~~~~~~
RichString.h:26:83: error: 'cchar_t' has no member named 'chars'
   26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
      |                                                                                   ^~~~~
Meter.c:247:16: note: in expansion of macro 'RichString_setChar'
  247 |                RichString_setChar(&bar, startPos + j, '|');
      |                ^~~~~~~~~~~~~~~~~~
Meter.c:247:16: warning: braces around scalar initializer
Meter.c:247:16: note: (near initialization for '(anonymous).attributes')
In file included from Object.h:15,
                 from ListItem.h:12,
                 from Meter.h:16,
                 from Meter.c:10:
RichString.h:26:97: warning: excess elements in scalar initializer
   26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
      |                                                                                                 ^
Meter.c:247:16: note: in expansion of macro 'RichString_setChar'
  247 |                RichString_setChar(&bar, startPos + j, '|');
      |                ^~~~~~~~~~~~~~~~~~
RichString.h:26:97: note: (near initialization for '(anonymous).attributes')
   26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
      |                                                                                                 ^
Meter.c:247:16: note: in expansion of macro 'RichString_setChar'
  247 |                RichString_setChar(&bar, startPos + j, '|');
      |                ^~~~~~~~~~~~~~~~~~
Meter.c: In function 'LEDMeterMode_draw':
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
   25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
      |                                                        ^
Meter.c:416:15: note: in expansion of macro 'RichString_getCharVal'
  416 |       int c = RichString_getCharVal(out, i);
      |               ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:1098: Meter.o] Error 1
make[1]: Leaving directory '/media/usb3/home/sysdev/BUILD_SPACE/htop-3.0.5'
make: *** [Makefile:780: all] Error 2
dslm4515 commented 2 years ago

For now, using BTOP++ instead of HTop