Greetings! OK, it looks as if you have a very old version of gcl.
Where did you get this from? It would even appear that it is before
the readline support addition.
Please get the latest cvs and try again.
export CVS_RSH=ssh
export CVSROOT=:pserver:anoncvs@subversions.gnu.org:/cvsroot/gcl
cvs login
(enter)
cvs -z9 co gcl
cd gcl
./configure && make && make install
Thanks for your report!
Daniel Lemire <lemire@ondelette.com> writes:
> Good day,
>
> I think I might have an issue with building gcl now that you ask!
>
> >1) You have correctly built gcl-2.5.0 from cvs with readline support,
> > and that 'ldd unixport/saved_gcl' shows the readline library linked
> > in.
> >
>
> I don't know about that. I did .configure, make, make install if that's=20
> what you mean by "correctly built".
>
> [lemire@lagrange gcl]$ ./configure
> (output omitted)
> [lemire@lagrange gcl]$ make
> (.... bunch of stuff omitted...)
> In file included from cmpvar.c:2:
> ../h/cmpinclude.h:2790:8: warning: extra tokens at end of #endif directive
> ../xbin/append cmpvar.data cmpvar.o
> cc -c -O -I../h cmpvs.c
> In file included from cmpvs.c:2:
> ../h/cmpinclude.h:2790:8: warning: extra tokens at end of #endif directive
> ../xbin/append cmpvs.data cmpvs.o
> cc -c -O -I../h cmpwt.c
> In file included from cmpwt.c:2:
> ../h/cmpinclude.h:2790:8: warning: extra tokens at end of #endif directive
> ../xbin/append cmpwt.data cmpwt.o
> make[1]: Quitte le répertoire
> `/home/lemire/NonlinearWavelets/Python/gcl/cmpnew'(cd unixport; make
> saved_gcl)
> make[1]: Entre dans le répertoire
> `/home/lemire/NonlinearWavelets/Python/gcl/unixport'
> cc -c -I../h -c -o ../mp/mpi.o ../mp/mpi.c
> cc -c -I../h -c -o ../mp/mp2.o ../mp/mp2.c
> make[1]: *** Pas de r=E8gle pour fabriquer la cible `../mp/libmport.a',
> n=E9cessaire pour `raw_gcl'. Arrêt.
> make[1]: Quitte le répertoire
> `/home/lemire/NonlinearWavelets/Python/gcl/unixport'
> make: *** [all] Erreur 2
> [lemire@lagrange gcl]$ su
> Password:
> [root@lagrange gcl]# make install
> make install1 "INSTALL_LIB_DIR=/usr/local/lib/gcl-`cat majvers`.`cat
> minvers`" "prefix=/usr/local"
> make[1]: Entre dans le répertoire
> `/home/lemire/NonlinearWavelets/Python/gcl'
> if [ -d "/usr/local/lib" ] ;then true; else mkdir /usr/local/lib ; fi
> if [ -d "/usr/local/bin" ] ;then true; else mkdir /usr/local/bin ; fi
> if [ -d "/usr/local/lib/gcl-2.4.0" ] ; then true; else mkdir
> /usr/local/lib/gcl-2.4.0 ;fi
> make install-command "INSTALL_LIB_DIR=/usr/local/lib/gcl-2.4.0"
> "prefix=/usr/local"
> make[2]: Entre dans le répertoire
> `/home/lemire/NonlinearWavelets/Python/gcl'
> rm -f /usr/local/bin/gcl
> (echo "#!/bin/sh" ; \
> echo exec /usr/local/lib/gcl-2.4.0/unixport/saved_gcl \\ ; \
> echo ' -dir' /usr/local/lib/gcl-2.4.0/unixport/ \\ ; \
> echo ' -libdir' /usr/local/lib/gcl-2.4.0/ \\ ; \
> echo ' -eval '\''(setq si::*allow-gzipped-file* t)'\' \\ ;\
> echo ' -eval '\''(setq si::*tk-library* '\"\"')'\' \\;\
> echo ' '\"\$@\" ) > /usr/local/bin/gcl;
> echo '#' other options: -load "/tmp/foo.o" -load "jo.lsp" -eval '"(joe
> 3)"' >> /usr/local/bin/gcl
> chmod a+x /usr/local/bin/gcl
> make[2]: Quitte le répertoire `/home/lemire/NonlinearWavelets/Python/gcl'
> rm -f /usr/local/bin/gcl.exe
> tar cvf - unixport/saved_gcl info/*info* doc/*.el cmpnew/collectfn.o
> lsp/gprof.lsp lsp/info.o lsp/profile.lsp gcl-tk/tkl.o gcl-tk/tinfo.o
> gcl-tk/decode.tcl gcl-tk/demos/*.lsp gcl-tk/demos/*.lisp gcl-tk/demos/*.o \
> gcl-tk/gcl.tcl gcl-tk/gcltkaux | (cd /usr/local/lib/gcl-2.4.0 ;tar xvf -)
> tar: unixport/saved_gcl: ne peut stat: Aucun fichier ou répertoire de ce
> type
> info/gcl-si.info
> info/gcl-si.info-1.gz
> info/gcl-si.info
> info/gcl-si.info-2.gz
> info/gcl-si.info-1.gz
> info/gcl-si.info-2.gz
> info/gcl-si.info-3.gz
> info/gcl-si.info-3.gz
> info/gcl-si.info-4.gz
> info/gcl-si.info-4.gz
> info/gcl-si.info-5.gz
> info/gcl-si.info-5.gz
> info/gcl-si.info-6.gz
> info/gcl-tk.info
> info/gcl-si.info-6.gz
> info/gcl-tk.info-1.gz
> info/gcl-tk.info
> info/gcl-tk.info-1.gz
> info/gcl-tk.info-2.gz
> info/gcl-tk.info-2.gz
> info/gcl-tk.info-3.gz
> info/gcl-tk.info-3.gz
> info/gcl-tk.info-4.gz
> info/gcl-tk.info-4.gz
> info/gcl-tk.info-5.gz
> info/gcl-tk.info-5.gz
> info/gcl-tk.info-6.gz
> info/gcl-tk.info-6.gz
> info/gcl-tk.info-7.gz
> info/gcl-tk.info-7.gz
> info/gcl-tk.info-8.gz
> info/gcl-tk.info-8.gz
> info/texinfo.tex
> info/texinfo.tex
> tar: doc/*.el: ne peut stat: Aucun fichier ou répertoire de ce type
> tar: cmpnew/collectfn.o: ne peut stat: Aucun fichier ou répertoire de ce
> type
> lsp/gprof.lsp
> lsp/gprof.lsp
> lsp/info.o
> lsp/info.o
> lsp/profile.lsp
> tar: gcl-tk/tkl.o: ne peut stat: Aucun fichier ou répertoire de ce type
> tar: gcl-tk/tinfo.o: ne peut stat: Aucun fichier ou répertoire de ce type
> gcl-tk/decode.tcl
> lsp/profile.lsp
> gcl-tk/decode.tcl
> gcl-tk/demos/index.lsp
> gcl-tk/demos/gc-monitor.lisp
> gcl-tk/demos/index.lsp
> gcl-tk/demos/mkBasic.lisp
> gcl-tk/demos/mkCanvText.lisp
> gcl-tk/demos/gc-monitor.lisp
> gcl-tk/demos/mkBasic.lisp
> gcl-tk/demos/mkdialog.lisp
> gcl-tk/demos/mkEntry2.lisp
> gcl-tk/demos/mkEntry.lisp
> gcl-tk/demos/mkCanvText.lisp
> gcl-tk/demos/mkdialog.lisp
> gcl-tk/demos/mkEntry2.lisp
> gcl-tk/demos/mkForm.lisp
> gcl-tk/demos/mkHScale.lisp
> gcl-tk/demos/mkItems.lisp
> gcl-tk/demos/mkEntry.lisp
> gcl-tk/demos/mkForm.lisp
> gcl-tk/demos/mkHScale.lisp
> gcl-tk/demos/mkItems.lisp
> gcl-tk/demos/mkLabel.lisp
> gcl-tk/demos/mkListbox.lisp
> gcl-tk/demos/mkPlot.lisp
> gcl-tk/demos/mkLabel.lisp
> gcl-tk/demos/mkListbox.lisp
> gcl-tk/demos/mkPlot.lisp
> gcl-tk/demos/mkRadio.lisp
> gcl-tk/demos/mkRuler.lisp
> gcl-tk/demos/mkRadio.lisp
> gcl-tk/demos/mkRuler.lisp
> gcl-tk/demos/mkSearch.lisp
> gcl-tk/demos/mkStyles.lisp
> gcl-tk/demos/mkSearch.lisp
> gcl-tk/demos/mkStyles.lisp
> gcl-tk/demos/mkTextBind.lisp
> gcl-tk/demos/mkVScale.lisp
> gcl-tk/demos/nqthm-stack.lisp
> gcl-tk/demos/mkTextBind.lisp
> gcl-tk/demos/mkVScale.lisp
> gcl-tk/demos/showVars.lisp
> gcl-tk/demos/widget.lisp
> gcl-tk/demos/nqthm-stack.lisp
> tar: gcl-tk/demos/*.o: ne peut stat: Aucun fichier ou répertoire de ce =
> type
> gcl-tk/gcl.tcl
> gcl-tk/demos/showVars.lisp
> gcl-tk/demos/widget.lisp
> tar: gcl-tk/gcltkaux: ne peut stat: Aucun fichier ou répertoire de ce t=
> ype
> gcl-tk/gcl.tcl
> tar: Statut d'erreur reporté d'erreurs précédentes.
> ln /usr/local/lib/gcl-2.4.0/unixport/saved_gcl \
> /usr/local/bin/gcl.exe
> ln: accessing `/usr/local/lib/gcl-2.4.0/unixport/saved_gcl': Aucun
> fichier ou répertoire de ce type
> make[1]: *** [install1] Erreur 1
> make[1]: Quitte le répertoire `/home/lemire/NonlinearWavelets/Python/gcl'
> make: *** [install] Erreur 2
> [root@lagrange gcl]# locate saved_gcl
> [root@lagrange gcl]#
>
> From that point on... I think that all your questions are pretty much out.
>
> I've no idea what is going on. Since I'm used to building packages that
> throw errors and warnings at me, I didn't pay any attention to it.
>
> Thanks!
>
> >
> >2) When executing the script front-end to saved_gcl from an xterm,
> > i.e. the 'gcl' script, you see ^OD] with back-arrow, backspace
> > works, and that tab, Alt-b, etc., report similar ascii
> > representations of control characters to the screen.
> >3) Terminal is as described below, which is the same setup I have
> > here, and should work fine.
> >4) For completeness sake, you don't have some old gcl script in your
> > path, and the script you are executing is:
> >
> > #!/bin/sh
> > exec /usr/lib/gcl-2.5.0/unixport/saved_gcl \
> > -dir /usr/lib/gcl-2.5.0/unixport/ \
> > -libdir /usr/lib/gcl-2.5.0/ \
> > -eval '(setq si::*allow-gzipped-file* t)' \
> > -eval '(setq si::*tk-library* "/usr/lib/tk8.2")' \
> > -eval '(si::init-readline)' \
> > "$@"
> > # other options: -load /tmp/foo.o -load jo.lsp -eval "(joe 3)"
> >
> >Questions:
> >
> >1) Can anyone else on this list confirm this behavior on a Redhat box?
> >2) Can anyone else report a correctly working setup on Redhat or any
> > other Linux system?
> >
> >In other words, I cannot reproduce your behavior at all, and I need to
> >at least here from someone else who can before concluding that it is a
> >gcl problem as opposed to a local setup problem.
> >
> >
> >Thanks for your patience, and report!
> >
> >
> >Daniel Lemire <lemire@ondelette.com> writes:
> >
> >>> Good day,
> >>>=20
> >>> What do you mean by "still"? By upgrading gcl, the only thing I bought
> >>> was the backspace key. All other control keys do not work. It is
> >>> somewhat nicer than what I had before, but it is still very limited.
> >>>
> >>> Since I have more than one RedHat 7.1 machine, I can assume that it will=20
> >>> be the result for just about everyone using RedHat.
> >>>
> >>>
> >>> Camm Maguire wrote:
> >>>
> >>
> >>>> >Greetings! Do you still see this behavior when running gcl in
> >>>> >stand-alone mode? Do you have tab completion in this case?
> >>>> >
> >>>> >Take care,
> >>>> >
> >>>> >
> >>>> >Daniel Lemire <lemire@ondelette.com> writes:
> >>>> >
> >>>
> >>>>> >>Actually, I have several RedHat Linux 7.1 machines. The same thing
> >>>>> >>happens on all these machines. Right now, at the office, here's what I
> >>>>> >>get...
> >>>>> >>
> >>>>> >>[lemire@lagrange lemire]$ set
> >>>>> >>BASH=/bin/bash
> >>>>> >>BASH_ENV=/home/lemire/.bashrc
> >>>>> >>BASH_VERSINFO=([0]="2" [1]="04" [2]="21" [3]="1" [4]="release"
> >>>>> >>[5]="i386-redhat-linux-gnu")
> >>>>> >>BASH_VERSION='2.04.21(1)-release'
> >>>>> >>COLORS=/etc/DIR_COLORS
> >>>>> >>COLORTERM=
> >>>>> >>COLUMNS=125
> >>>>> >>DIRSTACK=()
> >>>>> >>DISPLAY=:0.0
> >>>>> >>EUID=500
> >>>>> >>GROUPS=()
> >>>>> >>GTK_RC_FILES=/etc/gtk/gtkrc:/home/lemire/.gtkrc:/home/lemire/.gtkrc-kde
> >>>>> >>HISTFILE=/home/lemire/.bash_history
> >>>>> >>HISTFILESIZE=1000
> >>>>> >>HISTSIZE=1000
> >>>>> >>HOME=/home/lemire
> >>>>> >>HOSTNAME=lagrange
> >>>>> >>HOSTTYPE=i386
> >>>>> >>IFS='
> >>>>> >>'
> >>>>> >>INPUTRC=/etc/inputrc
> >>>>> >>KDEDIR=/usr
> >>>>> >>KDE_MULTIHEAD=false
> >>>>> >>LAMHELPFILE=/etc/lam/lam-helpfile
> >>>>> >>LANG=fr_FR@euro
> >>>>> >>LESSOPEN='|/usr/bin/lesspipe.sh %s'
> >>>>> >>LINES=35
> >>>>> >>LOGNAME=lemire
> >>>>> >>LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=
> 01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=
> 01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;
> 32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*
> .taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=0
> 1;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31
> :*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.
> png=01;35:*.tif=01;35:'
> >>>>> >>MACHTYPE=i386-redhat-linux-gnu
> >>>>> >>MAIL=/var/spool/mail/lemire
> >>>>> >>MAILCHECK=60
> >>>>> >>OPTERR=1
> >>>>> >>OPTIND=1
> >>>>> >>OSTYPE=linux-gnu
> >>>>> >>PATH=/usr/local/bin:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/
> opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/usr/kerber
> os/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/home/lemire/bin
> >>>>> >>PIPESTATUS=([0]="0")
> >>>>> >>PPID=4243
> >>>>> >>PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\00
> 7"'
> >>>>> >>PS1='[\u@\h \W]\$ '
> >>>>> >>PS2='> '
> >>>>> >>PS4='+ '
> >>>>> >>PVM_ROOT=/usr/share/pvm3
> >>>>> >>PVM_RSH=/usr/bin/rsh
> >>>>> >>PWD=/home/lemire
> >>>>> >>QTDIR=/usr/lib/qt-2.3.1
> >>>>> >>QT_XFT=0
> >>>>> >>SESSION_MANAGER=local/lagrange:/tmp/.ICE-unix/960
> >>>>> >>SHELL=/bin/bash
> >>>>> >>SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:intera
> ctive-comments:emacs
> >>>>> >>SHLVL=2
> >>>>> >>SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
> >>>>> >>TERM=xterm
> >>>>> >>UID=500
> >>>>> >>USER=lemire
> >>>>> >>XMODIFIERS=@im=none
> >>>>> >>XPVM_ROOT=/usr/share/pvm3/xpvm
> >>>>> >>_=/etc/bashrc
> >>>>> >>i=/etc/profile.d/xpvm.sh
> >>>>> >>langfile=/home/lemire/.i18n
> >>>>> >>sourced=1
> >>>>> >>mc=()
> >>>>> >>{
> >>>>> >> mkdir -p ~/.mc/tmp 2>/dev/null;
> >>>>> >> chmod 700 ~/.mc/tmp;
> >>>>> >> MC=~/.mc/tmp/mc-$$;
> >>>>> >> /usr/bin/mc -P "$@" >"$MC";
> >>>>> >> cd "`cat $MC`";
> >>>>> >> /bin/rm "$MC";
> >>>>> >> unset MC
> >>>>> >>}
> >>>>> >>[lemire@lagrange lemire]$ echo $TERM
> >>>>> >>xterm
> >>>>> >>[lemire@lagrange lemire]$ uname -a
> >>>>> >>Linux lagrange 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
> >>>>> >>[lemire@lagrange lemire]$ echo $0
> >>>>> >>/bin/bash
> >>>>> >>[lemire@lagrange lemire]$ tty
> >>>>> >>/dev/pts/20
> >>>>> >>[lemire@lagrange lemire]$ stty
> >>>>> >>speed 38400 baud; line = 0;
> >>>>> >>-brkint -imaxbel
> >>>>> >>[lemire@lagrange lemire]$
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>Camm Maguire wrote:
> >>>>> >>
> >>>>
> >>>>>> >>>Greetings!
> >>>>>> >>>
> >>>>>> >>>Daniel Lemire <daniel.lemire@ns.sympatico.ca> writes:
> >>>>>> >>>
> >>>>>
> >>>>>>> >>>>Good day,
> >>>>>>> >>>>
> >>>>>>> >>>>Oh! Yes, I have a working terminal. For sure. I do all my work in
> >>>>>>> >>>>consoles and text editors. I would go mad without a decent console!!!
> >>>>>>> >>>>
> >>>>>>> >>>>Here's what happens when I use the back arrow (^[OD appears).
> Please
> >>>>>>> >>>>note that "backspace" works. Back arrow is when you want to go back
> >>>>>>> >>>>inside the command and edit it.
> >>>>>>> >>>>
> >>>>>>
> >>>>>> >>>OK, this ^[OD is the back arrow key code, at least here, which is
> >>>>>> >>>obviously not being interpreted correctly by your terminal. Please
> >>>>>> >>>post the result of the following:
> >>>>>> >>>
> >>>>>> >>>set
> >>>>>> >>>echo $TERM
> >>>>>> >>>uname -a
> >>>>>> >>>echo $0
> >>>>>> >>>tty
> >>>>>> >>>stty
> >>>>>> >>>
> >>>>>> >>>
> >>>>>> >>>What system is this?
> >>>>>> >>>
> >>>>>> >>>Take care,
> >>>>>> >>>
> >>>>>
> >>>>>>> >>>>[lemire@romeo lemire]$ maxima
> >>>>>>> >>>>GCL (GNU Common Lisp) Version(2.5.0) jeu jan 31 23:03:22 EST 2002
> >>>>>>> >>>>Licensed under GNU Library General Public License
> >>>>>>> >>>>Contains Enhancements by W. Schelter
> >>>>>>> >>>>Maxima 5.6 jeu jan 31 23:03:13 EST 2002 (with enhancements by W. Schelter).
> >>>>>>> >>>>Licensed under the GNU Public License (see file COPYING)
> >>>>>>> >>>>(C1) fdsfds^[OD^[OD^[OD^[OD
> >>>>>>> >>>>
> >>>>>>> >>>>
> >>>>>>> >>>>I should point out that I'm using RedHat. I built gcl myself and
> >>>>>>> >>>>frankly, I just did the obvious (./configure, make, make install). I=20
> >>>>>>> >>>>didn't check my installation. I don't know anything about lisp.
> >>>>>>> >>>>
> >>>>>>> >>>>Thanks!
> >>>>>>> >>>>
> >>>>>>> >>>>Camm Maguire wrote:
> >>>>>>> >>>>
> >>>>>>
> >>>>>>>> >>>>>Greetings! On my gcl 2.5.0 build, tab completion, backspace, Emacs
> >>>>>>>> >>>>>keys (i.e. Alt-b to back over a word), and the back arrow all work.
> >>>>>>>> >>>>>Are you sure you have a working terminal? Does bash show the expected
> >>>>>>>> >>>>>behavior? What about gcl directly from the command prompt?
> >>>>>>>> >>>>>
> >>>>>>>
> >>>>>>> >>>>
> >>>>>>> >>>>--=20
> >>>>>>> >>>>Daniel Lemire, Ph.D.
> >>>>>>> >>>>
> >>>>>>> >>>>http://www.ondelette.com/
> >>>>>>> >>>>
> >>>>>>> >>>>
> >>>>>>> >>>>
> >>>>>>> >>>>
> >>>>>>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>> >>
> >>>>
> >>>> >
> >>>
> >>>=20
> >>>=20
> >>>=20
> >>>=20
> >>>=20
> >>
> >
> > --
> > Camm Maguire camm@enhanced.com
--
Camm Maguire camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah