Hey there, Deuce. Just wanted to drop you a line and see if this was a bug, or if maybe there is some dependency that I didn't see listed anywhere for building on OpenBSD 6.8. I was trying to build SyncTERM 1.1 on a pretty freshly installed OBSD system when I ran into the following error during compilation:
gmake[1]: Entering directory '/usr/local/src/syncterm-1.1/src/conio'
Compiling curs_cio.c
curs_cio.c:111:2: error: unknown type name 'cchar_t'; did you mean 'wchar_t'?
cchar_t cha;
^~~~~~~
wchar_t
/usr/include/stdlib.h:53:19: note: 'wchar_t' declared here
typedef __wchar_t wchar_t;
^
curs_cio.c:335:2: warning: implicit declaration of function 'setcchar' is
invalid in C99 [-Wimplicit-function-declaration]
setcchar(&cha, wch, attr, cpair, NULL);
^
curs_cio.c:336:8: warning: implicit declaration of function 'add_wch' is invalid
in C99 [-Wimplicit-function-declaration]
ret = add_wch(&cha);
^
curs_cio.c:447:2: error: unknown type name 'cchar_t'; did you mean 'wchar_t'?
cchar_t cchar;
^~~~~~~
wchar_t
/usr/include/stdlib.h:53:19: note: 'wchar_t' declared here
typedef __wchar_t wchar_t;
^
curs_cio.c:473:4: warning: implicit declaration of function 'mvin_wch' is
invalid in C99 [-Wimplicit-function-declaration]
mvin_wch(y, x, &cchar);
^
curs_cio.c:474:16: error: member reference base type 'wchar_t' (aka 'int') is
not a structure or union
attr = cchar.attr;
~~~~~^~~~~
curs_cio.c:475:31: error: member reference base type 'wchar_t' (aka 'int') is
not a structure or union
thischar = ext_char = cchar.chars[0];
~~~~~^~~~~~
curs_cio.c:953:9: warning: implicit declaration of function 'get_wch' is invalid
in C99 [-Wimplicit-function-declaration]
while(get_wch(&ch)==ERR) {
^
4 warnings and 4 errors generated.
gmake[1]: *** [../build/Common.gmake:456: clang.openbsd.obj.debug-mt/curs_cio.o] Error 1
gmake[1]: Leaving directory '/usr/local/src/syncterm-1.1/src/conio'
gmake: *** [../build/Common.gmake:503: ciolib-mt] Error 2
Sun Dec 20 07:37:04
found:/usr/local/src/syncterm-1.1/src/syncterm$
Digital Man had stated that this was due to missing the correct 'wide' implementation of ncurses, but as far as I can tell, my installed ncurses has 'wide' support. I have looked high and low for an equivalent to a linux '-dev' version of ncurses to get compiled and set up on OpenBSD and haven't been able to find anything. Any help you can offer would be greatly appreciated.
-Sprite
Anonymous
FYI: This bug in OBSD compilation was solved by the patch that you posted about in DOVE-Net.