is the readline egg dead?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

is the readline egg dead?

Marco Maggi
I'm a newbie on a x84_64-pc-linux-gnu.

$ chicken-install readline -sudo
Server error:

Error: [Server] no such extension or version
"readline"
#f
Server error:

Error: [Server] no such extension or version
"readline"
#f

Error: extension or version not found: "readline"

TIA
--
Marco Maggi

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users
Reply | Threaded
Open this post in threaded view
|

Re: is the readline egg dead?

Kristian Lein-Mathisen


Hi Marco,

It seems the readline egg isn't available for CHICKEN 5.

You could try [breadline] or [linenoise]?


I don't know about the status on the C4 readline egg, whether a C5 port is planned or whether it's considered obsolete.

Hope this helps,
K.

On Sat, Mar 23, 2019, 10:12 Marco Maggi <[hidden email] wrote:
I'm a newbie on a x84_64-pc-linux-gnu.

$ chicken-install readline -sudo
Server error:

Error: [Server] no such extension or version
"readline"
#f
Server error:

Error: [Server] no such extension or version
"readline"
#f

Error: extension or version not found: "readline"

TIA
--
Marco Maggi

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users
Reply | Threaded
Open this post in threaded view
|

Re: is the readline egg dead?

Vasilij Schneidermann-2
Hello Kristian,

> I don't know about the status on the C4 readline egg, whether a C5 port is
> planned or whether it's considered obsolete.

I've contributed to the readline egg before and eventually reached the
conclusion that I'm better off developing my own with a different,
incompatible API.  I've also contacted its author regarding plans with a
C5 port and received no reply whatsoever.  For this reason I published
my version under the name breadline for C5, to show that it's a
completely different thing.

Vasilij

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: is the readline egg dead?

Juergen Lorenz
In reply to this post by Marco Maggi
Hi all,
there is a very easy to use and simple alternative to readline and
consorts: rlwrap
It's an external package and thas has the advantage to be usable not
only with chicken, but with every program without readline support.
Cheers
Juergen
--

Dr. Juergen Lorenz
Gruener Weg 27
29471 Gartow


_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

installing breadline Was: is the readline egg dead?

Marco Maggi
In reply to this post by Kristian Lein-Mathisen
Kristian Lein-Mathisen wrote:

> Hi Marco,

> It seems the readline egg isn't available for CHICKEN 5.

> You could try [breadline] or [linenoise]?

>   [breadline]: http://wiki.call-cc.org/eggref/5/breadline
>   [linenoise]: http://wiki.call-cc.org/eggref/5/linenoise

Thanks!  I  am trying breadline, but,  after a number of  other eggs are
installed  I get  this  error,  most likely  because  I  still have  GNU
Readline 6.3  on my Slackware64  14.2 installation (which is  the latest
Slackware, sigh!):

$ (umask 0 ; chicken-install breadline -sudo)
building breadline
   /opt/chicken/5.0.0//bin/csc -host -D compiling-extension -J -s -setup-mode -I /home/marco/.chicken-install/cache/breadline -C -I/home/marco/.chicken-install/cache/breadline -O2 -d1 breadline-scheme-completion.scm -o /home/marco/.chicken-install/cache/breadline/breadline-scheme-completion.so

