Seems like adding `-lreadline` after the source code would solve the problem. It seems like gcc started checking for missing symbols at shared library link time (like static libs) whereas before it didn't check. gcc -lreadline -I /usr/include/readline /usr/bin/realcsh.c # fails gcc -I /usr/include/readline /usr/bin/realcsh.c -lreadline # succeeds I think it's a gcc change but I can't find the new gcc option to make it not do that.
- Bug#941563: -l option ordering Junichi Uekawa
- Bug#941563: -l option ordering Junichi Uekawa