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_r32.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_r32.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r32.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_r32.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r32.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 32-bit machine so it will be compatible both with 32-bit and 64-bit linux. Eg: esekilxxen1233.rnd.ericsson.se
--> cp ~/zpm_r32.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r32.zip && cd zpm && chmod -R 755 .
--> module add gcc/4.7.2 && module add gmake && module add glib && module add zlib
--> bash
--> LFLAGS=-static make release
--> strip zpm

Cygwin:
--> cp ~/zpm_r32.zip /tmp && cd /tmp && rm -rf zpm && unzip zpm_r32.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
  