- Instructions and hints regarding the Zlib library.
- --------------------------------------------------------------------------------
- Zlib site: http://zlib.net/
- perforce:1666 import directory: //depot/import/zlib/...
- When upgrading Zlib, ensure that job022258 (Mangle zlib linker-visible names)
- does not regress. This is to support users linking against both our API and
- other versions of Zlib. For Zlib 1.1.4, change 98998 added zsymbols.h to fix
- this job (adding the PZ_ prefix.) For 1.2.5, Zlib added compile-time support
- for symbol prefixes in zconf.h (with the z_ prefix,) which we changed to be
- hard-coded. To revert to making it a compile-time flag, undo the change to
- zconf.h and define Z_PREFIX (be aware that 641267 tried this and caused
- compile errors on HPUX11IA64.)
- Two ways of finding out what symbols are in a file (on ELF-based unix) are:
- nm --extern-only p4d | grep z_ | awk '{print $3}' | sort
- readelf --symbols p4d | grep z_ | awk '{print $8}' | sort
- Note that the Zlib gzip is not the same as gzip.cc - our C++ wrapper. The
- Zlib distro includes a number of unneeded files.
- Zlib is used in various parts of the P4 codebase: btree(crc32 - must be fast,)
- server networking and client. Also make sure that a Zlib upgrade doesn't break
- non-C++ APIs such as p4-java. Testing on platforms with different endianness
- is prudent.
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
9 years ago | |
//guest/perforce_software/p4/2014-2/zlib/README | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | 10 years ago | |
//guest/perforce_software/p4/2014_2/zlib/README | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | 10 years ago | |
//guest/perforce_software/p4/2014.2/zlib/README | |||||
#1 | 12189 | Matt Attaway | Initial (and much belated) drop of 2014.2 p4 source code | 10 years ago |