cd /vobs/cello/cade_A_tools_utils
ct lsvtree zpm/zpm_src/zpm.c
choose the latest label, eg DTE_9.53.0.2 and put in the config spec

or:
cd /proj/DTE_releases/latest/cello/cade_A_tools_utils/

zip -r ~/zpm_r34.zip zpm

Solaris/sparc (cannot do static because no access to a solaris 8/9 machine with the libc.a file)
Eg: esekits1088.seki.rnd.ericsson.se 
--> cp ~/zpm_r34.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r34.zip && cd zpm && chmod -R 755 .
--> module add gcc/4.5.2 && module add gmake && module add glib && module add zlib
--> make all
--> strip zpm

Solaris/x86:
Eg: eswki51komp.rnd.ki.sw.ericsson.se
Cannot compile statically because no access to a solaris8/9 x86 machine with the libc.a file
--> cp ~/zpm_r34.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r34.zip && cd zpm && chmod -R 755 .
--> Edit the Makefile:
Replace the line:
     LIBS  = -L./lib/solaris -lz -liberty
With:
     LIBS  = -L./lib -lz -liberty
--> make all
--> strip zpm

Linux
Compile on (from citrix) seliiuts02919.seli.gic.ericsson.se or seliiuts03047 or seliiuts02893 to seliiuts02913 or ottlsvr18 (libc 2.11.3) (or seliiuts02929 or sekilx484.wrbs.rnd.ki.sw.ericsson.se or sekilx1260.wrbs.rnd.ki.sw.ericsson.se)
--> cp ~/zpm_r34.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r34.zip && cd zpm && chmod -R 755 .
--> module add gcc/4.7.2 && module add make/4.3 && module add glib/2.40.0 && module add zlib/1.2.11
--> bash
--> LFLAGS=-static make release
--> strip zpm

Cygwin:
--> cp ~/zpm_r34.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r34.zip && cd zpm && chmod -R 755 .
--> Edit the file Makefile and replace the lines
ifeq ($(shell uname -s), CYGWIN_NT-6.0)
with
ifeq ($(shell uname -s), CYGWIN_NT-6.1-WOW64)
--> Edit the file include/bits/endian.h, replace the line "#define __BYTE_ORDER __BIG_ENDIAN" with:
#ifdef __CYGWIN__
#define __BYTE_ORDER __LITTLE_ENDIAN
#else
#define __BYTE_ORDER __BIG_ENDIAN
#endif
--> Edit the file zdb_src/zdb.h, before the line "include <elf.h>", add:
#include <sys/cdefs.h>
#define __CONCAT1(x,y)  x ## y
#define __CONCAT(x,y)   __CONCAT1(x,y)
--> Edit the file zdb_src/zdb_dwarf2.c, before the line "include <elf.h>", add:
#define __CONCAT1(x,y)  x ## y
#define __CONCAT(x,y)   __CONCAT1(x,y)
--> LFLAGS=-static make all
--> strip zpm

FINAL CHECKS:
  1) Check binary file with "ldd zpm" and "file zpm"
  2) Try decoding the file moshell/commonjars/src/zpm/KiRnc115_7339_011300_0x0000054c.pmd with zpm and make sure it does not crash
  3) Try decoding the file moshell/commonjars/src/zpm/46_001200_0x7eebf099.pmd with zpm and make sure it does not go into endless loop
  