Hello, Debian switched to -Werror=implicit-function-declaration, thus much less forgiving. I had to use the attached patch to fix the build on GNU/Hurd, otherwise we get (version 8.2):
make[1]: Entering directory '/<<PKGBUILDDIR>>/build/examples/rlfe' [...] i686-gnu-gcc -c -I. -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/ncursesw -D_GNU_SOURCE pty.c pty.c:325:7: error: implicit declaration of function ‘openpty’; did you mean ‘OpenPTY’? [-Werror=implicit-function-declaration] Samuel
Index: readline-8.2/examples/rlfe/pty.c =================================================================== --- readline-8.2.orig/examples/rlfe/pty.c +++ readline-8.2/examples/rlfe/pty.c @@ -50,6 +50,10 @@ # include <sys/pty.h> #endif +#ifdef __GNU__ +# include <pty.h> +#endif + #ifdef sgi # include <sys/sysmacros.h> #endif /* sgi */