The getline-library (make with T_LIBS=JavaGetline) does not compile anymore on a system with a current glibc:
In file included from org_gnu_readline_Readline.c:46:
getline.h:21: error: conflicting types for 'getline'
/usr/include/stdio.h:671: note: previous declaration of 'getline' was here
So getline is already defined in stdio.h now (seems to be part of POSIX 2008, see https://bugzilla.redhat.com/show_bug.cgi?id=493941\)
Luckily the patch is as simple as renaming the function.
libreadline-java-0.8.0-getline.patch