Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11831

Re: loadable builtins on HP-UX

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: loadable builtins on HP-UX
Date 2015-11-03 18:25 -0500
Organization ITS, Case Western Reserve University
Message-ID <mailman.1644.1446593177.7904.bug-bash@gnu.org> (permalink)
References <20151103214551.GI27325@eeg.ccf.org>

Show all headers | View raw


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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: loadable builtins on HP-UX Chet Ramey <chet.ramey@case.edu> - 2015-11-03 18:25 -0500

csiph-web