简体   繁体   English

nspr 4.19的nss 3.35问题PR_GetEnvSecure函数

[英]nss 3.35 issue with nspr 4.19 PR_GetEnvSecure function

I am getting the following error while building nss 3.35 version 在构建nss 3.35版本时出现以下错误

secoid.c:(.text.SECOID_Init+0x36): undefined reference to PR_GetEnvSecure' secoid.c:(.text.SECOID_Init+0x55): undefined reference to PR_GetEnvSecure' secoid.c :(。text.SECOID_Init + 0x36):未定义引用PR_GetEnvSecure' secoid.c:(.text.SECOID_Init+0x55): undefined reference to PR_GetEnvSecure'

I am using nspr version 4.19 to build this. 我正在使用nspr版本4.19来构建它。 Here is my command to build nss 这是我建立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 ) 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 . 这是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. 在Red Hat 7.6中,此对象在库“ /lib64/libnspr4.so”中定义,如下所示。

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

0000000000019b60 g DF .text 0000000000000067 Base PR_GetEnvSecure 0000000000019b60 g DF .text 0000000000000067基础PR_GetEnvSecure

You need to build NPSR library version that defines this object, for example version 4.19 您需要构建定义此对象的NPSR库版本,例如版本4.19。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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