in the rlfe subdir, there is this test:
AC_TRY_RUN([
main()
{
exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
}], AC_NOTE(- you use the termcap database),
AC_NOTE(- you use the terminfo database) AC_DEFINE(TERMINFO))
on 64bit systems (where sizeof(void*) == 8 and sizeof(int) == 4), this
randomly segfaults. it's a classic "implicit prototype defaults to an
integer" problem where the pointer gets truncated. so if the high 4 bytes
have non-zero values, passing it to strcmp() results in a crash.
couple of ways to fix this ... not sure what people prefer:
- do AC_CHECK_HEADERS(term.h) and then add before the main(), an optional
term.h include
- add before main(): extern char *tgoto(char *, ...);
-mike
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline