Dear Simon,

we have encountered the same problem with a different NSS-3.x versions and 
different GCCcores. The solution for us was to patch coreconf/config.mk and 
commenting out


#DEFINES += -DNO_NSPR_10_SUPPORT


which adds the missing symbols. The patch file is attached. We also changed the 
buildopts to


# fix for not being able to find header files
buildopts = ' NSPR_INCLUDE_DIR=$EBROOTNSPR/include/nspr 
NSPR_LIB_DIR=$EBROOTNSPR/lib USE_SYSTEM_ZLIB=1 BUILD_OPT=1 USE_64=1 && ' # 
CPATH="$EBROOTNSPR/include/nspr:$CPATH" && '
# also install pkgconfig file (see patch)
buildopts += "cd config && make PREFIX=%(installdir)s BUILD_OPT=1 USE_64=1 && 
cd -"


(this is for GCCcore/8.3.0, might be different for 9.3.0)


We have not created a PR yet as we were not sure if this is causing some 
unwanted side-effects.


Best wishes

Stefan


--

Scientific Computing

Carl von Ossietzky University Oldenburg
School of Mathematics and Natural Sciences
26111 Oldenburg, Germany

Office: W03 1-139
Phone: +49-441-798 3147
E-Mail: stefan.har...@uni-oldenburg.de

www: http://www.uni-oldenburg.de/fk5/wr

________________________________
From: easybuild-requ...@lists.ugent.be <easybuild-requ...@lists.ugent.be> on 
behalf of Pinches Simon <simon.pinc...@iter.org>
Sent: Thursday, May 28, 2020 8:59:32 AM
To: easybuild@lists.ugent.be
Subject: [easybuild] Problems installing NSS-3.51-GCCcore-9.3.0.eb

Dear EB experts,

I’m having problems installing NSS/3.51 (needed as a dependency of Qt5/5.14.1) 
on our CentOS 7.3 system.

The error in the log is as given below.  Does anyone know an easy fix?

Thanks,

Simon

gcc -shared -m64 -Wl,--gc-sections -Wl,-z,defs -Wl,-soname -Wl,libnssutil3.so  
-Wl,--version-script,Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/nssutil.def -o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/libnssutil3.so 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/quickder.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secdig.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/derdec.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/derenc.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/dersubr.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/dertime.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/errstrs.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/nssb64d.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/nssb64e.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/nssrwlk.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/nssilock.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/oidstring.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/pkcs1sig.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/portreg.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secalgid.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secasn1d.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secasn1e.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secasn1u.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secitem.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secload.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secoid.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/sectime.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secport.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/templates.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/utf8.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/utilmod.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/utilpars.o 
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/pkcs11uri.o    
-L../../../dist/Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/lib 
-L../../../dist/Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/lib -lplc4 -lplds4 
-lnspr4  -lpthread  -ldl -lc
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.12' and 
'NSSUTIL_3.12.3' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.12.3' and 
'NSSUTIL_3.12.5' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.12.5' and 
'NSSUTIL_3.12.7' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.12.7' and 
'NSSUTIL_3.13' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.13' and 
'NSSUTIL_3.14' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.14' and 
'NSSUTIL_3.15' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.15' and 
'NSSUTIL_3.17.1' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.17.1' and 
'NSSUTIL_3.21' in script                                                        
        
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.21' and 
'NSSUTIL_3.24' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.24' and 
'NSSUTIL_3.25' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.25' and 
'NSSUTIL_3.31' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.31' and 
'NSSUTIL_3.33' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.33' and 
'NSSUTIL_3.38' in script
/work/imas/opt/EasyBuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: 
warning: wildcard match appears in both version 'NSSUTIL_3.38' and 
'NSSUTIL_3.39' in script
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secoid.o:secoid.c:function 
SECOID_Init: error: undefined reference to 'PR_GetEnvSecure'
Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secoid.o:secoid.c:function 
SECOID_Init: error: undefined reference to 'PR_GetEnvSecure'                    
                                                                                
   Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/secport.o:secport.c:function 
SetupUseFreeList: error: undefined reference to 'PR_GetEnvSecure'               
                                                                                
 Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/utilpars.o:utilpars.c:function 
_NSSUTIL_EvaluateConfigDir: error: undefined reference to 'PR_GetEnvSecure'
collect2: error: ld returned 1 exit status
make[2]: *** [Linux3.10_x86_64_gcc_glibc_PTH_64_OPT.OBJ/libnssutil3.so] Error 1
make[2]: Leaving directory 
`/tmp/pinches/build/NSS/3.51/GCCcore-9.3.0/nss-3.51/nss/lib/util'
make[1]: *** [libs] Error 2                                                     
                                                                                
                                                                        
make[1]: Leaving directory 
`/tmp/pinches/build/NSS/3.51/GCCcore-9.3.0/nss-3.51/nss/lib'
make: *** [libs] Error 2


[iterlogo]<http://www.iter.org/>
Simon PINCHES
Section Leader
Plasma Modelling & Analysis Section

ITER Organization, Building 72/2017, SCOP, SCOD, Science Division
Route de Vinon-sur-Verdon - CS 90 046 - 13067 St Paul Lez Durance Cedex - France
Phone: +33 4 42 17 65 42
Get the latest ITER news on http://www.iter.org/whatsnew
Follow us on: Twitter<https://twitter.com/iterorg> - 
Facebook<https://www.facebook.com/ITEROrganization> - 
LinkedIn<https://www.linkedin.com/company/iter-organization> - 
Instagram<https://www.instagram.com/iterorganization> - Career 
page<https://www.iter.org/jobs>

Attachment: NSS-3.x_NO_NSPR_10_SUPPORT.patch
Description: NSS-3.x_NO_NSPR_10_SUPPORT.patch

Reply via email to