leif wrote:
leif wrote:
Ursula Whitcher wrote:
...
gcc -std=gnu99 -shared -fopenmp   -o libR.so CConverters.o
CommandLineArgs.o Rdynload.o Renviron.o RNG.o agrep.o apply.o
arithmetic.o array.o attrib.o base.o bind.o builtin.o character.o
coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o
datetime.o debug.o deparse.o deriv.o devices.o dotcode.o dounzip.o
dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o
fourier.o gevents.o gram.o gram-ex.o gramLatex.o gramRd.o graphics.o
grep.o identical.o inlined.o inspect.o internet.o iosupport.o lapack.o
list.o localecharset.o logic.o main.o mapply.o match.o memory.o model.o
names.o objects.o optim.o optimize.o options.o par.o paste.o platform.o
plot.o plot3d.o plotmath.o print.o printarray.o printvector.o
printutils.o qsort.o random.o raw.o registration.o relop.o rlocale.o
saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o
sprintf.o startup.o subassign.o subscript.o subset.o summary.o
sysutils.o unique.o util.o version.o vfonts.o xxxpr.o
../unix/Rembedded.o ../unix/libunix.a ../appl/libappl.a
../nmath/libnmath.a ../extra/zlib/libz.a ../extra/bzip2/libbz2.a
../extra/pcre/libpcre.a ../extra/tre/libtre.a  ../extra/xz/liblzma.a
-L../../lib -lRblas -lgfortran -lm -lquadmath   -lreadline -lncurses
-lrt -ldl -lm
...
gcc -std=gnu99 -Wl,--export-dynamic -fopenmp   -o R.bin Rmain.o
-L../../lib -lR -lRblas
../../lib/libR.so: undefined reference to `rl_sort_completion_matches'
collect2: error: ld returned 1 exit status

This appears to be an upstream bug; despite that we configure with
'--with-readline="$SAGE_LOCAL"', the corresponding '-L...' is missing in
the linker command such that your system's libreadline gets picked up.

Or maybe not:

## Readline.

# Check whether --with-readline was given.
if test "${with_readline+set}" = set; then :
   withval=$with_readline; if test "${withval}" = no; then
   use_readline=no
else
   use_readline=yes
fi

else
   use_readline=yes
fi
...
[A couple of readline-related tests, probably disabling it.]
...


I.e., R's 'configure' only supports enabling/disabling use of readline,
but not specifying a non-standard location [that way].

This is actually a regression introduced by the "clean-up" in #13443 [1], which removed adding "-L${SAGE_LOCAL}/lib" to LDFLAGS (and similar for CPPFLAGS, but the latter in contrast works); if LIBRARY_PATH is already set, ${SAGE_LOCAL}/lib gets *appended* instead of prepended (in sage-env).


Ursula, can you confirm that `LIBRARY_PATH` is set in your shell?

E.g., what does the following give?

$ ./sage --sh -c 'echo $LIBRARY_PATH'


-leif

[1] http://trac.sagemath.org/sage_trac/ticket/13443

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to