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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 481 |
Nodes: | 16 (2 / 14) |
Uptime: | 20:42:47 |
Calls: | 9,542 |
Calls today: | 2 |
Files: | 13,653 |
Messages: | 6,140,082 |