bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loadable builtins on HP-UX


From: Chet Ramey
Subject: Re: loadable builtins on HP-UX
Date: Tue, 3 Nov 2015 18:25:40 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/3/15 4:45 PM, Greg Wooledge wrote:
> To the surprise of approximately zero people, loadable builtins don't
> fully work on HP-UX.
> 
> I'll spare you any results from 10.20 because it's totally unsupported
> at this point.  (It doesn't even use dlopen().)
> 
> On HP-UX 11.11, things half work.  This is with 4.4-beta, sitting in the
> .../examples/loadables/ directory, after a "make all":
> 
> bash-4.4# enable -f ./finfo finfo
> bash: enable: cannot find finfo_struct in shared object ./finfo: Unresolved 
> module for symbol: sh_optarg (data)  from ./finfo
> 
> bash-4.4# enable -f ./tty tty
> bash-4.4# type -a tty
> tty is a shell builtin
> tty is /usr/bin/tty
> bash-4.4# tty
> /usr/lib/dld.sl: Unresolved symbol: reset_internal_getopt (code)  from ./tty
> /usr/lib/dld.sl: Unresolved symbol: reset_internal_getopt (code)  from ./tty
> ABORT instruction (core dumped)

It looks like shared objects loaded by dlopen don't have access to the
loading program's symbols.  That might be an HP-specific option to dlopen.
It might not, in which case you're out of luck.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]