I believe this is the correct place to post my question so let's put it
simple: when building nss-3.27-with-nspr-4.13 with gcc/g++ in Ubuntu 16.04
LTS I have encountered an error, saying some .c files are not found, any
help would be appreciated, thanks.

I followed the instructions on Mozilla NSS/NSPR building guide here:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Sources_Building_Testing

gcc -v gives me this:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/5/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.2'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-i386/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-i386
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-i386
--with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror
--with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=i686-linux-gnu
--host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)

And I cded into the nss directory to run

make nss_build_all

All seems to go well until here:

cd ssl; make libs
make[2]: se entra en el directorio
'/media/easternfox/Windows/Users/99GU6879/Documents/Winsuite-Wincreta-Siltra-Liq.Directa/514277.jSiltra/MSCAPI_cert/NSS/NSSwithNSPR/nss-3.27/nss/lib/ssl'
gcc -o Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl3con.o -c -g -fPIC -Di386
-DLINUX2_1  -pipe -ffunction-sections -fdata-sections -DLINUX -Dlinux
-DHAVE_STRERROR -Wall -Werror -DXP_UNIX -DDEBUG -UNDEBUG -DDEBUG_root
-D_REENTRANT -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DNSS_SSL_ENABLE_ZLIB
-DNSS_ALLOW_SSLKEYLOGFILE=1
-I../../../dist/Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/include
-I../../../dist/public/nss -I../../../dist/private/nss  ssl3con.c

<b>ssl3con.c:36:18: fatal error: zlib.h: no such file or directory</b>

compilation terminated.
../../coreconf/rules.mk:392: fallo en las instrucciones para el objetivo
'Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl3con.o'
make[2]: *** [Linux4.4_x86_cc_glibc_PTH_DBG.OBJ/ssl3con.o] Error 1
make[2]: se sale del directorio
'/media/easternfox/Windows/Users/99GU6879/Documents/Winsuite-Wincreta-Siltra-Liq.Directa/514277.jSiltra/MSCAPI_cert/NSS/NSSwithNSPR/nss-3.27/nss/lib/ssl'
../coreconf/rules.mk:101: fallo en las instrucciones para el objetivo 'libs'
make[1]: *** [libs] Error 2
make[1]: se sale del directorio
'/media/easternfox/Windows/Users/99GU6879/Documents/Winsuite-Wincreta-Siltra-Liq.Directa/514277.jSiltra/MSCAPI_cert/NSS/NSSwithNSPR/nss-3.27/nss/lib'
coreconf/rules.mk:101: fallo en las instrucciones para el objetivo 'libs'
make: *** [libs] Error 2


(I marked the error line with bold style)

And I cd into /nss/lib/ssl/ to run

make libs

and the error continues. So I don't know what to do.

I think I have isolated the problem, but I don't know C/C++ so I cannot
solve it. Can someone shed some light on it?
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to