简体   繁体   中英

nss 3.35 issue with nspr 4.19 PR_GetEnvSecure function

I am getting the following error while building nss 3.35 version

secoid.c:(.text.SECOID_Init+0x36): undefined reference to PR_GetEnvSecure' secoid.c:(.text.SECOID_Init+0x55): undefined reference to PR_GetEnvSecure'

I am using nspr version 4.19 to build this. Here is my command to build nss

make -j1 BUILD_OPT=1 NSPR_INCLUDE_DIR=nss-3.36.1/nspr/include/nspr USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz NSS_ENABLE_WERROR=0 $([ $(uname -m ) = x86_64 ] && echo USE_64=1 ) $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1 )

This is a similar issue reported in Red Hat Bugzilla 1458841 .

In that case they removed the dependency on this object.

In Red Hat 7.6 this object is defined in library "/lib64/libnspr4.so" as you can see below.

objdump -TC /lib64/libnspr4.so | grep PR_GetEnvSecure

0000000000019b60 g DF .text 0000000000000067 Base PR_GetEnvSecure

You need to build NPSR library version that defines this object, for example version 4.19

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM