Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72686 - dev-java/libreadline-java-0.8.0-r1 won't compile - undeclared identifier
Summary: dev-java/libreadline-java-0.8.0-r1 won't compile - undeclared identifier
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-27 18:12 UTC by Larry Siden
Modified: 2005-01-08 21:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of "emerge info" (emerge.info,1.96 KB, text/plain)
2004-12-04 14:10 UTC, Larry Siden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Siden 2004-11-27 18:12:34 UTC
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).
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-11-29 06:32:18 UTC
please provide output of emerge info
Comment 2 Larry Siden 2004-12-04 14:10:06 UTC
Created attachment 45290 [details]
output of "emerge info"

Here's the info that was requested per private message.
Comment 3 Larry Siden 2005-01-07 21:19:22 UTC
Please re-open.  I have provided the info requested as an attachment.
Comment 4 Larry Siden 2005-01-08 21:09:05 UTC
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.  :(
Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-08 21:22:44 UTC
thank you anyway. :)