Re: NSS and NSPR compilation error: ssl3con.c:36:18: fatal error: zlib.h: No such file

2016-11-10 Thread Ding Yangliang
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 :

> 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 :
>
>> 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  wrote:
>> > On Thu, 2016-10-20 at 10:13 +, Ding Yangliang wrote:
>> >> ssl3con.c:36:18: fatal error: zlib.h: no such file or directory
>> >
>> > 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


Re: NSS and NSPR compilation error: ssl3con.c:36:18: fatal error: zlib.h: No such file

2016-10-21 Thread Ding Yangliang
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 :

> 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  wrote:
> > On Thu, 2016-10-20 at 10:13 +, Ding Yangliang wrote:
> >> ssl3con.c:36:18: fatal error: zlib.h: no such file or directory
> >
> > 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


Re: NSS and NSPR compilation error: ssl3con.c:36:18: fatal error: zlib.h: No such file

2016-10-20 Thread Martin Thomson
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  wrote:
> On Thu, 2016-10-20 at 10:13 +, Ding Yangliang wrote:
>> ssl3con.c:36:18: fatal error: zlib.h: no such file or directory
>
> 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


Re: NSS and NSPR compilation error: ssl3con.c:36:18: fatal error: zlib.h: No such file

2016-10-20 Thread Kai Engert
On Thu, 2016-10-20 at 10:13 +, Ding Yangliang wrote:
> ssl3con.c:36:18: fatal error: zlib.h: no such file or directory

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


NSS and NSPR compilation error: ssl3con.c:36:18: fatal error: zlib.h: No such file

2016-10-20 Thread Ding Yangliang
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

ssl3con.c:36:18: fatal error: zlib.h: no such file or directory

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