rl_compentry_func_t undeclared. See bottom line of output (in "Actual results" below). Reproducible: Always Steps to Reproduce: 1. emerge libreadline-java 2. 3. Actual Results: # emerge libreadline-java Calculating dependencies ...done! >>> emerge (1 of 1) dev-java/libreadline-java-0.8.0-r1 to / >>> md5 files ;-) ChangeLog >>> md5 files ;-) libreadline-java-0.8.0-r1.ebuild >>> md5 files ;-) metadata.xml >>> md5 files ;-) files/digest-libreadline-java-0.8.0-r1 >>> md5 files ;-) files/termcap-to-ncurses.patch >>> md5 src_uri ;-) libreadline-java-0.8.0-src.tar.gz >>> Unpacking source... >>> Unpacking libreadline-java-0.8.0-src.tar.gz to /var/tmp/portage/libreadline-java-0.8.0-r1/work * Applying termcap-to-ncurses.patch ... [ ok ]>>> Source unpacked. mkdir ./build cd src ; make JAVAC="javac" JC_FLAGS="" java make[1]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' javac -d ../build `find . -name "*.java"` make[1]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' cd ./build ; jar -cvmf ../etc/manifest.stub ../libreadline-java.jar * added manifest adding: org/(in = 0) (out= 0)(stored 0%) adding: org/gnu/(in = 0) (out= 0)(stored 0%) adding: org/gnu/readline/(in = 0) (out= 0)(stored 0%) adding: org/gnu/readline/ReadlineLibrary.class(in = 976) (out= 532)(deflated 45%) adding: org/gnu/readline/ReadlineCompleter.class(in = 194) (out= 138)(deflated 28%) adding: org/gnu/readline/Readline.class(in = 5152) (out= 2260)(deflated 56%) adding: org/gnu/readline/ReadlineReader.class(in = 2934) (out= 1482)(deflated 49%) adding: test/(in = 0) (out= 0)(stored 0%) adding: test/TestCompleter.class(in = 532) (out= 364)(deflated 31%) adding: test/ReadlineTest.class(in = 2233) (out= 1278)(deflated 42%) cd src; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/sun-jdk-1.4.2.04/include" \ JAVANATINC="/opt/sun-jdk-1.4.2.04/include/linux" native make[1]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' cd native ; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/sun-jdk-1.4.2.04/include" \ JAVANATINC="/opt/sun-jdk-1.4.2.04/include/linux" allmake[2]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native' make TG=JavaReadline lib make[3]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native' javah -classpath ../../build -jni org.gnu.readline.Readline touch org_gnu_readline_Readline.h gcc -I /opt/sun-jdk-1.4.2.04/include -I /opt/sun-jdk-1.4.2.04/include/linux -fPIC -DPOSIX -DJavaReadline \ -c org_gnu_readline_Readline.c org_gnu_readline_Readline.c: In function `Java_org_gnu_readline_Readline_setCompleterImpl': org_gnu_readline_Readline.c:478: error: `rl_compentry_func_t' undeclared (first use in this function) Currently running with Portage 2.0.51-r3 and have sys-libs/readline-4.3-r5. Found "typedef char *rl_compentry_func_t PARAMS((const char *, int));" on line 51 of /usr/include/readline/rltypedefs.h which is installed by readline-4.3-r5. ..readline/rltypedefs.h is included by ...readline/readline.h, yet the compiler still does not seem to see rltypedefs.h. Already visited http://sourceforge.net/projects/java-readline/ and submitted a bug report (there were no other).
please provide output of emerge info
Created attachment 45290 [details] output of "emerge info" Here's the info that was requested per private message.
Please re-open. I have provided the info requested as an attachment.
I figured out the problem. I had obsolete readline include files in /usr/local/include/readline that were masking the up-to-date ones in /usr/include. Got rid of them and everything builds fine. My bad. :(
thank you anyway. :)