New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relocatable-perl on AIX does not run if added to PATH #11453
Comments
From @dmcbrideCreated by @dmcbrideIf I compile perl 5.14.0 with -Duserelocatableinc, and then relocate $ perl -v This is perl 5, version 14, subversion 0 (v5.14.0) built for aix-thread-multi-64all Copyright 1987-2011, Larry Wall Perl may be copied only under the terms of either the Artistic License or the Complete documentation for Perl, including FAQ lists, should be found on $ perl -V When I try this on Linux, it works. I suspect it has something to do with: $ perl -le 'print $^X' whereas if I do the same thing on Linux, I get a full path to perl in the Note that if I run perlbug, whether on AIX or Linux, it fails. The #! $ perlbug Perl Info
|
From @janduboisOn Mon, 20 Jun 2011, via RT wrote:
[...]
That is indeed the problem: -Duserelocatableinc really only works on Linux I know how to make things work on OS X and Solaris as well, but for AIX On Windows this is not an issue as there @INC is always determined at runtime Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From darin.mcbride@shaw.caYou mention that you don't know how on HPUX (which I don't care http://stackoverflow.com/questions/200737/get-full-path-of- |
From @nwc10On Mon, Jun 20, 2011 at 04:59:33PM -0700, Jan Dubois wrote:
With commit 6f31bef I've merged code to make $^X absolute on OS X, It would be possible to use getexecname() along with realpath() on earlier perl already uses /proc on Linux and NetBSD to convert $^X to an absolute Like Jan, I'm not aware of a reliable way to do this on any other platform. Nicholas Clark |
From @icerider70On Wed, Sep 28, 2011 at 5:43 AM, Nicholas Clark <nick@ccl4.org> wrote:
The following code snippet (found via stackoverflow), appears to work as #include <stdio.h> #define _PSTAT64 int main(int argc, char *argv[]) if (pstat_getproc(&s,sizeof(s),0,getpid()) == -1) { if (pstat_getpathname(filename,sizeof(filename),&s.pst_fid_text) == -1) { printf("filename: %s\n",filename); return EXIT_SUCCESS; --Phil |
From @nwc10On Wed, Sep 28, 2011 at 12:13:49PM -0500, Philip Monsen wrote:
Good. Proven wrong on another platform. Are the rest "impossible" too? :-)
I don't have access to any HP-UX system, so can't write code to test http://perl5.git.perl.org/perl.git/commit/2982a345b7a1edb6 [the second patch was based on the first] From searching online I find this piece of documentation: On success, the function returns the length of the
Which the sample code would fall foul of. I'm wondering what other which has this: Alternate program for 64-bit #include <dlfcn.h> I have *no* idea of the relative merits of the two approaches when both Nicholas Clark |
From @icerider70On Wed, Sep 28, 2011 at 1:21 PM, Nicholas Clark <nick@ccl4.org> wrote:
Unfortunately, the main downside is that it doesn't actually appear to # On both 11.23 and 11.31 I'm wondering if some guarantee is afforded for a process's executable name --Phil |
From @icerider70On Wed, Sep 28, 2011 at 2:07 PM, Philip Monsen <philip.monsen@gmail.com>wrote:
Doing this empirical test is pretty much a non-starter for me given the The use of this function is limited to UID 0. --Phil |
From tammer@tammer.netHello, #!/usr/bin/perl @proc = split/ /,`procfiles $$|head -n 1`; exit 0; # ./test.pl Bye |
From gskallur@gmail.comThis issue is there in perl 5.22.0 in AIX and HPIA. |
From [Unknown Contact. See original ticket]This issue is there in perl 5.22.0 in AIX and HPIA. |
From gskallur@gmail.comFor HP-UX below approach is working. Can some one please validate. Added the following code in perl_source/caretx.c # elif defined(__hpux) |
From [Unknown Contact. See original ticket]For HP-UX below approach is working. Can some one please validate. Added the following code in perl_source/caretx.c # elif defined(__hpux) |
Migrated from rt.perl.org#93134 (status was 'open')
Searchable as RT93134$
The text was updated successfully, but these errors were encountered: