Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail From: Chet Ramey Newsgroups: gnu.bash.bug Subject: Re: loadable builtins on HP-UX Date: Wed, 4 Nov 2015 11:29:37 -0500 Lines: 29 Approved: bug-bash@gnu.org Message-ID: References: <20151103214551.GI27325@eeg.ccf.org> <56394274.9050607@case.edu> <20151104050956.GW5154@vapier.lan> <20151104140444.GK27325@eeg.ccf.org> Reply-To: chet.ramey@case.edu NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1446654619 16231 208.118.235.17 (4 Nov 2015 16:30:19 GMT) X-Complaints-To: action@cs.stanford.edu Cc: chet.ramey@case.edu To: Greg Wooledge , bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <20151104140444.GK27325@eeg.ccf.org> X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A010203.563A3272.00C7, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2015-08-12 04:07:17, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0a7417fd2bae997afbdd33b9a6777aa7 X-Junkmail-Whitelist: YES (by domain whitelist at mpv3-2015.case.edu) X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.563A3273.008C,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: a78d4e1354ddab7b13365a4a059949d6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 129.22.103.194 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11838 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 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 > > The linker option in HP-UX 11.11 is -E . For gcc to pass it along, > the correct option is -Wl,-E . I'm not sure how to do it if you're > using the pay-for HP C compiler. 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. Chet -- ``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/