sabotage-linux / netbsd-curses

libcurses and dependencies taken from netbsd and brought into a portable shape (at least to musl or glibc)
Other
147 stars 14 forks source link

Error compiling with ncurses installed. #30

Closed finnoleary closed 6 years ago

finnoleary commented 7 years ago

Platform is latest Arch Linux, GCC, GNU crap, etc. Compiling with LDFLAGS=-static, PREFIX="".

It fails with

In file included from libterminfo/setupterm.c:41:0:
/usr/include/curses.h:879:32: error: conflicting types for tparam
 extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...); /*special*/

In file included from libterminfo/setupterm.c:41:0:
./libterminfo/term.h:1961:9: note: previous declaration of tparm was here
 char *  tparm(const char *, long, long, long, long, long, 

(Apologies if there is a typo here and there -- I had to type it out manually from a box that doesn't have internet access :( )

It seems to me as if GCC is selecting /usr/include/curses.h over ./curses/curses.h, but the compile options for that module start with -I./../curses, so that seems unlikely.

finnoleary commented 7 years ago

Never mind, it compiles fine with -I./libcurses.

rofl0r commented 7 years ago

did you have to make manual changes to make it compile?

finnoleary commented 7 years ago

Yes. -I./libcurses. It disagrees with the function prototypes in my GNU libc one

rofl0r commented 7 years ago

ok. i guess we should add that by default then; i thought its already done...

rofl0r commented 6 years ago

i pushed a commit which should fix the issue, i believe. could you test it please ?