[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loadable builtins on HP-UX
From: |
Mike Frysinger |
Subject: |
Re: loadable builtins on HP-UX |
Date: |
Wed, 4 Nov 2015 00:09:56 -0500 |
On 03 Nov 2015 18:25, Chet Ramey wrote:
> 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.
FWIW, the option on linux is -rdynamic. guess you'll (Greg) want to find
the HP-UX equivalent to that. see the configure.ac block for details.
-mike
signature.asc
Description: Digital signature
- loadable builtins on HP-UX, Greg Wooledge, 2015/11/03
- Re: loadable builtins on HP-UX, Chet Ramey, 2015/11/03
- Re: loadable builtins on HP-UX,
Mike Frysinger <=
- Re: loadable builtins on HP-UX, Greg Wooledge, 2015/11/04
- Re: loadable builtins on HP-UX, Andreas Schwab, 2015/11/04
- Re: loadable builtins on HP-UX, Chet Ramey, 2015/11/04
- Re: loadable builtins on HP-UX, Greg Wooledge, 2015/11/04
- Re: loadable builtins on HP-UX, Chet Ramey, 2015/11/04