NSS 3.52.1 build failure on Linux

40 views
Skip to first unread message

Usha Nayak

unread,
May 27, 2020, 4:35:30 PM5/27/20
to mozilla-de...@lists.mozilla.org
Hello,

I'm building NSS 3.52.1 on Linux of following configuration:


PLATFORM = x86_64
MODEL = Virtual Platform
PROCESSORS = 4
EFFECTIVE CPUs = 8
CLOCK SPEED =
TOTAL MEMORY = 7 GB

OSVERSION = LNX:CentOS Linux release 7.6.1810 (Core) 3.10.0-957.27.2.el7.x86_64
KERNEL PATCH = 3.10.0-957.27.2.el7.x86_64
COMPILERS = gcc-4.8.5-36.el7_6.2.x86_64

1) Downloaded NSS+NSPR source tarballs, unzipped
2) set following env variables:
setenv USE_64 1
setenv BUILD_OPT 1
setenv NSS_DISABLE_GTESTS 1
3) cd <nss directory>
4) Executed “gmake nss_build_all”

Got following error while building:
....
cc -o Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/secport.o -c -std=c99 -O2 -fPIC -m64 -pipe -ffunction-sections -fdata-sections -DHAVE_STRERROR -DLINUX -Dlinux -Wall -Wshadow -Werror -DXP_UNIX -UDEBUG -DNDEBUG -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -DSQL_MEASURE_USE_TEMP_DIR -D_REENTRANT -DNSS_DISABLE_AVX2 -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 secport.c
secport.c: In function ‘NSS_PutEnv_Util’:
secport.c:753:5: error: implicit declaration of function ‘putenv’ [-Werror=implicit-function-declaration]
putEnvFailed = putenv(encoded); /* adopt. */
^
cc1: all warnings being treated as errors
gmake[2]: *** [Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/secport.o] Error 1
gmake[2]: Leaving directory `/plm/svnas/tc_work/nayak/naytc1310425_lnx/NSS/nss-3.52.1/nss/lib/util'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory `/plm/svnas/tc_work/nayak/naytc1310425_lnx/NSS/nss-3.52.1/nss/lib'
gmake: *** [libs] Error 2

Any help greatly appreciated ...

Thanks..
Reply all
Reply to author
Forward
0 new messages