[Chicken-users] repository pathname, location and customisation, lib64

2019-03-23 Thread Marco Maggi
Ciao,

  I would  really like to customise  the location of the  installed eggs
for  my  Slackware64 on  a  x86_64-pc-linux-gnu  running Chicken  5.0.0.
First I go to the Wiki[1] and try this:

$ csi -p "(repository-path)"

Error: unbound variable: repository-path

Call history:

  (##core#begin (##core#require library scheme#) 
(##core#require library chicken.base#) (##core#requir...
  (##core#require library scheme#)
  (##sys#load-library (##core#quote library))
  (##core#quote library)
  (##core#require library chicken.base#)
  (##sys#load-library (##core#quote library))
  (##core#quote library)
  (##core#begin (##core#require expand chicken.syntax#))
  (##core#require expand chicken.syntax#)
  (##sys#load-library (##core#quote expand))
  (##core#quote expand)
(##sys#load-library (##core#quote library))
(##sys#load-library (##core#quote library))
(##sys#load-library (##core#quote expand))
  (repository-path)
(repository-path) <--

but   I  read,   and  see   on  my   system,  that   the  directory   is
"${prefix}/lib/chicken/9".

  Under  Slackware 32-bit  the  libraries'  directory is  "$prefix/lib",
while   underSlackware   64-bit   the   libraries'directory   is
"$prefix/lib64".  On a  64-bit platform: it is possible  to install both
32-bit  and   64-bit  packages  and   their  files  go   into  different
installation  directories.  It  is  not right  to  put everything  under
"lib", I would like to use "lib64".

  Searching the Wiki, the bugs database and the mailing list archive: it
seems that this  is not currently supported?  But in  some old messages,
someone *is* using "lib64"...

TIA

[1] 
-- 
Marco Maggi

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] installing breadline Was: is the readline egg dead?

2019-03-23 Thread 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 #445632http://unnovative.net


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] installing breadline Was: is the readline egg dead?

2019-03-23 Thread Vasilij Schneidermann
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


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] is the readline egg dead?

2019-03-23 Thread Juergen Lorenz
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



signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] installing breadline Was: is the readline egg dead?

2019-03-23 Thread Marco Maggi
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:

  (##core#undefined)
  (import (srfi 1))
  (##core#begin (##core#require srfi-1 srfi-1#))
  (##core#require srfi-1 srfi-1#)
  (chicken.load#load-extension (##core#quote srfi-1) 
(##core#quote (srfi-1#)) (##core#quote require))
  (##core#quote srfi-1)
  (##core#quote (srfi-1#))
  (##core#quote require)
  (import apropos)
  (##core#begin (##core#require apropos apropos#))
  (##core#require apropos apropos#)
  (chicken.load#load-extension (##core#quote apropos) 
(##core#quote (apropos#)) (##core#quote require)...
  (##core#quote apropos)
  (##core#quote (apropos#))
  (##core#quote require)
  (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
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Announce: Hypergiant and OpenGL eggs are available for CHICKEN 5!

2019-03-23 Thread kooda
Hello CHICKEN users!

Today I finished porting and publishing the last eggs of the OpenGL suite!

I am now the maintainer of the CHICKEN 5 version of the following eggs,
which are, as of today, all available from chicken-install:

- epoxy
- soil
- glfw3
- gl-math
- gl-utils
- gl-type
- glls
- noise
- hyperscene
- hypergiant


Compared to CHICKEN 4, the only opengl binding that remains is a new
egg called `epoxy`.

It’s a drop-in replacement for the old `opengl-glew` egg (except for
the `init` procedure that is no longer required).

Epoxy also provides the OpenGL ES APIs as well as the fixed-pipeline
API that was previously available with the `opengl` egg.

This new egg requires the epoxy library to be installed on the system.


My plans for the near future are to update support for OpenGL ES in the
high level libraries (hypergiant and co.) so that it’s a runtime option
instead of a compile-time one.

I also plan to make a sound library and integrate it into hypergiant.


I hope all of this will be useful! If you experience any problem, feel
free to contact me!

Have a great day! :D

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] NULL in calls to C functions with bind

2019-03-23 Thread Kristian Lein-Mathisen
Hi Christoph,

I think that NULL should be correct and work - since you're creating a
pointer object to address 0. However, the FFI has a convenience for
null-pointers: you can pass in #f instead. That's easier and requires one
less GC object. It's mentioned in the manual on c-pointer foreign type:
http://wiki.call-cc.org/man/5/Foreign%20type%20specifiers#pointers

That takes me to my personal experience which I want to share: when
creating foreign bindings, just use foriegn-lambda and skip the bind
dependency. Maybe when you have huge API's, bind can save you some time.
But I'd say that hand-written foreign-lambdas give you more control of
what's going on, force you to think about every function and make sure it's
safe and generally produce better interfaces.

I hope this may give you some pointers.
K.


On Fri, Mar 22, 2019, 17:50 Christoph Lange  I wrote the following in my attempt to interface to the mosquitto MQTT
> library:
>
>
> (bind* "struct mosquitto *mosquitto_new(const char *id,
> ___bool clean_session,
> void *obj);")
>
> (define NULL (object->pointer 0))
> (define mqttc (mosquitto-new NULL #t NULL))
>
>
> But I'm unsure about my adventurous definition of `NULL`. It works, but is
> it correct?
>
>
> Another thing: on the bind egg's documentation page, `___blob` is not
> mentioned, but I luckily found it in the sql-de-lite code, and it saved me
> a lot of headaches :-) Shouldn't it be there?
>
> /Christoph
> ___
> Chicken-users mailing list
> Chicken-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-users
>
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] is the readline egg dead?

2019-03-23 Thread Vasilij Schneidermann
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


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] is the readline egg dead?

2019-03-23 Thread Kristian Lein-Mathisen
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

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  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
> Chicken-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-users
>
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] is the readline egg dead?

2019-03-23 Thread 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
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users