Re: next question - with-keyboard not working in current source

"Pascal J. Bourguignon" <[email protected]>
Newsgroups gmane.lisp.clisp.general
Organization Informatimago
Message-ID <[email protected]>
[email protected] (Don Cohen) writes:

>  > "current source"?
>  > What version do you use?
> I meant hg as of when it stopped working a few days ago.
> But I see differences in what you have below and what I have.
> For instance, no screen in features.  Also no readline.
> Which of these is required for with-keyboard and what do I have
> to put in configure to get it?

I would guess that KEYBOARD comes along with SCREEN.

But it is built-in, I didn't specify any specific configure option to get it.
On the other hand, they are:
Platform Dependent: UNIX, Win32 platforms only.

But you're on unix apparently.  If you compiled clisp yourself, check
the configuration and compilation logs.  Perhaps it failed to detect
something and that made it opt out of screen and keyboard?

Try to reconfigure and recompile it.
I use the following script:
------------------------------------------------------------------------
#!/bin/bash 
VERSION=hg
PREFIX=/data/languages/clisp-${VERSION}

cd "$(dirname "$0")"
LOGBASE="$(pwd)/$(basename "$0")"

# rm -rf  clisp-${VERSION}
# tar jxf clisp-${VERSION}.tar.bz2
cd      clisp-${VERSION}

function copy-libgnu(){
    cp build/libgnu.a  build/bindings/glibc/
}

echo '// Configuring and Compiling'
./configure \
    --prefix=$PREFIX \
    --with-threads=POSIX_THREADS \
    --with-module=berkeley-db \
    --with-module=bindings/glibc \
    --with-module=clx/new-clx \
    --with-module=dbus \
    --with-module=gdbm \
    --with-module=gtk2 \
    --with-module=pcre \
    --with-module=postgresql \
    --with-module=queens \
    --with-module=rawsock \
    --with-module=zlib \
    --hyperspec=http://localhost/local/lisp/www.lispworks.com/documentation/HyperSpec/ \
                                        build          > "${LOGBASE}".configure.log      2>&1 \
    && ( echo '// Making all' ; make -C build          > "${LOGBASE}".make-all.log       2>&1 ) \
    && ( copy-libgnu ) \
    && ( echo '// Installing' ; make -C build install  > "${LOGBASE}".make-install.log   2>&1 ) \
    || echo 'Failed; check the logs'

------------------------------------------------------------------------


> $ build-mt/full/lisp.run -M build-mt/full/lispinit.mem --version
> STACK size: 98222 [0x7f703164ee00 0x7f703158f090]
> GNU CLISP 2.49+ (2010-07-17) (built 3646723817) (memory 3646723958)
> Software: GNU C 4.9.2 20150212 (Red Hat 4.9.2-6) 
> gcc -m64 -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wreturn-type
> -Wmissing-declarations -Wimplicit -Wno-sign-compare
> -Wno-format-nonliteral -falign-functions=4 -pthread -g -O0
> -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3
> -DENABLE_UNICODE -DMULTITHREAD -DPOSIX_THREADS -DNO_TERMCAP_NCURSES
> -DDYNAMIC_FFI -DDYNAMIC_MODULES  libgnu.a  -ldl -lavcall -lcallback
> -L/usr/local/lib64 -lsigsegv -lc  
> SAFETY=3 TYPECODES WIDE_HARD SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
> libsigsegv 2.5
> Features: 
> (RAWSOCK REGEXP WILDCARD SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP
> ANSI-CL
>  COMMON-LISP LISP=CL INTERPRETER LOGICAL-PATHNAMES MT SOCKETS
> GENERIC-STREAMS
>  FFI GETTEXT UNICODE BASE-CHAR=CHARACTER WORD-SIZE=64 PC386 UNIX)
> C Modules: (clisp i18n syscalls regexp rawsock)
> Installation directory: /home/don/hg/clisp/build-mt/
> User language: ENGLISH
> Machine: X86_64 (X86_64) number14.chmusic.org [10.10.248.29]
>
>  > 
>  > 
>  > [pjb@kuiper :0.0 ~]$ clisp --version
>  > GNU CLISP 2.49+ (2010-07-17) (built 3603386203) (memory 3603386298)
>  > Software: GNU C 4.7.2 
>  > gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wreturn-type
>  > -Wmissing-declarations -Wimplicit -Wno-sign-compare
>  > -Wno-format-nonliteral -O -falign-functions=4 -pthread
>  > -DENABLE_UNICODE -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI
>  > -DDYNAMIC_MODULES libgnu.a -lreadline -lncurses -ldl -lavcall
>  > -lcallback -lsigsegv
>  > SAFETY=0 TYPECODES WIDE_HARD GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
>  > libsigsegv 2.9
>  > libreadline 6.2
>  > libffcall 1.11
>  > Features: 
>  > (READLINE REGEXP WILDCARD SYSCALLS I18N LOOP COMPILER CLOS MOP
>  > CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER LOGICAL-PATHNAMES MT
>  > SOCKETS GENERIC-STREAMS
>  >  SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER WORD-SIZE=64 PC386 UNIX)
>  > C Modules: (clisp i18n syscalls regexp readline)
>  > Installation directory: /data/languages/clisp-hg/lib/clisp-2.49+/
>  > User language: ENGLISH
>  > Machine: X86_64 (X86_64) kuiper.lan.informatimago.com [127.0.1.1]
>  > [pjb@kuiper :0.0 ~]$ 
>  > 
>  > 
>  > [pjb@kuiper :0.0 clisp-hg]$ hg log|head -20
>  > changeset:   15611:5c63938ef493
>  > tag:         tip
>  > user:        Sam Steingold <[email protected]>
>  > date:        Wed Oct 22 12:04:12 2014 -0400
>  > files:       modules/syscalls/configure.in src/ChangeLog
>  > description:
>  > Fix bug#668 posix:file-state always return NIL for :rdev
>  > 
>  > * modules/syscalls/configure.in: check for struct stat members
>  > 
>  > 
>  > 
>  > [1]> (ext:with-keyboard ext:*keyboard-input*)
>  > #<INPUT KEYBOARD-STREAM>
>
> And why do you seem to have newer updates than I do when I've been
> doing hg pull seemingly successfully until recently?

