PCP 2.5.0 Source Overview
The PCP 2.5.0 packages released by the Multi-System ToolWorks project contain modifications not found in SGI's original PCP 2.5.0 sources. Details of the individual changes can be found by visiting the CVS module links below. In general, the changes are:
- Fixed MacOS X compilation errors
- Fixed MacOS X PMDA network routines to also work on MacOS 10.4
- Added files and scripts for packaging and installation on MacOS X
- Added and refurbished Michal Kara's moribund MySQL PMDA.
Source Code Repository
Source code access instructions can be found at http://sourceforge.net/cvs/?group_id=152398 - for the Multi-System ToolWorks project's CVS repository at SourceForge. The following table itemizes the SourceForge CVS modules that comprise PCP 2.5.0.
Item
|
CVS Modules
|
Tag
|
Performance Co-Pilot 2.5.0 |
pcp |
pcp_2_5_0-branch_macdev_alpha-a |
Getting the Source
- export CVSROOT=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/reliable
- cvs login
- cvs -z3 co -r pcp_2_5_0-branch_macdev_alpha-a pcp
Building on Fedora 4
The canonical build procedure for PCP on Linux ( i.e. Makepkg ) does not work properly on Fedora 4 due to compilation errors, which are being investigated. The following workaround can be used to create an RPM package of PCP.
- Create an archive of the PCP sources obtained from SourceForge.
- cp -r pcp pcp-2.5.0
- tar -cf pcp-2.5.0.src.tar pcp-2.5.0
- gzip pcp-2.5.0.src.tar
- Obtain the original RedHat 9 PCP 2.5.0 source RPM package ( pcp-2.5.0-1.src.rpm ) from ftp:/oss.sgi.com/projects/pcp/download
- Install the RH9 PCP source RPM package.
- rpm -i pcp-2.5.0-1.src.rpm
- Replace SGI's RH9 source payload with the archive of the SourceForge PCP sources made in step 1.
- cp pcp-2.5.0.src.tar.gz /usr/src/redhat/SOURCES
- Build binary and source RPM packages of the SourceForge PCP sources.
- cd /usr/src/redhat/SPECS
- rpmbuild -ba pcp.spec
- You should now have a new binary rpm ( pcp-2.5.0-1.i386.rpm ) at /usr/src/redhat/RPMS/i386
Building on MacOS X
A custom shell script ( i.e. Macpkg ) is used to build PCP on MacOS X; Xcode is not used.
- cd pcp
- If you are building on MacOS 10.3.x, skip to step 4. On MacOS 10.4.x, there are compilation problems that occur with gcc 4.0, which are being investigated. To work around those problems, use the gcc 3.3 tool chain to build PCP on MacOS 10.4.x
- gcc_select 3.3
- For building a package on MacOS 10.4.x, the installer files need to have their embedded revision numbers changed. This is because the installer files at CVS tag pcp_2_5_0-branch_macdev_alpha-a contain 10.3.x revision numbers. The files that need to be changed are:
- os-pkg-files/mac/IFRequirement.strings
- os-pkg-files/mac/Description.plist
- os-pkg-files/mac/Info.plist
- os-pkg-files/mac/English.lproj/Welcome.txt
- ./Macpkg
- You should now have a binary package of pcp ( i.e. pcp.pkg ) in ./build/mac