[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash builtin integration
From: |
Wu Ming |
Subject: |
Re: Bash builtin integration |
Date: |
Tue, 30 Jan 2024 11:19:30 +0800 |
Turns out it can be compiled and activated with:
enable -f readrec.so readrec
On bash 5.x at least.
> On 30 Jan 2024, at 10:13, Wu Ming <wu.ming2@icloud.com> wrote:
>
> Hello,
>
> improved but not enough:
>
> enable readrec.so readrec
> bash: enable: cannot find readrec.so_struct in shared object readrec.so:
> dlsym(0x7fbece4156a0, readrec.so_struct): symbol not found
> bash: enable: readrec.so: not a shell builtin
> bash: enable: readrec: not a shell builtin
>
> ls /usr/local/lib/readrec*
> /usr/local/lib/readrec.0.so /usr/local/lib/readrec.a
> /usr/local/lib/readrec.la /usr/local/lib/readrec.so
>
> Please advise.
>
>> On 29 Jan 2024, at 21:10, Wu Ming <wu.ming2@icloud.com> wrote:
>>
>> Trying to compile bash builtin on macOS with bash 5.2 from brew and recutils
>> 1.9 from sources.
>>
>> Files generated in bash/ are readrec.[o,lo,la] and testrec.[o,lo,la].
>>
>> readrec.la defines library_names='readrec.0.so readrec.so’
>>
>> but .so library is not generated. So I can not enable the builtin as
>> requested
>> https://www.gnu.org/software/recutils/manual/html_node/Bash-Builtins.html#Bash-Builtins
>>
>> Please advise.
>