Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284568 - sys-libs/readline: rlfe links statically against libreadline, could link dynamically
Summary: sys-libs/readline: rlfe links statically against libreadline, could link dyna...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-11 08:59 UTC by Jonathan Callen (RETIRED)
Modified: 2009-09-30 03:04 UTC (History)
2 users (show)

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


Attachments
patch for ebuild (readline-6.0_p4.ebuild.diff,420 bytes, patch)
2009-09-11 08:59 UTC, Jonathan Callen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Callen (RETIRED) gentoo-dev 2009-09-11 08:59:20 UTC
Attached is a patch to allow rlfe to link dynamically against libreadline, instead of statically, as it currently does.
Comment 1 Jonathan Callen (RETIRED) gentoo-dev 2009-09-11 08:59:51 UTC
Created attachment 203769 [details, diff]
patch for ebuild
Comment 2 SpanKY gentoo-dev 2009-09-27 06:32:33 UTC
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
Comment 3 Daniel Robbins 2009-09-29 15:39:13 UTC
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)
*