Building NSS 3.32.1 on Solaris


we are running into build error while building NSS on Solaris.

1) We have downloaded the nss-3.32.1-with-nspr-4.16.tar.gz from mozilla
site, unzipped it ( /nss-3.32.1/nss & /nss-3.32.1/nspr ).

*2) Oracle Developer Studio 12.5 + 12.5- update*  is the default
C/C++  compiler that's being used on the below machine that we are trying
to build on.

        HOST            = cysuns32
        PLATFORM        = sparc
        MODEL           = SPARC T4-1
        PROCESSORS      =       64
        EFFECTIVE CPUs  = 512
        TOTAL MEMORY    = 32.25 GB

        OSVERSION       = SUN:Solaris 11.3 SPARC
        KERNEL PATCH    = 11.3

3) Set below environment variables:

*export PATH=/usr/ccs/bin:/usr/sfw/bin:/opt/developerstudio12.5/bin:$PATH*
*export CFLAGS=-m64*
*export CXX=CC*
*export CC=cc*
*export  BUILD_OPT=1*
*export  USE_64=1*

4) Used the bash shell
5) cd nss (  cd /nss-3.32.1/nss )
6) gmake nss_build_all

Build Error:
gmake build
gmake[4]: Entering directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr/src'
rm -f
cc -xarch=v9 -G -h -z combreloc -z defs -z ignore -Bdirect -o -M ./nsprmap.sun ./prvrsion.o io/./prfdcach.o io/./prmwait.o
io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o
io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o
threads/./prcmon.o threads/./prrwlock.o threads/./prtpd.o
linking/./prlink.o malloc/./prmalloc.o malloc/./prmem.o md/./prosdep.o
memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o
misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o
misc/./prerr.o misc/./prerror.o misc/./prerrortable.o misc/./prinit.o
misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o
misc/./prnetdb.o misc/./praton.o misc/./prolock.o misc/./prrng.o
misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o
misc/./prtime.o pthreads/./ptsynch.o pthreads/./ptio.o
pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o
md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o
md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./solaris.o
md/unix/./os_SunOS_sparcv9.o    -lpthread -lposix4 -lsocket -lnsl -ldl -lc
cc: Warning: -xarch=v9 is deprecated, use -m64 -xarch=sparc instead
Undefined                       first referenced
 symbol                             in file
PR_Stat                             ./nsprmap.sun
ld: fatal: symbol referencing errors
gmake[4]: *** [] Error 2
gmake[4]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr/src'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr/src'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ'
gmake: *** [build_nspr] Error 2

Any help greatly appreciated..

5/16/2018 9:02:40 PM 648 articles. 0 followers. Post Follow

0 Replies

Similar Articles

[PageSpeed] 1