If I build nss+nspr in my RedHat 7.2 x64, more arguments and packages are required.
I see an error here, same as I had in Ubuntu 16.04 LTS but solved there by installing zlib1g-dev The message is: gcc -o Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/zip.o -c -O2 -fPIC -DLINUX2_1 -m64 -pipe -ffunction-sections -fdata-sections -DLINUX -Dlinux -DHAVE_STRERROR -Wall -Werror -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I../../../dist/Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/seccmd zip.c zip.c:7:18: fatal error: zlib.h: No such file or directory #include "zlib.h" ^ compilation terminated. Now in Redhat x64, to build successfully, I must install: sudo yum install zlib-devel And with this line: gmake nss_build_all BUILD_OPT=1 USE_64=1 NSS_SSL_ENABLE_ZLIB= Hope it helps somebody. 2016-10-21 9:47 GMT+02:00 Ding Yangliang <torres...@gmail.com>: > Thanks for helping of yours! > > Now I have enabled the option you said, with this line: > > sudo make nss_build_all NSS_SSL_ENABLE_ZLIB= BUILD_OPT=1 > > Before that I also installed zlib1g-dev > > sudo apt-get install zlib1g-dev > > > And all errors are gone! Thanks a lot and have a good day. 1 week > struggling... > > > 2016-10-20 23:08 GMT+00:00 Martin Thomson <m...@mozilla.com>: > >> You can compile with >> >> make nss_build_all NSS_SSL_ENABLE_ZLIB= >> >> To disable zlib. It's not a feature you want, we just keep it because >> some existing users depend on it. >> >> On Thu, Oct 20, 2016 at 11:10 PM, Kai Engert <k...@kuix.de> wrote: >> > On Thu, 2016-10-20 at 10:13 +0000, Ding Yangliang wrote: >> >> <b>ssl3con.c:36:18: fatal error: zlib.h: no such file or directory</b> >> > >> > zlib.h is a file that should be provided by your development >> environment. >> > >> > I don't know what package on Ubuntu provides that file, but I'm >> guessing the >> > name should be similar to zlib-dev. >> > >> > Kai >> > >> > -- >> > dev-tech-crypto mailing list >> > dev-tech-crypto@lists.mozilla.org >> > https://lists.mozilla.org/listinfo/dev-tech-crypto >> -- >> dev-tech-crypto mailing list >> dev-tech-crypto@lists.mozilla.org >> https://lists.mozilla.org/listinfo/dev-tech-crypto >> > > -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto