Load behaviour on Maxima 5.18.0 and above using ecl



On Mon, May 11, 2009 at 6:50 PM, Robert Dodier <robert.dodier at gmail.com> wrote:
> On Mon, May 11, 2009 at 11:36 AM, Matthew Gwynne
> <mathew.gwynne at gmail.com> wrote:
>
>> Inspecting file_search_maxima gives the same strange behaviour as before.
>
> I don't remember what that was. Can you remind me?
>

file_search_maxima has entries such as :

/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/\
share/{/home/aeternus/Work/OKlibrary/OKlibTest/maxima-5.18.1/install/share/max\
ima/5.18.1/share,/home/aeternus/Work/OKlibrary/OKlibTest/maxima-5.18.1/install\
/share/maxima/5.18.1/share/affine,/home/aeternus/Work/OKlibrary/OKlibTest/maxi\
ma-5.18.1/install/share/maxima/5.18.1/share/algebra,....}

rather than

/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/\
share/{/,/affine,/algebra,....}

although strangely OKlibTest is the actual name of the directory,
rather than the symlink (OKlibTestSym is a directory at the same level
as OKlibTest which symlinks to it).

> What is the content of maxima/src/autoconf-variables.lisp?

; -*- Lisp -*-
(in-package :maxima)

(defparameter *autoconf-variables-set* "@variables_set@")
(defparameter *autoconf-prefix*
"/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install")
(defparameter *autoconf-exec_prefix*
"/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install")
(defparameter *autoconf-package* "maxima")
(defparameter *autoconf-version* "5.18.1")
(defparameter *autoconf-libdir*
"/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/lib")
(defparameter *autoconf-libexecdir*
"/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/libexec")
(defparameter *autoconf-datadir*
"/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share")
(defparameter *autoconf-infodir*
"/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/info")
(defparameter *autoconf-host* "i686-pc-linux-gnu")
(defparameter *autoconf-win32* "false")
(defparameter *autoconf-ld-flags* "")

(defparameter *maxima-source-root*
"/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1")
(defparameter *maxima-default-layout-autotools* "true")


> What does maxima -d report?


[10:10:43 - aeternus] maxima-5.18.1$ ./install/bin/maxima -d
;;; Loading #P"/home/aeternus/Work/OKlibrary/OKlibTest/ecl-9.4.1/install/lib/ecl-9.4.1/defsystem.fas"
;;; Loading #P"/home/aeternus/Work/OKlibrary/OKlibTest/ecl-9.4.1/install/lib/ecl-9.4.1/cmp.fas"
;;; Loading #P"/home/aeternus/Work/OKlibrary/OKlibTest/ecl-9.4.1/install/lib/ecl-9.4.1/sysfun.lsp"
maxima-prefix=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install
maxima-imagesdir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/lib/maxima/5.18.1/binary-ecl
maxima-sharedir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/share
maxima-srcdir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/src
maxima-demodir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/demo
maxima-testsdir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/tests
maxima-docdir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/doc
maxima-infodir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/info
maxima-htmldir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/share/maxima/5.18.1/doc/html
maxima-plotdir=/home/aeternus/Work/OKlibrary/OKlibTestSym/maxima-5.18.1/install/libexec/maxima/5.18.1
maxima-layout-autotools=T
maxima-userdir=/home/aeternus/.maxima
maxima-tempdir=/home/aeternus
maxima-lang-subdir=NIL
maxima-objdir=/home/aeternus/.maxima/binary/binary-ecl


>
> About symbolic links causing trouble, does the problem go away
> if there is no symbolic link in sight? It seems plausible that the
> Lisp functions for file and directory inspection handle symbolic
> links incorrectly. Just a guess.

Yes, the problem occurs only when using symlinks on the path.

So do you think this is purely a problem with ecl? In this case, is
there some reason things would have worked before maxima version
5.18.0?

>
> best
>
> Robert
>

Thanks again

Matthew Gwynne

P.S - As I forgot to "Reply to All" in my last response, I have cced
the list with this message (attaching my original message below), and
will reply to all in future. Sorry for that.

> On Mon, May 11, 2009 at 11:36 AM, Matthew Gwynne
> <mathew.gwynne at gmail.com> wrote:
> Hi,
>
> Sorry for the late reply. The system we are using has a somewhat
> different environment than standard and so I had to set aside some
> time to build things outside and track things down.
>
> It seems the problem occurs when there is a symlink on the path during
> the building of maxima.
>
> Steps to reproduce :
>
>
> Setup Directory and Symlink
>
> > mkdir Test
> > ln -s `pwd`/Test TestSym
> > cd TestSym
>
> Install Ecl
>
> > tar zxvf ecl-9.4.1.tar.gz
> > cd ecl-9.4.1
> > mkdir install
> > LDFLAGS=-Wl,-rpath=`pwd`/install/lib ./configure --prefix=`pwd`/install/
> > make
> > make install
> > cd ..
>
> Install Maxima
>
> > tar zxvf maxima-5.18.1.tar.gz
> > cd maxima-5.18.1
> > mkdir install
> > LANG=C ./configure --prefix=`pwd`/install --with-ecl=`pwd`/../ecl-9.4.1/install/bin/ecl --enable-ecl && LANG=C make && make check && make install
>
> Run Maxima and try to load something
>
> > ./install/bin/maxima
> > load(descriptive);
>
> Could not find `descriptive' using paths in file_search_maxima,file_search_lisp
>                                                                             .
> -- an error.  To debug this try debugmode(true);
>
>
> Inspecting file_search_maxima gives the same strange behaviour as before.
>
> Thanks
>