Attached is a patch to allow rlfe to link dynamically against libreadline, instead of statically, as it currently does.
Created attachment 203769 [details, diff] patch for ebuild
that change doesnt really cover all the possibilities. ive committed something else instead that works for me. http://sources.gentoo.org/sys-libs/readline/readline-6.0_p4.ebuild?r1=1.1&r2=1.2
FYI, readline-6.0_p4 had an epic failure in a Metro stage build, where it could not find its own headers. You may want to see if it will build if a previous version of readline-6 isn't already installed: make -j12 i686-pc-linux-gnu-gcc -c -I. -I. -D_GNU_SOURCE -O2 -march=athlon-xp -pipe rlfe.c i686-pc-linux-gnu-gcc -c -I. -I. -D_GNU_SOURCE -O2 -march=athlon-xp -pipe pty.c rlfe.c:86:33: error: readline/readline.h: No such file or directory rlfe.c:87:32: error: readline/history.h: No such file or directory rlfe.c: In function 'get_slave_pty': rlfe.c:210: warning: ignoring return value of 'chown', declared with attribute warn_unused_result rlfe.c: In function 'maybe_emphasize_input': rlfe.c:270: error: 'rl_outstream' undeclared (first use in this function) rlfe.c:270: error: (Each undeclared identifier is reported only once rlfe.c:270: error: for each function it appears in.) rlfe.c:270: warning: format not a string literal and no format arguments rlfe.c: In function 'line_handler': rlfe.c:302: warning: ignoring return value of 'write', declared with attribute warn_unused_result rlfe.c:339: warning: ignoring return value of 'write', declared with attribute warn_unused_result rlfe.c:342: warning: ignoring return value of 'write', declared with attribute warn_unused_result rlfe.c:353: warning: ignoring return value of 'write', declared with attribute warn_unused_result rlfe.c: In function 'main': rlfe.c:424: error: 'rl_readline_name' undeclared (first use in this function) rlfe.c:558: error: 'rl_instream' undeclared (first use in this function) rlfe.c:559: error: 'rl_getc_function' undeclared (first use in this function) rlfe.c:561: error: 'rl_prep_term_function' undeclared (first use in this function) rlfe.c:562: error: 'rl_deprep_term_function' undeclared (first use in this function) rlfe.c:563: error: 'rl_pre_input_hook' undeclared (first use in this function) rlfe.c:642: warning: ignoring return value of 'write', declared with attribute warn_unused_result rlfe.c:680: warning: ignoring return value of 'write', declared with attribute warn_unused_result rlfe.c:724: warning: ignoring return value of 'write', declared with attribute warn_unused_result make: *** [rlfe.o] Error 1 * * ERROR: sys-libs/readline-6.0_p4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3049: Called die * The specific snippet of code: * emake || die; * The die message: * (no error message) *
http://sources.gentoo.org/sys-libs/readline/readline-6.0_p4.ebuild?r1=1.2&r2=1.3