Good question.

[pjb@kuiper :0.0 clisp-hg]$ hg paths
default = http://hg.code.sf.net/p/clisp/clisp


> $ hg log | head -20
> not trusting file /home/don/hg/clisp/.hg/hgrc from untrusted user don,
> group don
> not trusting file /home/don/hg/clisp/.hg/hgrc from untrusted user don,
> group don
> changeset:   15608:97c19a70b668
> tag:         tip
> user:        Sam Steingold <[email protected]>
> date:        Sun Apr 14 17:59:02 2013 -0400
> summary:     * modules/asdf/asdf.lisp: upgrade to 2.33

I've got 3 more patches:

[pjb@kuiper :0.0 clisp-hg]$ hg log |head -48
changeset:   15611:5c63938ef493
tag:         tip
user:        Sam Steingold <[email protected]>
date:        Wed Oct 22 12:04:12 2014 -0400
files:       modules/syscalls/configure.in src/ChangeLog
description:
Fix bug#668 posix:file-state always return NIL for :rdev

* modules/syscalls/configure.in: check for struct stat members


changeset:   15610:cd4c963a9505
user:        Sam Steingold <[email protected]>
date:        Sun May 11 02:03:09 2014 -0400
files:       emacs/d-mode.el
description:
remove obsolete code


changeset:   15609:0334c6afdcc8
user:        Sam Steingold <[email protected]>
date:        Sun May 11 01:59:38 2014 -0400
files:       src/ChangeLog src/m4/termcap.m4
description:
* src/m4/termcap.m4 (CL_TERMCAP): also look for tgetent in tinfo;

fixes bug#665 as suggested by Jason Miller <[email protected]>


changeset:   15608:97c19a70b668
user:        Sam Steingold <[email protected]>
date:        Sun Apr 14 17:59:02 2013 -0400
files:       modules/asdf/asdf.lisp src/ChangeLog
description:
* modules/asdf/asdf.lisp: upgrade to 2.33


changeset:   15607:527b7fdc5332
user:        Sam Steingold <[email protected]>
date:        Sun Apr 14 17:56:08 2013 -0400
files:       doc/impbody.xml src/ChangeLog src/pathname.d src/spvw.d src/subr.d
description:
Avoid startup errors when the user has weird ~/.clisp
* pathname.d, subr.d (PROBE-PATHNAME): accept &key (:error t)
* spvw.d (main_actions): pass :ERROR NIL to PROBE-PATHNAME



-- 
__Pascal Bourguignon__


------------------------------------------------------------------------------
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.