Error: (load) during expansion of (import ...) - unable to load compiled module - /usr/lib64/libreadline.so.6: undefined symbol: UP: "./breadline.import.so"

        Call history:

        <syntax>          (##core#undefined)
        <syntax>          (import (srfi 1))
        <syntax>          (##core#begin (##core#require srfi-1 srfi-1#))
        <syntax>          (##core#require srfi-1 srfi-1#)
        <syntax>          (chicken.load#load-extension (##core#quote srfi-1) (##core#quote (srfi-1#)) (##core#quote require))
        <syntax>          (##core#quote srfi-1)
        <syntax>          (##core#quote (srfi-1#))
        <syntax>          (##core#quote require)
        <syntax>          (import apropos)
        <syntax>          (##core#begin (##core#require apropos apropos#))
        <syntax>          (##core#require apropos apropos#)
        <syntax>          (chicken.load#load-extension (##core#quote apropos) (##core#quote (apropos#)) (##core#quote require)...
        <syntax>          (##core#quote apropos)
        <syntax>          (##core#quote (apropos#))
        <syntax>          (##core#quote require)
        <syntax>          (import breadline)    <--

Error: shell command terminated with non-zero exit status 17920: '/opt/chicken/5.0.0/bin/chicken' 'breadline-scheme-completion.scm' -output-file '/home/marco/.chicken-install/cache/breadline/breadline-scheme-completion.c' -dynamic -feature chicken-compile-shared -feature compiling-extension -emit-all-import-libraries -setup-mode -include-path /home/marco/.chicken-install/cache/breadline -optimize-level 2 -debug-level 1

Error: shell command terminated with nonzero exit code
256
"sh /home/marco/.chicken-install/cache/breadline/breadline.build.sh"

Sadness.  But life goes on...
--
Marco Maggi

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users
Reply | Threaded
Open this post in threaded view
|

Re: installing breadline Was: is the readline egg dead?

Vasilij Schneidermann-2
Hello Marco,

> Thanks!  I  am trying breadline, but,  after a number of  other eggs are
> installed  I get  this  error,  most likely  because  I  still have  GNU
> Readline 6.3  on my Slackware64  14.2 installation (which is  the latest
> Slackware, sigh!):

Thanks for the bug report.  I picked a Slackware64 14.1 Docker image,
installed C5 into it and managed reproducing your issue.  After messing
around a lot with the system I eventually discovered the reason for this
error message, on Slackware it's expected that interactive programs link
against ncurses (which their readline package doesn't, unlike mine).

I've released a new version of the package now that explicitly links against
ncurses.  In case you don't want to wait for a day or so for it to
appear in the coop, execute the following:

    git clone https://github.com/wasamasa/breadline
    cd breadline
    chicken-install

Vasilij

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing breadline Was: is the readline egg dead?

Erik Falor
On Sat, Mar 23, 2019 at 05:29:44PM +0100, Vasilij Schneidermann wrote:
> Hello Marco,
>
> > Thanks!  I  am trying breadline, but,  after a number of  other eggs are
> > installed  I get  this  error,  most likely  because  I  still have  GNU
> > Readline 6.3  on my Slackware64  14.2 installation (which is  the latest
> > Slackware, sigh!):

I can confirm that this is true on Slackware 14.2.

> Thanks for the bug report.  I picked a Slackware64 14.1 Docker image,
> installed C5 into it and managed reproducing your issue.  After messing
> around a lot with the system I eventually discovered the reason for this
> error message, on Slackware it's expected that interactive programs link
> against ncurses (which their readline package doesn't, unlike mine).

FWIW, breadline builds and loads flawlessly on the in-development
version of Slackware.

> I've released a new version of the package now that explicitly links against
> ncurses.  In case you don't want to wait for a day or so for it to
> appear in the coop, execute the following:
>
>     git clone https://github.com/wasamasa/breadline
>     cd breadline
>     chicken-install

This is great!  I can confirm that this new version also works well on
Slackware-current.


--
Erik Falor
Registered Linux User #445632                    http://unnovative.net

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

signature.asc (169 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing breadline Was: is the readline egg dead?

Vasilij Schneidermann-2
Hello Erik,

> FWIW, breadline builds and loads flawlessly on the in-development
> version of Slackware.

That's interesting.  Could you please post the output of ldd run against
its .so file?  I did this on both Slackware 14.1 and Arch Linux, on
Slackware it wasn't linked against ncurses, on Arch Linux it was.  I got
the hint about linking to ncurses from this forum discussion [1].  Since
ncurses is a readline dependency in any case, I figured it wouldn't hurt
to always link to it.  But who knows, maybe I'll run into a user on
another distro which does things differently and expects them to link
against terminfo or so :)

Vasilij

[1] https://forum.segger.com/index.php/Thread/925-libreadline-so-5-undefined-symbol-PC/

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing breadline Was: is the readline egg dead?

Marco Maggi
In reply to this post by Vasilij Schneidermann-2
Vasilij Schneidermann wrote:

> Hello Marco,

>> Thanks!  I  am trying breadline, but,  after a number of  other eggs are
>> installed  I get  this  error,  most likely  because  I  still have  GNU
>> Readline 6.3  on my Slackware64  14.2 installation (which is  the latest
>> Slackware, sigh!):

> Thanks for the bug report.  I picked a Slackware64 14.1 Docker image,
> installed C5 into it and managed reproducing your issue.  After messing
> around a lot with the system I eventually discovered the reason for this
> error message, on Slackware it's expected that interactive programs link
> against ncurses (which their readline package doesn't, unlike mine).

> I've released a new version of the package now that explicitly links against
> ncurses.  In case you don't want to wait for a day or so for it to
> appear in the coop, execute the following:

>     git clone https://github.com/wasamasa/breadline
>     cd breadline
>     chicken-install

It works, thanks!
--
Marco Maggi

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users
Reply | Threaded
Open this post in threaded view
|

Re: installing breadline Was: is the readline egg dead?

Erik Falor
In reply to this post by Vasilij Schneidermann-2
On Wed, Mar 27, 2019 at 07:21:07AM +0100, Vasilij Schneidermann wrote:
> Hello Erik,
>
> > Let me know if you have any other questions.
>
> Sorry for being unprecise here, what I meant is what libreadline.so
> links against.

This is on my Raspberry Pi running Slackware-current.

$ ldd /usr/lib/libreadline.so.7
        linux-vdso.so.1 (0x7ed09000)
        libtinfo.so.6 => /usr/lib/libtinfo.so.6 (0x76ea7000)
        libc.so.6 => /lib/libc.so.6 (0x76d1b000)
        /lib/ld-linux-armhf.so.3 (0x76f23000)


For comparison, this is one of my Slackware-14.2 machines:

$ ldd /usr/lib64/libreadline.so.6
    linux-vdso.so.1 (0x00007ffddb379000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f8845503000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f8845b15000)


> That aside, you forgot replying to the mailing list as
> well because this email has its Cc: line cleared.

Oops.

--
Erik Falor
Registered Linux User #445632                    http://unnovative.net

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

signature.asc (169 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: is the readline egg dead?

Alex Shinn
In reply to this post by Juergen Lorenz
There's also (chibi term edit-line) which is a pure R7RS implementation and should work with Chicken.
I haven't put it up on snow-fort yet though.

--
Alex

On Sat, Mar 23, 2019 at 10:17 PM Juergen Lorenz <[hidden email]> wrote:
Hi all,
there is a very easy to use and simple alternative to readline and
consorts: rlwrap
It's an external package and thas has the advantage to be usable not
only with chicken, but with every program without readline support.
Cheers
Juergen
--

Dr. Juergen Lorenz
Gruener Weg 27
29471 Gartow

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users

_______________________________________________
Chicken-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/chicken-users