Community
Participate
Working Groups
This bug is to port the work of bug 241984 to AIX. This will allow the AIX platform to launch the Java profiler using the -agentpath switch; absolving the need to configure environment variables.
Created attachment 172615 [details] First shot at a patch Attaching a first go at a patch which implements this. Minimally tested on AIX 5.3 64-bit. Since AIX doesn't have anything equivalent to Linux's -rpath $ORIGIN specifier for its rpath equivalent (-blibpath), the AIX implementation needs to manually load libMartiniOSA to get at GetEnvironmentVar and CreateLibraryLoader entry points. Once these have been found the existing logic already works. The only other addition is that the implementation of ILibraryLoader is augmented to build up the LIBPATH env var as needed and calls loadAndInit before dlopen to ensure the TPTP/Martini lib paths take precedence over system defaults. Comments welcome.
Created attachment 172909 [details] Revised patch with small logic fixes Fix a small logic error where the first call to GetEnvironment did not have enough memory, the LIBPATH environment is not updated.
Created attachment 173794 [details] Another respin with incorporated comments Attaching another (hopefully final) patch. Two basic changes: - Introduce HAVE_RPATH preprocessor macro - Refactor BootstrapMartiniOSA to be used by Windows and AIX (and in the future any OSes that don't have -rpath $ORIGIN support)
Patch checked into HEAD.
Created attachment 175108 [details] Patching containg all -agentpath changes for AIX, zOS and Solaris Attaching a patch which contains all changes for the -agentpath support for platforms AIX, zOS and Solaris. This effectively obsoletes the patches attached to 317863, 319616 and 320260 (as well as 317444). The purpose here is to provide an easier package to get 4.7.0 + agentpath rather than having to wade through a mess of CVS revisions.
Created attachment 175325 [details] Patch containing all -agentpath changes for AIX, zOS and Solaris Attaching new version of the all-inclusive patch. The prior patch had some formatting issue preventing it from applying cleanly.
Just a note on latest attachment #175235 [details] vs. the prior attachment #175108 [details]. There is no difference in code change between the two; the only difference is that #175235 was generated using Eclipse team sync, whereas #175108 was generated using 'cvs rdiff' command. The build process had trouble with the format of #175108 hence the need for the version generated by Eclipse.
This defect had been resolved as FIXED for more than 1 month. Please verify with the latest TPTP 4.7.2 driver. If this defect is still left unverified by February 25, we'll close it on the originator's behalf. TPTP 4.7.2 driver can be downloaded from: http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
Closing.