Re: loadable builtins on HP-UX

2015-11-04 Thread Chet Ramey
On 11/4/15 11:58 AM, Greg Wooledge wrote: > On Wed, Nov 04, 2015 at 11:29:37AM -0500, Chet Ramey wrote: >> Change the hpux11*-*gcc* stanza in support/shobj-conf to specify the >> right options. I'm guessing you'll need to change the assignment to >> SHOBJ_LDFLAGS. Once you have something that wor

Re: loadable builtins on HP-UX

2015-11-04 Thread Greg Wooledge
On Wed, Nov 04, 2015 at 11:29:37AM -0500, Chet Ramey wrote: > Change the hpux11*-*gcc* stanza in support/shobj-conf to specify the > right options. I'm guessing you'll need to change the assignment to > SHOBJ_LDFLAGS. Once you have something that works, send me diffs and > I'll apply them. Err..

Re: loadable builtins on HP-UX

2015-11-04 Thread Chet Ramey
On 11/4/15 9:04 AM, Greg Wooledge wrote: > On Wed, Nov 04, 2015 at 12:09:56AM -0500, Mike Frysinger wrote: >> On 03 Nov 2015 18:25, Chet Ramey wrote: >>> 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 dl

Re: loadable builtins on HP-UX

2015-11-04 Thread Andreas Schwab
Greg Wooledge writes: > The linker option in HP-UX 11.11 is -E . FWIW, GNU ld also accepts this as a synonym for -rdynamic. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely differen

Re: loadable builtins on HP-UX

2015-11-04 Thread Greg Wooledge
On Wed, Nov 04, 2015 at 12:09:56AM -0500, Mike Frysinger wrote: > On 03 Nov 2015 18:25, Chet Ramey wrote: > > On 11/3/15 4:45 PM, Greg Wooledge wrote: > > > 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 > > > /us

Re: loadable builtins on HP-UX

2015-11-03 Thread Mike Frysinger
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

Re: loadable builtins on HP-UX

2015-11-03 Thread Chet Ramey
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

loadable builtins on HP-UX

2015-11-03 Thread Greg Wooledge
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/l