<aw->
beneroth: yeah, many things are GPL, i'm not worried about it, thanks!
<abu[7]>
Cheers aw-!
rob_w has joined #picolisp
beneroth has quit [Quit: Leaving]
<taleon>
tankf33der: I can no longer build PicoLisp under OpenBSD. The problem is readline. The readline version included in OpenBSD is too old and with version 8.2 from the ports I get an error message `lib.c:122:4: error: use of undeclared identifier 'rl_input_available_hook'` The Makefile does not seem to find the newer readline version. I have already added an `-I/usr/local/include/ereadline' under `MAIN' in
<taleon>
It worked before, but now it overwrites something in the system and OpenBSD is no longer usable.
rob_w has quit [Remote host closed the connection]
<taleon>
Therefore I would like to use the version 8.2 from the ports, which is installed under `/usr/local/include/ereadline/readline`.
<abu[7]>
Strange! libreadline is downgraded?
rob_w has joined #picolisp
<taleon>
OpenBSD uses an ancient readline version in the base system for reasons unknown to me. However, you can install the new version from the ports. But it is not used in the Makefile of PicoLisp. lib.c still uses the old version and then of course the error messages appear.
<taleon>
`-I/usr/local/include/ereadline' should show the Makefile the location of the new version.
<taleon>
I suspect OpenBSD uses the old version of readline in the base system, since it still uses GPL v2. Higher GPL versions are not compatible with the BSD license. Most of the GPL tools have been replaced by BSD licensed tools.
<abu[7]>
Makes sense
<taleon>
To avoid any confusion with the base readline/history library make sure
<taleon>
you link to ereadline and ehistory. In the headers you can check for
<taleon>
RL_READLINE_VERSION, RL_VERSION_MAJOR and RL_VERSION_MINOR to see which
<taleon>
header you have picked up.
<taleon>
To avoid any confusion with the base readline/history library make sure
<taleon>
you link to ereadline and ehistory. In the headers you can check for
<taleon>
RL_READLINE_VERSION, RL_VERSION_MAJOR and RL_VERSION_MINOR to see which
<taleon>
if i download the source code manually from the internet and install it, i can no longer enter and start anything in the system. xterm no longer works and I can no longer start any other tools.
<taleon>
A few weeks ago that was still possible.
<tankf33der>
it overwrite (or install) to /usr/local, right ?
<taleon>
What exactly it changes in the system and where it is installed to, I cannot say. I have now reinstalled OpenBSD 3 times after downloading readline from the internet and installing it from source.
<taleon>
That's why I would like to use the version from the ports. Apparently you have to use ereadline instead of readline, otherwise the two versions collide.
<taleon>
To avoid any confusion with the base readline/history library make sure you link to ereadline and ehistory. In the headers you can check for RL_READLINE_VERSION, RL_VERSION_MAJOR and RL_VERSION_MINOR to see which header you have picked up.
<taleon>
I have already tried this with my limited knowledge. Apparently without success.
<taleon>
Wow, very good. I'm looking forward to it. :-)
<taleon>
With readline from the ports or compiled and installed by yourself?
<tankf33der>
installed.
<taleon>
ok
<taleon>
My problem was not only that PicoLisp did not build, but also that no programs worked under X11.
<taleon>
That's why the idea was to use the version from the ports. Then you could also offer an official port of PicoLisp in the next step and not break your system.
<tankf33der>
now compiled from ports.
<taleon>
Yes! :-)
<tankf33der>
they move everything to ereadline and to libereadline.so
<taleon>
Yes, that could be, although the 7.5 release is only a few days old and probably not much has changed internally. I'll do some more research. In any case, thank you very much for your help.
<taleon>
The current release is OpenBSD 7.5, released April 5, 2024. This is the 56th release.
<tankf33der>
welcome.
<taleon>
I'll keep you up to date as soon as I've made progress.
<abu[7]>
👍
<taleon>
abu[7]: ltrace is available
rob_w has quit [Remote host closed the connection]