Almost seems like you aren't linking something you should be, namely readline. Try adding -ltermcap -lreadline to your build.
-- H

On Oct 26, 2011 8:43 PM, "Peng Yu" <pengyu.ut@gmail.com> wrote:
Hi,

I'm following the instruction at
http://wiki.python.org/jython/ReadlineSetup to install java-readline.

After the step "vi Makefile#or whatever editor you prefer to fix
OS_FLAVOR", I run make. But it gives me the following error. Does
anybody know what the problem is?

....
make TG=JavaReadline lib
javah -classpath ../../build -jni org.gnu.readline.Readline
touch org_gnu_readline_Readline.h
gcc -I/sw/include -I
/System/Library/Frameworks/JavaVM.framework/Headers -I   -fPIC -DPOSIX
-DJavaReadline \
                                          -c org_gnu_readline_Readline.c
org_gnu_readline_Readline.c:96: error: ‘rl_gnu_readline_p’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:97: error: ‘rl_readline_state’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:98: error: ‘rl_editing_mode’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:99: error: ‘rl_insert_mode’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:102: error: ‘rl_mark’ undeclared here (not
in a function)
org_gnu_readline_Readline.c:103: error: ‘rl_done’ undeclared here (not
in a function)
org_gnu_readline_Readline.c:104: error: ‘rl_pending_input’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:105: error: ‘rl_dispatching’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:106: error: ‘rl_explicit_arg’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:107: error: ‘rl_numeric_arg’ undeclared
here (not in a function)
org_gnu_readline_Readline.c:108: error: ‘rl_erase_empty_line’
undeclared here (not in a function)
.....

--
Regards,
Peng

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users