I added -L${SAGE_LOCAL}/lib to the spkg-install of both
readline and ncurses (for good measure) and this resolves
the linking problem I had with ncurses on OpenSuSE Leap.On Thu, Dec 24, 2015 at 4:38 AM leif <[email protected]> wrote: > Volker Braun wrote: > > The "no version information available" is a consequence of using a > > different library at compile and run time. In fact, we didn't pass -L > > $SAGE_LOCAL/lib when linking libreadline, > > See #11970... ;-) > > When we added linking libtermcap / libtinfo to libreadline years ago > (because of R btw.), we intentionally omitted -L${SAGE_LOCAL}/lib, since > Sage only shipped with a static libtermcap to that time, and we *wanted* > to use the system's libraries (ncurses-dev was a prerequisite). > > Apparently nobody cared to change that when ncurses became a Sage > standard package (despite the comments on that the same ticket, #14405, > removed from spkg-install). > > Just saying... > > > -leif > > > > I'm guessing this causes us to > > pick up the versioned symbol names from the system libtinfo: > > > > gcc -shared -Wl,-soname,libreadline.so.6.3 > > -Wl,-rpath,/home/vbraun/Code/sage/local/lib -Wl,-rpath,/home/v > > braun/Code/sage/local/lib64 -Wl,-rpath,/home/vbraun/Code/sage/local/lib > > -Wl,-soname,`basename libreadlin > > e.so.6.3 .3` -o libreadline.so.6.3 readline.so vi_mode.so funmap.so > > keymaps.so parens.so search.so rltty. > > so complete.so bind.so isearch.so display.so signals.so util.so kill.so > > undo.so macro.so input.so callbac > > k.so terminal.so text.so nls.so misc.so history.so histexpand.so > > histfile.so histsearch.so shell.so mbuti > > l.so tilde.so colors.so parse-colors.so xmalloc.so xfree.so compat.so > > -ltinfo > > > > > > > > > > On Wednesday, December 23, 2015 at 9:55:33 PM UTC+1, Nathann Cohen wrote: > > > > > ldd -r on that readline library may reveal a lack of rpath. > > > > Err.... Does the following "talks" to you ? :-P > > > > (d|✔)~/.Sage/local/lib$ ldd -r libreadline.so > > ./libreadline.so: /home/ncohen/.Sage/local/lib/libtinfo.so.5: no > > version information available (required by ./libreadline.so) > > linux-vdso.so.1 (0x00007ffd3afae000) > > libtinfo.so.5 => /home/ncohen/.Sage/local/lib/libtinfo.so.5 > > (0x00007fde9a7fe000) > > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fde9a45a000) > > /lib64/ld-linux-x86-64.so.2 (0x00007fde9ac7c000) > > > > Nathann > > -- > You received this message because you are subscribed to the Google Groups > "sage-release" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sage-release. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.
