Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319995

Summary: [Solaris] Build change to support -agentpath in Solaris port
Product: z_Archived Reporter: Mike Reid <mikereid>
Component: TPTPAssignee: Mike Reid <mikereid>
Status: CLOSED FIXED QA Contact: Kathy Chan <kathy>
Severity: normal    
Priority: P3 CC: jgwest
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Solaris   
Whiteboard:
Attachments:
Description Flags
patch none

Description Mike Reid CLA 2010-07-15 10:43:21 EDT
This is a build change for the Solaris port required to support the work in bug 319616. The solution there is to take advantage of Solaris' support for an "rpath origin" linker option, which directs the runtime linker to use the location of the library being loaded as a path for loading dependent libraries. On Solaris however, the behaviour of this flag is not transitive, i.e.:

 - libA.so depends on libB.so
 - libB.so depends on libC.so
 - libA is built with "rpath origin" and so when loaded is able to find libB which is stored in the same directory
 - However, since libB was not built with "rpath origin", it is unable to resolve libC without help from the LD_LIBRARY_PATH env var

Since the JVMTI profiler depends on some AC libraries in order to facilitate the communication with the AC, some libraries in the Agent Controller need to be built with this option to complete the work in bug 319616.
Comment 1 Mike Reid CLA 2010-07-15 11:05:00 EDT
Created attachment 174406 [details]
patch

Attaching patch.
Comment 2 Mike Reid CLA 2010-07-15 11:16:38 EDT
Changes committed to HEAD.
Comment 3 Kathy Chan CLA 2011-02-11 13:46:36 EST
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
Comment 4 Mike Reid CLA 2011-04-04 11:03:42 EDT
Closing.