[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error message: cannot find _struct in shared object
From: |
Chet Ramey |
Subject: |
Re: Error message: cannot find _struct in shared object |
Date: |
Tue, 30 May 2023 10:25:44 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 5/27/23 12:39 PM, Wiley Young wrote:
Bash Version: 5.2
Patch Level: 15
Release Status: release
Description:
A syntax error on a variable assignment lead to $x being unset when `enable
-n "$x" was executed, which produced this error message:
./test.sh: line 22: enable: cannot find _struct in shared object :
/usr/bin/bash: undefined symbol: _struct
Thanks for the report. dlopen will succeed with a null pathname, but the
object will (obviously) not have the required loadable builtin info. Best
not to call it with a null pathname at all.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/